Image processing apparatus and method
Patent Information
- Application Number
- CN202310532654.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-10
- Publication Date
- 2026-09-01
- Estimated Expiration
- 2043-05-10
AI Technical Summary
[0004]本申请实施例提供一种图像处理装置及方法,主要目的在于在将高比特图像处理成低比特图像时,解决处理得到图像中出现有规律的亮斑问题
[0050]本申请提供一种图像处理装置及方法,本申请能够首先通过获取单元获取输入图像,并确定所述输入图像的显示特征,其中,所述显示特征包括所述输入图像中每个待处理区域的分布位置;然后通过确定单元根据所述显示特征为每个所述待处理区域分别确定不同的目标叠加矩阵,其中,所述目标叠加矩阵为基础矩阵中的矩阵参数的位置在进行变更后得到的;最后通过操作单元将所述输入图像中的每个所述待处理区域分别与对应的所述目标叠加矩阵进行叠加,得到复合图像,并将所述复合图像转换成目标图像,其中,所述目标图像为符合目标数量比特位的图像,从而实现图像处理功能。相较于现有技术,在本申请的图像处理过程中,由于不再采用单一的叠加矩阵对图像中的所有区域进行叠加,而是基于输入图像中的每个待处理区域采用不同的目标叠加矩阵进行叠加,这样就确保了在叠加后,每个待处理区域在叠加后的数据内容存在区别,从而使得后续在处理成低比特图像后,各个区域不会得到相同的显示参数,使得亮斑出现在各个区域中的位置也不相同,也就避免了出现有规则的亮斑的情况,解决了现有技术在将高比特图像处理成低比特图像时,因叠加相同的叠加矩阵而导致的规则亮斑的问题。
Smart Images

