Image conversion processing method and system
An image conversion and processing method technology, applied in the field of image processing, can solve problems such as serious, grayscale information loss, stepped texture, etc., and achieve the effect of improving stepped ripples and strong practicability
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0028] figure 1 The implementation flow of the image conversion processing method provided by Embodiment 1 of the present invention is shown, and the process of the method is described in detail as follows:
[0029] In step S101, the pixel depth of the pixel point before and after the image conversion and the pixel value of the pixel point before the image conversion are obtained.
[0030] In this embodiment, when the image is a grayscale image, the pixel depth refers to the number of bits used to store each pixel. For example, for a grayscale image with a grayscale of 0-255, the pixel depth of the grayscale image is 8. When the image is an RGB image, since the pixel value R, G, and B of each pixel are represented by three components, the pixel depth of the image is the R component, G component, and B component that store the pixel value of each pixel, respectively. The number of bits used, including the pixel depth of the R component, the pixel depth of the G component, and ...
Embodiment 2
[0044] figure 2 The implementation flow of the image conversion processing method provided by the second embodiment of the present invention is shown, and the process of the method is described in detail as follows:
[0045] In this embodiment, the pixel values, high-order values and low-order values of the pixel points of the image are all represented by binary numbers.
[0046] In step S201, the pixel depths before and after the image conversion are determined as m and n, and the pixel values of the pixels before the image conversion are determined.
[0047] In step S202, the value corresponding to the first n digits of the pixel value of the pixel point before the image conversion is the high value of the pixel point, and the value corresponding to the last m-n digits of the pixel value of the pixel point before the image conversion is the value of the pixel point low value.
[0048] In step S203, the low-order residual value of the central pixel is extracted accor...
example 1
[0063] Convert RGB(8,8,8) to RGB(5,5,5):
[0064] 1) Obtain the R component value of the pixel of the RGB (8,8,8) image, take the high value of the R component as the value corresponding to the first 5 bits of the R component value, and the low value as the value corresponding to the last 3 bits of the R component value value;
[0065] 2) Sort the low-order values of the R components from large to small, and determine the acquisition order of the pixels to be processed according to the sorting.
[0066] 3) Assume that the sum of the low-level values of the R components of the pixels whose adjacent distances to the first pixel to be processed are 0, 1, and 2 are M0, M1, and M2, respectively.
[0067] When M0>=8, extract the low-order residual value of the R component of the first pixel to be processed as 1, and carry out the low-order value of the R component of the pixel whose adjacent distance to the first pixel to be processed is 0 deal with;
[0068] When M0=8, the l...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 