A debanding determination method for an image, adapted for an image processing device, the method comprising:
- calculating a first change amount between first color components respectively corresponding to a start pixel, an end pixel, and at least one intermediate pixel in a plurality of pixels of the image, wherein the at least one intermediate pixel is located between the start pixel and the end pixel on the image;
- calculating a second change amount between second color components respectively corresponding to the start pixel, the end pixel, and the at least one intermediate pixel;
- calculating a third change amount between third color components respectively corresponding to the start pixel, the end pixel, and the at least one intermediate pixel;
- adjusting the first change amount according to a first weight value corresponding to the first color component, adjusting the second change amount according to a second weight value corresponding to the second color component, and adjusting the third change amount according to a third weight value corresponding to the third color component, and calculating a weighted total change amount according to the adjusted first change amount, the adjusted second change amount, and the adjusted third change amount;
- calculating a first change count between the first color components respectively corresponding to the start pixel, the end pixel, and the at least one intermediate pixel;
- calculating a second change count between the second color components respectively corresponding to the start pixel, the end pixel, and the at least one intermediate pixel;
- calculating a third change count between the third color components respectively corresponding to the start pixel, the end pixel, and the at least one intermediate pixel;
- and
- determining whether to perform debanding compensation on the first color component, the second color component, or the third color component of the start pixel by using the end pixel as a reference pixel, according to the weighted total change amount, a predetermined weighted value corresponding to the weighted total change amount, the first change amount, a first predetermined amount value corresponding to the first change amount, the second change amount, a second predetermined amount value corresponding to the second change amount, the third change amount, a third predetermined amount value corresponding to the third change amount, the first change count, a first predetermined change count value corresponding to the first change count, the second change count, a second predetermined change count value corresponding to the second change count, the third change count, and a third predetermined change count value corresponding to the third change count, wherein
- when the first color component corresponds to brightness or green, the second color component corresponds to red chroma or red, and the third color component corresponds to blue chroma or blue, the first weight value is greater than or equal to the second weight value, the second weight value is greater than or equal to the third weight value, and a sum of the second weight value and the third weight value is greater than or equal to the first weight value.