Figure CN116596816B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of display technology, and in particular to an image processing apparatus and method. Background Technology
[0002] As technology continues to develop, the types of image processing needs are also increasing. One such need is for users to process images from high-bit to low-bit. For example, if a display processing chip processes a 12-bit image, but the display device requires an 8-bit image for display, then the 12-bit image needs to be processed into an 8-bit image. The existing image processing method for this need is to convert the high-bit image into a low-bit image, which is image dithering, or bit-down processing.
[0003] Currently, existing image processing methods that convert high-bit images into low-bit images result in regular bright spots in the final low-bit image, thus affecting the overall image processing effect. Summary of the Invention
[0004] This application provides an image processing apparatus and method, the main purpose of which is to solve the problem of regular bright spots appearing in the processed image when processing a high-bit image into a low-bit image.
[0005] To address the aforementioned technical problems, this application provides the following technical solutions:
[0006] In a first aspect, this application provides an image processing apparatus, the apparatus comprising:
[0007] An acquisition unit is configured to acquire an input image and determine the display features of the input image, wherein the display features include the distribution location of each region to be processed in the input image;
[0008] A determining unit is configured to determine different target overlay matrices for each of the regions to be processed based on the display features, wherein the target overlay matrix is obtained after changing the positions of the matrix parameters in the base matrix;
[0009] An operation unit is configured to superimpose each region to be processed in the input image with the corresponding target superposition matrix to obtain a composite image, and convert the composite image into a target image, wherein the target image is an image that meets the target number of bits.
[0010] Optionally, the determining unit is specifically used to select a superposition matrix from a preset matrix set as the target superposition matrix of the region to be processed, wherein the preset matrix set includes at least two superposition matrices.
[0011] Optionally, the determining unit is further configured to select a superposition matrix from the preset matrix set for each of the regions to be processed according to a first rule, as the target superposition matrix, wherein the first rule is used to select different superposition matrices for adjacent regions to be processed.
[0012] Optionally, the display feature may also include the number of display frames;
[0013] The determining unit is further specifically used to select, from the preset matrix set, a number of superposition matrices corresponding to the number of display frames for the area to be processed according to the second rule, as the target superposition matrix, wherein the second rule is used to select different superposition matrices when displaying different frames in the same area to be processed.
[0014] Optionally, the device further includes:
[0015] An amplitude determination unit is used to determine the amplitude of matrix changes based on user instructions, and to determine the number of target matrices based on the amplitude of matrix changes and the number of display frames, wherein the number of target matrices does not exceed the number of display frames;
[0016] The determining unit is specifically used to select, from the preset matrix set, a superposition matrix corresponding to the number of target matrices for the region to be processed, according to the second rule, as the target superposition matrix.
[0017] Optionally, the superposition matrix includes a Bayer matrix;
[0018] The device further includes:
[0019] The change operation unit is used to perform at least one change operation on the display parameters in the Bayer matrix, and record the matrix obtained by each change operation to obtain the superimposed matrix; wherein the change operation is used to change the position of at least two of the display parameters in the Bayer matrix;
[0020] A generation unit is used to generate the preset matrix set based on the multiple superimposed matrices.
[0021] Optionally, the device further includes:
[0022] An image determination unit is used to determine whether the input image is a target processing image based on the display features. The target processing image includes an image in which the area to be processed covers the entire input image, an image in which the area to be processed is regularly distributed in the input image, and an image in which at least two of the areas to be processed are attached to each other.
[0023] The determining unit is specifically used to determine different target overlay matrices for each region to be processed based on the display features when the input image is determined to be the target processing image.
[0024] Secondly, this application also provides an image processing method, the method comprising:
[0025] Acquire an input image and determine the display features of the input image, wherein the display features include the distribution location of each region to be processed in the input image;
[0026] Based on the display features, a different target overlay matrix is determined for each region to be processed, wherein the target overlay matrix is obtained after changing the position of the matrix parameters in the base matrix;
[0027] Each region to be processed in the input image is superimposed with the corresponding target superposition matrix to obtain a composite image, and the composite image is converted into a target image, wherein the target image is an image that meets the target number of bits.
[0028] Optionally, determining different target overlay matrices for each of the regions to be processed based on the display features includes:
[0029] Select one overlay matrix from the preset matrix set as the target overlay matrix for the region to be processed, wherein the preset matrix set includes at least two overlay matrices.
[0030] Optionally, selecting a superposition matrix from a preset matrix set as the target superposition matrix for the region to be processed includes:
[0031] From the preset matrix set, a superposition matrix is selected for each region to be processed according to a first rule, and this matrix is used as the target superposition matrix. The first rule is used to select different superposition matrices for adjacent regions to be processed.
[0032] Optionally, the display feature may also include the number of display frames;
[0033] Selecting a superposition matrix from a preset matrix set as the target superposition matrix for the region to be processed includes:
[0034] From the preset matrix set, a number of overlay matrices corresponding to the number of display frames are selected for the processing area according to the second rule, and these matrices are used as the target overlay matrices. The second rule is used to select different overlay matrices when displaying different frames in the same processing area.
[0035] Optionally, before selecting, from the preset matrix set, the number of overlay matrices corresponding to the number of display frames for the region to be processed according to the second rule as the target overlay matrix, the method further includes:
[0036] The matrix change range is determined based on user instructions, and the target matrix number is determined based on the matrix change range and the number of display frames, wherein the target matrix number does not exceed the number of display frames;
[0037] The step of selecting, from the preset matrix set, a number of overlay matrices corresponding to the number of display frames for the region to be processed according to the second rule, as the target overlay matrix, includes:
[0038] In the preset matrix set, superposition matrices corresponding to the number of target matrices are selected for the region to be processed according to the second rule, and these matrices are used as the target superposition matrices.
[0039] Optionally, the superposition matrix includes a Bayer matrix;
[0040] Before selecting a superposition matrix from a preset matrix set as the target superposition matrix for the region to be processed, the method further includes:
[0041] The display parameters in the Bayer matrix are modified at least once, and the matrix obtained from each modification operation is recorded to obtain the superimposed matrix; wherein the modification operation is used to change the position of at least two of the display parameters in the Bayer matrix;
[0042] The preset matrix set is generated based on the multiple superimposed matrices.
[0043] Optionally, before determining different target overlay matrices for each of the regions to be processed based on the display features, the method further includes:
[0044] Based on the display features, it is determined whether the input image is a target processing image. The target processing image includes an image in which the area to be processed covers the entire input image, an image in which the area to be processed is regularly distributed in the input image, and an image in which at least two of the areas to be processed are attached to each other.
[0045] The step of determining different target overlay matrices for each region to be processed based on the display features includes:
[0046] When the input image is determined to be the target processing image, a different target overlay matrix is determined for each region to be processed based on the display features.
[0047] Thirdly, this application also provides a storage medium including a stored program, wherein the program controls the device where the storage medium is located to execute the image processing method described in the second aspect when the program is running.
[0048] Fourthly, this application also provides an image processing apparatus, the apparatus including a storage medium; and one or more processors, the storage medium being coupled to the processors, the processors being configured to execute program instructions stored in the storage medium; the program instructions, when executed, perform the image processing method described in any one of the second aspects.
[0049] By employing the above-described technical solution, the technical solution provided in this application has at least the following advantages:
[0050] This application provides an image processing apparatus and method. The apparatus first acquires an input image through an acquisition unit and determines the display features of the input image, wherein the display features include the distribution position of each region to be processed in the input image. Then, a determination unit determines different target overlay matrices for each region to be processed based on the display features, wherein the target overlay matrix is obtained by changing the positions of the matrix parameters in the base matrix. Finally, an operation unit overlays each region to be processed in the input image with the corresponding target overlay matrix to obtain a composite image, and converts the composite image into a target image, wherein the target image is an image that meets the target number of bits, thereby realizing the image processing function. Compared to existing technologies, in the image processing of this application, instead of using a single overlay matrix to overlay all regions in the image, a different target overlay matrix is used for each region to be processed in the input image. This ensures that the data content of each region to be processed is different after overlay, so that after processing into a low-bit image, each region will not receive the same display parameters, and the position of the bright spots will also be different in each region. This avoids the occurrence of regular bright spots and solves the problem of regular bright spots caused by the same overlay matrix when processing high-bit images into low-bit images in existing technologies.
[0051] The above description is only an overview of the technical solution of this application. In order to better understand the technical means of this application and to implement it in accordance with the contents of the specification, and to make the above and other objects, features and advantages of this application more obvious and understandable, the following are specific embodiments of this application. Attached Figure Description
[0052] The above and other objects, features, and advantages of exemplary embodiments of this application will become readily understood by reading the following detailed description with reference to the accompanying drawings. In the drawings, several embodiments of this application are illustrated by way of example and not limitation, with the same or corresponding reference numerals denoteing the same or corresponding parts, wherein:
[0053] Figure 1 This illustration shows a block diagram of an image processing apparatus provided in an embodiment of this application;
[0054] Figure 1-A A schematic diagram illustrating the execution process of the prior art is shown;
[0055] Figure 2 This invention provides a block diagram of another image processing apparatus according to an embodiment of the present application.
[0056] Figure 2-A This illustration shows a schematic diagram of the superimposed matrix obtained after modifying the Bayer matrix during the execution of an image processing method provided in this application embodiment;
[0057] Figure 3 A flowchart of an image processing method provided in an embodiment of this application is shown. Detailed Implementation
[0058] Exemplary embodiments of this application will now be described in more detail with reference to the accompanying drawings. While exemplary embodiments of this application are shown in the drawings, it should be understood that this application may be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided to enable a more thorough understanding of this application and to fully convey the scope of this application to those skilled in the art.
[0059] It should be noted that, unless otherwise stated, the technical or scientific terms used in this application shall have the ordinary meaning as understood by one of ordinary skill in the art to which this application pertains.
[0060] Currently, existing image processing methods for converting high-bit images to low-bit images generally involve overlaying the high-bit image with a pixel matrix and then removing some display content to achieve the effect of converting it into a low-bit image. However, in practical applications, existing image processing methods use the same pixel matrix to perform this function on all regions of an image. This leads to a situation where, if the content displayed in the entire image is relatively simple, such as when the entire display area only displays a grayscale image, using the same overlay matrix for all regions results in the same display effect. Consequently, the final low-bit image will exhibit bright spots corresponding to the overlay matrix distribution, creating regular bright spots throughout the display image. This means that after image processing, the display effect is negatively affected by the appearance of regular bright spots.
[0061] In view of this, embodiments of this application provide a block diagram of an image processing apparatus, such as... Figure 1 As shown, the device includes:
[0062] The acquisition unit 11 can be used to acquire an input image and determine the display features of the input image, wherein the display features include the distribution position of each region to be processed in the input image;
[0063] The determining unit 12 can be used to determine different target overlay matrices for each of the regions to be processed according to the display features, wherein the target overlay matrix is obtained after changing the position of the matrix parameters in the base matrix;
[0064] The operation unit 13 can be used to superimpose each of the regions to be processed in the input image with the corresponding target superposition matrix to obtain a composite image, and convert the composite image into a target image, wherein the target image is an image that meets the target number of bits.
[0065] In this embodiment, the display features can be understood as the characteristics of the image during the display of the input image, mainly the location of the area to be processed in the image, i.e., the distribution location of the area to be processed. During this process, after the acquisition unit 11 acquires the input image and determines the display features, it can perform a superposition operation on the input image based on the determination unit 12. Since the same superposition matrix is used during the superposition process, regular bright spots will appear in the superimposed image. Specifically, this can be as follows... Figure 1-AAs shown, if the display parameter value of each pixel in the current input image is 133 (10 bits), then during the normal overlay process, after overlaying using the standard 2*2 matrix in the image and converting it to 8 bits, the values of each display parameter will show a regular distribution as shown in the shaded area (34) in the image. In the subsequent display process, this part will form a regularly distributed bright spot. Based on this, in this embodiment, the determining unit 12 can determine different target overlay matrices for each region to be processed. The target overlay matrix is formed based on the position changes of the matrix parameters in the base matrix, thus ensuring that the position of (34) in the image after overlay and conversion to 8 bits is no longer as shown. Figure 1-A The regularity shown ensures that after the composite image obtained by superimposing each region to be processed with the target superposition matrix based on the input image using the operation unit is converted into the target image, the target image will not contain the regularity shown. Figure 1-A The regular bright spots shown solve the problem of regularly distributed bright spots in the existing process of processing high-bit images into low-bit images.
[0066] Based on this, in this embodiment, compared with the prior art, in the image processing of this application, since a single overlay matrix is no longer used to overlay all regions in the image, but instead a different target overlay matrix is used to overlay each region to be processed in the input image, this ensures that the data content of each region to be processed is different after overlay. As a result, after being processed into a low-bit image, each region will not get the same display parameters, and the position of the bright spots in each region will also be different. This avoids the occurrence of regular bright spots and solves the problem of regular bright spots caused by the same overlay matrix when processing high-bit images into low-bit images in the prior art.
[0067] In some embodiments, such as Figure 2 As shown, the determining unit 12 can be specifically used to select a superposition matrix from a preset matrix set as the target superposition matrix of the region to be processed, wherein the preset matrix set includes at least two superposition matrices.
[0068] In the practical application of the device described in this embodiment, since the target overlay matrix is obtained by changing the position of the matrix parameters based on the base matrix, the preset matrix set obtained by this change can be used as the basis for selecting the target overlay matrix. Since the preset overlay matrix set contains at least two overlay matrices, and the determining unit 12 selects different matrices as target overlay matrices for the region to be processed during the selection of the target overlay matrix, this ensures that the step of transforming the base matrix is no longer required during the selection of the target overlay matrix. Instead, the overlay is directly performed from the overlay matrix, which can improve the efficiency of determining the target overlay matrix and reduce the time consumption of the entire image processing.
[0069] In some embodiments, such as Figure 2 As shown, the determining unit 12 can also be specifically used to select a superposition matrix from the preset matrix set for each of the regions to be processed according to a first rule, as the target superposition matrix, wherein the first rule can be used to select different superposition matrices in adjacent regions to be processed.
[0070] In this embodiment, an input image contains multiple regions to be processed, and these regions are related to each other to a certain extent, such as whether the regions to be processed are adjacent. In order to ensure that regular bright spots are avoided, in this embodiment, when the determining unit 12 determines the target superposition matrix of the region to be processed, it needs to follow the first rule. The first rule is used to restrict the selection of superposition matrices for adjacent regions to be processed. That is, if two regions to be processed are adjacent, it is necessary to ensure that the target superposition matrices required by these two regions are different. This ensures that the same display parameters appear after superposition and conversion, thus avoiding the occurrence of bright spots in the same position in the two regions to be processed in the future, thereby avoiding the situation of regular bright spots being output in the entire input image.
[0071] In some embodiments, since the input image is not displayed as a single image during image processing and display, but rather displayed a certain number of times per second, i.e., frame by frame, then based on the characteristics of human vision, if the position of the bright spots displayed in multiple frames changes within a short period of time, the overall visual effect of the bright spots in the image can be reduced.
[0072] Based on this, such as Figure 2 As shown, the display feature also includes the number of display frames;
[0073] The determining unit 12 can also be specifically used to select, from the preset matrix set, a number of superposition matrices corresponding to the number of display frames for the area to be processed according to the second rule, as the target superposition matrix. The second rule can be used to select different superposition matrices when displaying different frames in the same area to be processed.
[0074] Thus, in this embodiment, during the process of determining the target matrix of the region to be processed, the target overlay matrix required for each frame can be determined based on the number of times the region to be processed is displayed in this display stage, i.e., the number of display frames. In this process, different target overlay matrices can be selected for different frames in the same region based on the second rule. Then, the display effect of the target image obtained after subsequent conversion in this region will be reduced as a whole due to the change in the position of the bright spots between multiple frames, thereby reducing the effect of bright spots from the perspective of visual effect. By analogy, multiple regions to be processed are processed in the same way, and the visual effect of bright spots can be reduced as a whole. This solves the problem of the number of times bright spots appear in the same position in the same region of the same region in multiple frames, and reduces the occurrence of regularly distributed bright spots.
[0075] In some embodiments, such as Figure 2 As shown, the device further includes:
[0076] The amplitude determination unit 14 can be used to determine the matrix change amplitude based on user instructions, and to determine the number of target matrices based on the matrix change amplitude and the number of display frames, wherein the number of target matrices does not exceed the number of display frames;
[0077] The determining unit 12 can be specifically used to select, in the preset matrix set, a superposition matrix corresponding to the number of target matrices for the region to be processed according to the second rule, as the target superposition matrix.
[0078] As described in the foregoing embodiments, based on the characteristics of vision, if the position of a bright spot in a certain display area changes continuously across multiple frames within one second, the overall visual effect of the bright spot will be reduced. Therefore, in this embodiment, during the process of determining unit 12 selecting the target overlay matrix for the area to be processed based on the second rule, it is not necessary for the overlay matrix corresponding to each frame to be different. Instead, the amplitude determination unit 14 can analyze the required matrix change amplitude from the perspective of user instructions and determine the number of target matrices accordingly. The number of target matrices is less than or equal to the number of display frames. That is, in multiple frames of images, the required overlay matrix for the area to be processed remains unchanged in one or more frames. For example, taking a display process using 210Hz as an example, during the process of converting the input image into the target image for display, within one second... Displaying 210 frames, based on the method of this embodiment, when the number of target matrices determined by the amplitude determination unit 14 is 150, it means that in the subsequent determination unit 12 selects the target superposition matrix, only 150 target superposition matrices need to be selected. The remaining 60 frames can be superimposed using the basic matrix. Compared with superimposing the basic matrix in all 210 frames, the final display effect of the target image will be affected by the different superimposed matrices in the display of 150 frames, resulting in changes in the position of bright spots in the processing area. This can reduce the situation where bright spots appear in the same position in 120 frames, thus reducing the impact of bright spots on the overall display effect. This further weakens the situation of regularly occurring bright spots in the entire target image, reducing the effect of regularly distributed bright spots.
[0079] In some embodiments, such as Figure 2 As shown, the superposition matrix includes a Bayer matrix;
[0080] The device further includes:
[0081] The change operation unit 15 can be used to perform at least one change operation on the display parameters in the Bayer matrix, and record the matrix obtained by each change operation to obtain the superimposed matrix; wherein the change operation can be used to change the position of at least two of the display parameters in the Bayer matrix;
[0082] The generation unit 16 can be used to generate the preset matrix set based on the multiple superimposed matrices.
[0083] Specifically, the superimposed matrix obtained by the change operation unit 15 after changing the display parameters of the Bayer matrix can be as follows: Figure 2-AAs shown in the figure, the specific values of the display parameters were not modified during the change operation. Instead, the positions of these display parameters were changed. In the subsequent overlay process, the matrices of these position changes of the display parameters will be superimposed. As a result, the changes of the display parameters in the target image converted from the composite image will be randomized. Based on this, the position of the bright spots in the resulting display effect will also be randomized, and there will no longer be regularly distributed bright spots.
[0084] In some embodiments, such as Figure 2 As shown, the device further includes:
[0085] The image determination unit 17 can be used to determine whether the input image is a target processing image based on the display features. The target processing image includes an image in which the area to be processed covers the entire input image, an image in which the area to be processed is regularly distributed in the input image, and an image in which at least two of the areas to be processed are attached to each other.
[0086] Specifically, the determining unit 12 can be used to determine different target overlay matrices for each region to be processed based on the display features when the input image is determined to be the target processing image.
[0087] Since the specific content of the input image may be different—for example, the input image may have uniformly distributed color blocks or be an image filled entirely with one color—based on the different content of the input image, in this embodiment, for some images, it is not necessary to execute the method of the aforementioned embodiment. For example, uniformly appearing bright spots will affect the user's viewing experience, but if the input image itself is a bright white image, then the impact of the bright spots on vision is negligible. If the image processing method of the aforementioned embodiment is executed again, it will obviously affect the efficiency of image display. Therefore, in this embodiment, the image determination unit 17 can be used to analyze and determine whether the input image is an image that needs to undergo the above image processing process, that is, the target processing image. In this embodiment, the target processing image can be understood as an image in which the areas to be processed are regularly distributed, or an image in which multiple areas to be processed are attached to each other. For the former, if the areas to be processed are regularly distributed, then if the same basic matrix is used for superposition, regularly distributed bright spots will also appear. For the latter, it can be understood as multiple areas to be processed being connected to each other. If the above method is used for all of them, then the following will occur: Figure 1-A The regular display parameters (34) shown form bright spots.
[0088] In summary, when the image determination unit 17 determines that the input image is indeed the target image to be processed, it means that if the image processing is not performed according to the method of the above embodiment, regular bright spots will appear. In this way, the determination unit 12 can determine the target superposition matrix for each region to be processed, thereby avoiding the problem of affecting display efficiency when the above method is performed when some images do not need to have regular bright spots.
[0089] Furthermore, as a response to the above Figure 1 and Figure 2 In addition to the implementation of the illustrated device, another embodiment of this application also provides an image processing method. This method embodiment corresponds to the foregoing method embodiments. For ease of reading, this device embodiment will not repeat the details of the foregoing method embodiments one by one, but it should be clear that the method in this embodiment can correspondingly implement all the contents of the foregoing device embodiments. This method aims to implement an image processing method, primarily by solving the problem of regular bright spots appearing in the processed image when processing a high-bit image into a low-bit image. Specifically, as shown... Figure 3 As shown, the device includes:
[0090] 301. Obtain the input image and determine its display characteristics.
[0091] The display features include the distribution location of each region to be processed in the input image.
[0092] 302. Based on the display characteristics, determine different target overlay matrices for each region to be processed.
[0093] The target superposition matrix is obtained by changing the positions of the matrix parameters in the basic matrix.
[0094] 303. Superimpose each region to be processed in the input image with the corresponding target superposition matrix to obtain a composite image, and then convert the composite image into the target image.
[0095] The target image is an image that meets the target number of bits.
[0096] Furthermore, in the specific implementation process, in step 302 above, different target overlay matrices are determined for each of the regions to be processed based on the display features, including:
[0097] Select one overlay matrix from the preset matrix set as the target overlay matrix for the region to be processed, wherein the preset matrix set includes at least two overlay matrices.
[0098] Furthermore, in the specific implementation process, the aforementioned step of selecting a superposition matrix from the preset matrix set as the target superposition matrix for the region to be processed includes:
[0099] From the preset matrix set, a superposition matrix is selected for each region to be processed according to a first rule, and this matrix is used as the target superposition matrix. The first rule is used to select different superposition matrices for adjacent regions to be processed.
[0100] Furthermore, in specific implementation, the display feature also includes the number of display frames;
[0101] In the aforementioned steps, selecting a superposition matrix from a preset matrix set as the target superposition matrix for the region to be processed includes:
[0102] From the preset matrix set, a number of overlay matrices corresponding to the number of display frames are selected for the processing area according to the second rule, and these matrices are used as the target overlay matrices. The second rule is used to select different overlay matrices when displaying different frames in the same processing area.
[0103] Furthermore, in the specific implementation process, before selecting the number of overlay matrices corresponding to the number of display frames from the preset matrix set for the area to be processed according to the second rule as the target overlay matrix in the aforementioned steps, the method further includes:
[0104] The matrix change range is determined based on user instructions, and the target matrix number is determined based on the matrix change range and the number of display frames, wherein the target matrix number does not exceed the number of display frames;
[0105] The aforementioned step of selecting, from the preset matrix set, a number of overlay matrices corresponding to the number of display frames for the region to be processed according to the second rule, as the target overlay matrix, includes:
[0106] In the preset matrix set, superposition matrices corresponding to the number of target matrices are selected for the region to be processed according to the second rule, and these matrices are used as the target superposition matrices.
[0107] Furthermore, in specific implementation, the superposition matrix includes a Bayer matrix;
[0108] Before selecting a superposition matrix from the preset matrix set as the target superposition matrix for the region to be processed in the aforementioned steps, the method further includes:
[0109] The display parameters in the Bayer matrix are modified at least once, and the matrix obtained from each modification operation is recorded to obtain the superimposed matrix; wherein the modification operation is used to change the position of at least two of the display parameters in the Bayer matrix;
[0110] The preset matrix set is generated based on the multiple superimposed matrices.
[0111] Furthermore, in the specific implementation process, before determining different target overlay matrices for each of the regions to be processed based on the display features, the method further includes:
[0112] Based on the display features, it is determined whether the input image is a target processing image. The target processing image includes an image in which the area to be processed covers the entire input image, an image in which the area to be processed is regularly distributed in the input image, and an image in which at least two of the areas to be processed are attached to each other.
[0113] Based on this, in the aforementioned steps, determining different target overlay matrices for each region to be processed according to the display features includes:
[0114] When the input image is determined to be the target processing image, a different target overlay matrix is determined for each region to be processed based on the display features.
[0115] This application provides an image processing apparatus and method. In this embodiment, an acquisition unit first acquires an input image and determines its display features, including the distribution position of each region to be processed in the input image. Then, a determination unit determines different target overlay matrices for each region to be processed based on the display features. The target overlay matrices are obtained by changing the positions of matrix parameters in the base matrix. Finally, an operation unit overlays each region to be processed in the input image with its corresponding target overlay matrix to obtain a composite image. The composite image is then converted into a target image, which is an image that meets a target number of bits, thereby achieving the image processing function. Compared to existing technologies, in the image processing of this application, instead of using a single overlay matrix to overlay all regions in the image, a different target overlay matrix is used for each region to be processed in the input image. This ensures that the data content of each region to be processed is different after overlay, so that after processing into a low-bit image, each region will not receive the same display parameters, and the position of the bright spots will also be different in each region. This avoids the occurrence of regular bright spots and solves the problem of regular bright spots caused by the same overlay matrix when processing high-bit images into low-bit images in existing technologies.
[0116] The image processing device includes a processor and a memory. The aforementioned acquisition unit, determination unit, operation unit, etc., are all stored in the memory as program units, and the processor executes the aforementioned program units stored in the memory to realize the corresponding functions.
[0117] The processor contains a kernel, which retrieves the corresponding program units from memory. One or more kernels can be configured, and by adjusting kernel parameters, the problem of regular bright spots appearing in the processed image when converting a high-bit image to a low-bit image can be resolved.
[0118] This application provides an image processing apparatus, the apparatus including a storage medium and one or more processors, the storage medium being coupled to the processors, the processors being configured to execute program instructions stored in the storage medium; the program instructions, when executed, perform the image processing method described in any of the preceding claims.
[0119] This application provides a storage medium that includes a stored program, wherein the program, when running, controls the device where the storage medium is located to execute the image processing method described above.
[0120] Storage media may include non-permanent memory in the form of computer-readable media, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0121] This application provides a device including a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, it performs the following steps: acquiring an input image and determining display features of the input image, wherein the display features include the distribution position of each region to be processed in the input image; determining different target overlay matrices for each region to be processed based on the display features, wherein the target overlay matrices are obtained after changing the positions of the matrix parameters in the base matrix; overlaying each region to be processed in the input image with the corresponding target overlay matrix to obtain a composite image, and converting the composite image into a target image, wherein the target image is an image that meets a target number of bits.
[0122] Furthermore, determining different target overlay matrices for each of the regions to be processed based on the display features includes:
[0123] Select one overlay matrix from the preset matrix set as the target overlay matrix for the region to be processed, wherein the preset matrix set includes at least two overlay matrices.
[0124] Furthermore, selecting a superposition matrix from a preset matrix set as the target superposition matrix for the region to be processed includes:
[0125] From the preset matrix set, a superposition matrix is selected for each region to be processed according to a first rule, and this matrix is used as the target superposition matrix. The first rule is used to select different superposition matrices for adjacent regions to be processed.
[0126] Furthermore, the display feature also includes the number of display frames;
[0127] Selecting a superposition matrix from a preset matrix set as the target superposition matrix for the region to be processed includes:
[0128] From the preset matrix set, a number of overlay matrices corresponding to the number of display frames are selected for the processing area according to the second rule, and these matrices are used as the target overlay matrices. The second rule is used to select different overlay matrices when displaying different frames in the same processing area.
[0129] Furthermore, before selecting, according to the second rule, the number of overlay matrices corresponding to the number of display frames for the region to be processed from the preset matrix set as the target overlay matrix, the method further includes:
[0130] The matrix change range is determined based on user instructions, and the target matrix number is determined based on the matrix change range and the number of display frames, wherein the target matrix number does not exceed the number of display frames;
[0131] The step of selecting, from the preset matrix set, a number of overlay matrices corresponding to the number of display frames for the region to be processed according to the second rule, as the target overlay matrix, includes:
[0132] In the preset matrix set, superposition matrices corresponding to the number of target matrices are selected for the region to be processed according to the second rule, and these matrices are used as the target superposition matrices.
[0133] Furthermore, the superposition matrix includes a Bayer matrix;
[0134] Before selecting a superposition matrix from a preset matrix set as the target superposition matrix for the region to be processed, the method further includes:
[0135] The display parameters in the Bayer matrix are modified at least once, and the matrix obtained from each modification operation is recorded to obtain the superimposed matrix; wherein the modification operation is used to change the position of at least two of the display parameters in the Bayer matrix;
[0136] The preset matrix set is generated based on the multiple superimposed matrices.
[0137] Furthermore, before determining different target overlay matrices for each of the regions to be processed based on the display features, the method further includes:
[0138] Based on the display features, it is determined whether the input image is a target processing image. The target processing image includes an image in which the area to be processed covers the entire input image, an image in which the area to be processed is regularly distributed in the input image, and an image in which at least two of the areas to be processed are attached to each other.
[0139] The step of determining different target overlay matrices for each region to be processed based on the display features includes:
[0140] When the input image is determined to be the target processing image, a different target overlay matrix is determined for each region to be processed based on the display features.
[0141] This application also provides a computer program product, which, when executed on a data processing device, is suitable for executing program code that initializes the following method steps: acquiring an input image and determining the display features of the input image, wherein the display features include the distribution position of each region to be processed in the input image; determining different target overlay matrices for each region to be processed according to the display features, wherein the target overlay matrices are obtained after changing the positions of the matrix parameters in the base matrix; overlaying each region to be processed in the input image with the corresponding target overlay matrix to obtain a composite image, and converting the composite image into a target image, wherein the target image is an image that meets the target number of bits.
[0142] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0143] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0144] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0145] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0146] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0147] Memory may include non-persistent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.
[0148] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.
[0149] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0150] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0151] The above are merely embodiments of this application and are not intended to limit the scope of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of the claims of this application.
Claims
1. An image processing apparatus characterized by comprising: The device includes: An acquisition unit is used to acquire an input image and determine the display features of the input image, wherein the display features include the distribution position of each region to be processed in the input image, and the display features also include the number of display frames; A determining unit is configured to determine different target overlay matrices for each of the regions to be processed based on the display features, wherein the target overlay matrix is obtained after changing the positions of the matrix parameters in the base matrix; The determining unit is specifically used to select a superposition matrix from a preset matrix set as the target superposition matrix of the region to be processed, wherein the preset matrix set includes at least two superposition matrices; The determining unit is further specifically used to select, from the preset matrix set, a number of superposition matrices corresponding to the number of display frames for the processing area according to the second rule, as the target superposition matrix, wherein the second rule is used to select different superposition matrices when displaying different frames in the same processing area; An operation unit is configured to superimpose each region to be processed in the input image with the corresponding target superposition matrix to obtain a composite image, and convert the composite image into a target image, wherein the target image is an image that meets the target number of bits.
2. The apparatus of claim 1, wherein, The determining unit is further specifically configured to select a superposition matrix from the preset matrix set for each region to be processed according to a first rule, as the target superposition matrix, wherein the first rule is used to select different superposition matrices for adjacent regions to be processed.
3. The apparatus of claim 1, wherein, The device further includes: An amplitude determination unit is used to determine the amplitude of matrix changes based on user instructions, and to determine the number of target matrices based on the amplitude of matrix changes and the number of display frames, wherein the number of target matrices does not exceed the number of display frames; The determining unit is specifically used to select, from the preset matrix set, a superposition matrix corresponding to the number of target matrices for the region to be processed, according to the second rule, as the target superposition matrix.
4. The apparatus of claim 1, wherein, The superposition matrix includes a Bayer matrix; The device further includes: The change operation unit is used to perform at least one change operation on the display parameters in the Bayer matrix, and record the matrix obtained by each change operation to obtain the superimposed matrix; wherein the change operation is used to change the position of at least two of the display parameters in the Bayer matrix; The generation unit is used to generate the preset matrix set based on the multiple superimposed matrices.
5. The apparatus according to claim 1, characterized in that, The device further includes: An image determination unit is used to determine whether the input image is a target processing image based on the display features. The target processing image includes an image in which the area to be processed covers the entire input image, an image in which the area to be processed is regularly distributed in the input image, and an image in which at least two of the areas to be processed are attached to each other. The determining unit is specifically used to determine different target overlay matrices for each region to be processed based on the display features when the input image is determined to be the target processing image.
6. An image processing method, characterized in that, The method includes: An input image is acquired, and the display features of the input image are determined, wherein the display features include the distribution position of each region to be processed in the input image, and the display features also include the number of display frames; Based on the display features, a different target overlay matrix is determined for each region to be processed, wherein the target overlay matrix is obtained after changing the position of the matrix parameters in the base matrix; The step of determining different target overlay matrices for each region to be processed based on the display features includes: selecting an overlay matrix from a preset matrix set as the target overlay matrix for the region to be processed, wherein the preset matrix set includes at least two overlay matrices; The step of selecting an overlay matrix from a preset matrix set as the target overlay matrix for the region to be processed includes: selecting overlay matrices corresponding to the number of display frames for the region to be processed according to a second rule from the preset matrix set, and using them as the target overlay matrices. The second rule is used to select different overlay matrices when displaying different frames in the same region to be processed. Each region to be processed in the input image is superimposed with the corresponding target superposition matrix to obtain a composite image, and the composite image is converted into a target image, wherein the target image is an image that meets the target number of bits.
7. The method according to claim 6, characterized in that, Selecting a superposition matrix from a preset matrix set as the target superposition matrix for the region to be processed includes: From the preset matrix set, a superposition matrix is selected for each region to be processed according to a first rule, and this matrix is used as the target superposition matrix. The first rule is used to select different superposition matrices for adjacent regions to be processed.
8. A storage medium, characterized in that, The storage medium includes a stored program, wherein the program, when running, controls the device containing the storage medium to execute the image processing method of claim 6 or 7.
9. An image processing device, characterized in that, The device includes a storage medium; and one or more processors, the storage medium being coupled to the processors, the processors being configured to execute program instructions stored in the storage medium; the program instructions, when executed, perform the image processing method of claim 6 or 7.
Citation Information
Patent Citations
Display control method, device and system
CN112614457A
Image processing method and device and storage medium
CN115662332A