Home > other >  The FPGA image processing, histogram statistics and gray level stretch
The FPGA image processing, histogram statistics and gray level stretch

Time:10-06

I currently work as a image processing with FPGA and VGA display, intermediate use histogram statistics and gray stretch, make the image contrast enhancement, now meet a problem, take statistics of 5% and 95% of grey value as a threshold, when the current pixel values to do a condition judgment to the current grey value, whether (grey value within the scope of the threshold), thinking is not within the scope of 0 and 255, (14 grey value to compressed into 8), for the current pixel without judgment, images can be displayed, but there will be a gray inversion; But add a line to judge the scope of the code, the image the whole white, don't understand, please teach, thank you,
Add the code as shown in picture, data_out [0] is after stretching of grey value [22 width, the actual data only 8 bits wide]

CodePudding user response:

Behind the data_out [21]==1

CodePudding user response:

Find the problem, the number of histogram statistics, flashing images
  • Related