0
Follow
0
View

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:

while(1) 
{
    //将图像读入while移位寄存器并进行处理
    ... 
    //将处理好的图像输出 
    ... 
}
The

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