The image can only be executed once when it enters the while shift register, and then it's gone. What's going on? Is there a solution?

eee123lhm 注册会员
2023-02-28 06:06

Part of this answer references GPT, GPT_Pro better for solving the problem
While the shift register can only be executed once, because it is essentially a memory that can store information once, After the image enters the register, the image will be treated as one-time information for processing. If the image is to be processed several times in the While shift register, it needs to be repeatedly put into the register, but this will waste a lot of space.

To solve this problem, can be realized by using the loop structure code, through the loop to achieve multiple processing of the image, such as:


loop statement enables the while shift register to be reused. The image is continuously read into the register, and the processed image is output after the processing is completed. In this way, multiple processing of the image can be realized.
If the answer is helpful, please accept it.

About the Author

Question Info

Publish Time
2023-02-28 06:06
Update Time
2023-02-28 06:06

Related Question