Image resolution expansion processing method, device and control terminal

Through byte traversal and copying image lattice information, the problem of wasted computing resources and inefficient in image resolution expansion in the prior art is solved, and effective expansion of image resolution and clarity improvement is achieved.

CN113724138BActive Publication Date: 2025-02-07BEIJING KINGJUN TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111058303.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-09
Publication Date
2025-02-07
Estimated Expiration
2041-09-09

AI Technical Summary

Technical Problem

The prior art is highly wasted and inefficient when expanding image resolution, especially when processing large images, and the method of traversing each pixel point leads to high computational costs.

Method used

By obtaining image lattice information, traversing image lattice information in bytes, and copying and storing pixel points in sequence according to preset order, the lattice expansion information is obtained, and the expanded image is finally output. This method traverses in bytes, reducing the number of loops and reducing the calculation cost.

Benefits of technology

It is achieved by double the resolution of the image without changing the image size, improving the sharpness of the image, and greatly reducing the waste of computing resources and processing time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113724138B_ABST
    Figure CN113724138B_ABST
Patent Text Reader

Abstract

The present application relates to an image resolution expansion processing method, device and control terminal, which obtains image dot matrix information; traverses the image dot matrix information according to bytes; copies and stores the pixels in the image dot matrix information in sequence according to a preset order to obtain dot matrix expansion information; outputs an expanded image according to the dot matrix expansion information; traverses in bytes, i.e., pixels, and cyclically copies and stores the pixels in the image dot matrix information, which can greatly reduce the number of cycles, and the computer is much more proficient in operating bytes than bits; after all bytes are traversed, the dot matrix information of the image is doubled.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of image processing technology, and in particular to an image resolution expansion processing method, device and control terminal. Background Art

[0002] The unit of image resolution is DPI. DPI (Dots Per Inch) is a unit of measurement used for dot matrix digital images, which refers to the number of sampled, displayable or output dots per inch. DPI is one of the main parameters for measuring the accuracy of images printed by printers and other devices. Generally speaking, the higher the DPI value, the higher the printing accuracy of the printer. The larger the DPI of the image, the more pixels there are per unit length, so the clearer the image. For example, there is a picture with a resolution of 100*100, which means that the horizontal resolution and the vertical resolution are both 100.

[0003] At present, there are a wide variety of algorithms for image processing in coding. However, if these algorithms are only used to expand the resolution of images, it seems a bit "overkill".

[0004] like Figure 2 As shown in the figure, it is an image composed of 4 pixels. The numbers here represent the pixel numbers, not the colors. The four pixels are labeled as follows: 1, 2, 3, 4. Now if you want to Figure 2 The essence of doubling the horizontal or other directional resolution is to copy each point once. The number represents the copying rule, such as Figure 3 As shown, the labels of the four points are copied to 11, 22, 33, and 44. Taking C++ language as an example, in the algorithm for expanding the image, if you want to Figure 2 The image dot information in the image is doubled to Figure 3 The first thing that comes to mind when looking at the dot matrix information shown is to traverse the dot matrix information from beginning to end, such as using a for loop. This is theoretically feasible, but if the image is large enough, the computer will perform bit traversal operations, which will undoubtedly cause a huge waste of computer resources and will be quite inefficient. Summary of the invention

[0005] In view of this, the present disclosure proposes an image resolution expansion processing method, device and control terminal, which are used to double the horizontal resolution of the image, double the dot matrix information of the image, expand the dot matrix information, and do not change the size of the image, thereby achieving the purpose of expanding the image resolution.

[0006] According to one aspect of the present disclosure, a method for image resolution expansion processing is provided, comprising the following steps:

[0007] S1, obtaining image dot matrix information;

[0008] S2, traversing the image dot matrix information according to bytes;

[0009] S3, according to a preset order, sequentially copying and storing the pixel points in the image dot matrix information to obtain dot matrix expansion information;

[0010] S4. Expand the information according to the dot matrix and output an expanded image.

[0011] In a possible implementation, optionally, the method further includes:

[0012] Preset expansion multiples;

[0013] Expanding the image storage space according to the preset expansion multiple to obtain expanded storage space;

[0014] The dot matrix expansion information is stored in the expansion storage space.

[0015] In a possible implementation, optionally, in step S3, sequentially copying and storing the pixels in the image dot matrix information according to a preset order to obtain dot matrix expansion information includes:

[0016] Taking bytes as units, sequentially obtain first dot matrix information of pixel points in the image dot matrix information;

[0017] Convert the first dot matrix information into a byte system;

[0018] Get the first byte data group.

[0019] In a possible implementation, optionally, the method further includes:

[0020] Taking bytes as units, sequentially obtain second dot matrix information of the pixels in the dot matrix expansion information;

[0021] Convert the second dot matrix information into a byte system;

[0022] Get the second byte data group.

[0023] In a possible implementation, optionally, the method further includes:

[0024] Obtaining the first byte data group and the second byte data group;

[0025] According to the byte groups in the first byte data group, compare and index out the byte groups matching the byte groups in the first byte data group from the second byte data group;

[0026] The matched byte group is replaced with the corresponding first byte data group.

[0027] According to another aspect of the present disclosure, an image resolution expansion processing method and device is provided, comprising an image dot matrix information acquisition module, a traversal module, a dot matrix expansion information acquisition module and an expanded image output module electrically connected in sequence, wherein:

[0028] The image dot matrix information acquisition module is used to acquire image dot matrix information;

[0029] The traversal module is used to traverse the image dot matrix information according to bytes;

[0030] The dot matrix expansion information acquisition module is used to copy and store the pixel points in the image dot matrix information in sequence according to a preset order to obtain the dot matrix expansion information;

[0031] The expanded image output module is used to expand the information according to the dot matrix and output the expanded image.

[0032] In a possible implementation, optionally, an expansion storage processing module is further included, and the expansion storage processing module is used to:

[0033] Preset expansion multiples;

[0034] Expanding the image storage space according to the preset expansion multiple to obtain expanded storage space;

[0035] The dot matrix expansion information is stored in the expansion storage space.

[0036] In a possible implementation, optionally, the dot matrix expansion information acquisition module includes:

[0037] A first dot matrix information acquisition module: used to sequentially acquire first dot matrix information of pixel points in the image dot matrix information in units of bytes;

[0038] A first byte conversion module: used for performing byte conversion on the first dot matrix information;

[0039] The first byte data group acquisition module is used to obtain the first byte data group.

[0040] In a possible implementation, optionally, the dot matrix expansion information acquisition module further includes:

[0041] A second dot matrix information acquisition module: used to sequentially acquire the second dot matrix information of the pixel points in the dot matrix expansion information in bytes;

[0042] A second byte conversion module: used for performing byte conversion on the second dot matrix information;

[0043] The second byte data group acquisition module is used to obtain the second byte data group.

[0044] In a possible implementation, optionally, the dot matrix expansion information acquisition module further includes:

[0045] A data group acquisition module: used for acquiring the first byte data group and the second byte data group;

[0046] An index matching module: used for comparing and indexing byte groups matching the byte groups in the first byte data group from the second byte data group according to the byte groups in the first byte data group;

[0047] Replacement module: used to replace the matching byte group with the corresponding first byte data group.

[0048] According to another aspect of the present disclosure, there is provided a control terminal, comprising:

[0049] processor;

[0050] A memory for storing processor executable instructions; wherein the processor is configured to implement the above-mentioned image resolution expansion processing method when executing the executable instructions.

[0051] The present invention obtains image dot matrix information; traverses the image dot matrix information according to bytes; copies and stores pixel points in the image dot matrix information in sequence according to a preset order to obtain dot matrix expansion information; outputs an expanded image according to the dot matrix expansion information; traverses in units of bytes, i.e., pixels, and cyclically copies and stores pixel points in the image dot matrix information, which can greatly reduce the number of cycles, and the computer is much more proficient in operating bytes than bits; after all bytes are traversed, the dot matrix information of the image is doubled.

[0052] Further features and aspects of the present disclosure will become apparent from the following detailed description of exemplary embodiments with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate exemplary embodiments, features, and aspects of the disclosure and, together with the description, serve to explain the principles of the disclosure.

[0054] Figure 1 FIG. 1 is a schematic diagram showing an implementation flow of the image resolution expansion processing method of the present invention;

[0055] Figure 2 It is shown as a schematic diagram of an image composed of four pixels;

[0056] Figure 3 Shown as Figure 1 Schematic diagram of an image after the lateral resolution is doubled;

[0057] Figure 4 Shown is a schematic diagram of an image composed of eight pixels;

[0058] Figure 5 Shown as Figure 4 Schematic diagram of an image after the lateral resolution is doubled;

[0059] Figure 6 FIG. 1 is a schematic diagram showing the composition structure of the image resolution expansion processing device of the present invention; DETAILED DESCRIPTION

[0060] Various exemplary embodiments, features and aspects of the present disclosure will be described in detail below with reference to the accompanying drawings. The same reference numerals in the accompanying drawings represent elements with the same or similar functions. Although various aspects of the embodiments are shown in the accompanying drawings, the drawings are not necessarily drawn to scale unless otherwise specified.

[0061] The word “exemplary” is used exclusively herein to mean “serving as an example, example, or illustration.” Any embodiment described herein as “exemplary” is not necessarily to be construed as preferred or advantageous over other embodiments.

[0062] In addition, in order to better illustrate the present disclosure, numerous specific details are given in the following specific embodiments. It should be understood by those skilled in the art that the present disclosure can also be implemented without certain specific details. In some examples, methods, means, components and circuits well known to those skilled in the art are not described in detail in order to highlight the subject matter of the present disclosure.

[0063] Example 1

[0064] like Figure 1 As shown, this embodiment provides an image resolution expansion processing method, comprising the following steps:

[0065] S1, obtaining image dot matrix information;

[0066] After obtaining a picture with a resolution that needs to be processed, first obtain the pixel information of the image from the image through image software such as MATLAB, that is, first obtain the image dot matrix information in the image information of the picture.

[0067] In the present application, the method for obtaining the image dot matrix information is not limited thereto, and the user may choose to use a tool to obtain the image dot matrix information according to convenience.

[0068] S2, traversing the image dot matrix information according to bytes;

[0069] The traversal is performed in units of bytes, i.e. 8 pixels. There is no need to traverse each pixel in the image matrix one by one and copy the bytes according to this method. All the pixels can be copied by traversing the bytes once. In this way, the number of cycles becomes 1 / 8 of the previous number, which greatly reduces the image processing time, and the computer is much more proficient in operating bytes than in operating bits.

[0070] S3, according to a preset order, sequentially copying and storing the pixel points in the image dot matrix information to obtain dot matrix expansion information;

[0071] The present invention only involves dot matrix data information, and does not consider image file header information including color table. In ordinary encoding, a Byte has 8 bits, representing 8 pixels. Usually, for a monochrome image, 0 represents a white dot and 1 represents a black dot.

[0072] The image dot matrix information is composed of countless pixels. In order to facilitate understanding and expression of the method, this embodiment adopts a regular structure of pixels to form an image.

[0073] like Figure 4 As shown in the figure, it is an image composed of 8 pixels. The numbers here represent the pixel numbers, not the colors. 0 represents a white pixel and 1 represents a black pixel. The 8 pixels are labeled as follows: 00100001. Figure 4 To double the horizontal or other resolution of the image, the byte number is copied once, such as Figure 5 As shown, the labels of the eight points are copied and changed to: 0000110000000011. Specifically:

[0074] Taking pixels as units, traverse in a preset order, take out the first pixel from the image dot matrix information, and then copy it twice to the memory in sequence; then take out the second pixel from the image dot matrix information, and then copy it twice to the memory; repeat the process in a loop until all pixels are copied twice.

[0075] In this way, if a picture contains 8 dot matrix information, it needs to be cycled 8 times and the memory is assigned 16 times. After all the pixels in the image dot matrix information are copied in sequence and stored, dot matrix expansion information is obtained, which includes the copied dot matrix pixels.

[0076] The preset order may be horizontal resolution or vertical resolution or other set directions, and is selected by the user according to the dot matrix information of the image resolution to be expanded as needed.

[0077] S4. Expand the information according to the dot matrix and output an expanded image.

[0078] The resolution can be expanded according to the copied dot matrix pixels, and the specific expansion multiple is consistent with the copy multiple. The specific copy multiple is set by the user and is not limited. Using the image processing tool, according to the dot matrix expansion information, after the image is output, its resolution is expanded to improve the image clarity.

[0079] It should be noted that although the above lateral resolution clarity processing method is introduced by taking an image composed of 8 pixels as an example, those skilled in the art will understand that the present disclosure should not be limited to this. In fact, the user can flexibly set the expansion direction and dot matrix information according to personal preferences and / or actual application scenarios, as long as the pixel doubling and clarity can be achieved according to this method. At the same time, the node information of the image color can also be achieved through this technology.

[0080] Therefore, the present invention obtains image dot matrix information; traverses the image dot matrix information according to bytes; copies and stores the pixels in the image dot matrix information in sequence according to a preset order to obtain dot matrix expansion information; outputs an expanded image according to the dot matrix expansion information; can traverse in bytes, i.e., pixels, and cyclically copy and store the pixels in the image dot matrix information, which can greatly reduce the number of cycles, and the computer is much more proficient in operating bytes than bits; after all bytes are traversed, the dot matrix information of the image is doubled.

[0081] In a possible implementation, optionally, it also includes: presetting an expansion multiple; setting in advance the replication multiple of the dot matrix pixels that need to be expanded to facilitate the selection of clarity and storage space size; expanding the image storage space according to the preset expansion multiple to obtain an expanded storage space; and storing the dot matrix expansion information in the expanded storage space.

[0082] In this embodiment, the space occupied by the pixels in the image dot matrix information increases after expansion. Therefore, it is necessary to first allocate a memory of the same size as the original image according to the preset expansion multiple to expand the storage space, so as to obtain the expanded storage space for storing the copied dot matrix information.

[0083] In this embodiment, the space is set to be double, and the dot matrix expansion information is stored in the expanded storage space. The first pixel point is taken out from the image dot matrix information, and then copied to the memory twice in sequence; then the second pixel point is taken out from the image dot matrix information, and then copied to the memory twice; the process is cyclically processed in sequence until all the pixels are copied twice. After the copying is completed, the dot matrix expansion information is stored in the expanded storage space.

[0084] In a possible implementation, optionally, in step S3, sequentially copying and storing the pixels in the image dot matrix information according to a preset order to obtain dot matrix expansion information includes:

[0085] Taking bytes as units, first dot matrix information of pixels in the image dot matrix information is acquired in sequence; byte-based conversion is performed on the first dot matrix information; and a first byte data group is obtained.

[0086] like Figure 4 As shown, the image contains 8 pixels, with bytes (single byte) as the unit, then the pixel in the figure, that is, the dot matrix information of the first dot matrix information, is 00100001, which is converted into hexadecimal as 0x21.

[0087] Generally speaking, the pixels of a standard image are all 8-bit aligned, so there is no need to consider the case where there are less than 8 pixels. In summary, if the image pixels are processed in units of 8 pixels, each pixel is either 0 or 1, so there are a total of 28=256 cases. These 256 cases are integrated into an array, that is, the byte conversion in the first dot matrix information is performed to obtain the first byte data group:

[0088] BYTE byData

[256] =

[0089] {

[0090] 0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0A,0x0B,0x0C,0x0D,0x0E,0x0F,0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17,0x18,0x19,0x1A,0x1B,0x1C,0x1D,0x1E,0x1F,0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27,0x28,0x29,0x2A,0x2B,0x2C,0x2D,0x2E,0x2F,0x30,0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x3A,0x3B,0x3C,0x3D,0x3E,0x3F,0x40,0x41,0x42,0x43,0x44,0x45,0x46,0x47,0x48,0x49,0x4A,0x4B,0x4C,0x4D,0x4E,0x4F,0x50,0x51,0x52,0x53,0x54,0x55,0x56,0x57,0x58,0x59,0x5A,0x5B,0x5C,0x5D,0x5E,0x5F,0x60,0x61,0x62,0x63,0x64,0x65,0x66,0x67,0x68,0x69,0x6A,0x6B,0x6C,0x6D,0x6E,0x6F,0x70,0x71,0x72,0x73,0x74,0x75,0x76,0x77,0x78,0x79,0x7A,0x7B,0x7C,0x7D,0x7E,0x7F,0x80,0x81,0x82,0x83,0x84,0x85,0x86,0x87,0x88,0x89,0x8A,0x8B,0x8C,0x8D,0x8E,0x8F,0x90,0x91,0x92,0x93,0x94,0x95,0x96,0x97,0x98,0x99,0x9A,0x9B,0x9C,0x9D,0x9E,0x9F,0xA0,0xA1,0xA2,0xA3,0xA4,0xA5,0xA6,0xA7,0xA8,0xA9,0xAA,0xAB,0xAC,0xAD,0xAE,0xAF,

[0091] 0xB0, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB9, 0xBA, 0xBB, 0xBC, 0xBD, 0xBE, 0xBF, 0xC0, 0xC1, 0xC2, 0xC3, 0xC4, 0xC5, 0xC6, 0xC7, 0xC8, 0xC9, 0xCA, 0xCB, 0xCC, 0xCD, 0xCE, 0xCF, 0xD0, 0xD1, 0xD2, 0xD3, 0xD4, 0xD5, 0xD6, 0xD7, 0xD8, 0xD9, 0xDA, 0xDB, 0xDC, 0xDD, 0xDE, 0xDF, 0xE0, 0xE1, 0xE2, 0xE3, 0xE4, 0xE5, 0xE6, 0xE7, 0xE8, 0xE9, 0xEA, 0xEB, 0xEC, 0xED, 0xEE, 0xEF, 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, 0xF7, 0xF8, 0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE, 0xFF,

[0092] };

[0093] The first byte data group contains an array of 256 single bytes, which is used as the basic data for copying.

[0094] After the hexadecimal conversion of the dot matrix information of the pixel points of the original image, through the above-mentioned "taking pixel points as units, traversing according to the preset order, taking out the first pixel point from the image dot matrix information, and then copying it twice to the memory in sequence; then taking out the second pixel point from the image dot matrix information, and then copying it twice to the memory; looping the process in sequence until all the pixel points are copied" twice, it is necessary to perform the same hexadecimal conversion on the dot matrix information of the expanded pixel points.

[0095] In a possible implementation, optionally, the method further includes:

[0096] Taking bytes as units, sequentially obtain second dot matrix information of pixels in the dot matrix expansion information; perform byte conversion on the second dot matrix information; and obtain a second byte data group.

[0097] like Figure 5 As shown in the figure, the dot matrix information of the pixel point (double byte) of the copied image is 0000110000000011, which is converted to hexadecimal as 0x0C03, and according to the principle of low byte first, it is 0x030C. If it is processed according to bytes, it only needs to loop once and assign values ​​to the memory once.

[0098] For BYTE byData

[256] in the first byte data group, perform hexadecimal conversion on the copied bytes to obtain the second byte data group:

[0099] WORD nData

[256] =

[0100] {

[0101] 0x0000, 0x0300, 0x0C00, 0x0F00, 0x3000, 0x3300, 0x3C00, 0x3F00,

[0102] 0xC000, 0xC300, 0xCC00, 0xCF00, 0xF000, 0xF300, 0xFC00, 0xFF00,

[0103] 0x0003, 0x0303, 0x0C03, 0x0F03, 0x3003, 0x3303, 0x3C03, 0x3F03,

[0104] 0xC003, 0xC303, 0xCC03, 0xCF03, 0xF003, 0xF303, 0xFC03, 0xFF03,

[0105] 0x000C, 0x030C, 0x0C0C, 0x0F0C, 0x300C, 0x330C, 0x3C0C, 0x3F0C,

[0106] 0xC00C, 0xC30C, 0xCC0C, 0xCF0C, 0xF00C, 0xF30C, 0xFC0C, 0xFF0C,

[0107] 0x000F, 0x030F, 0x0C0F, 0x0F0F, 0x300F, 0x330F, 0x3C0F, 0x3F0F,

[0108] 0xC00F, 0xC30F, 0xCC0F, 0xCF0F, 0xF00F, 0xF30F, 0xFC0F, 0xFF0F,

[0109] 0x0030, 0x0330, 0x0C30, 0x0F30, 0x3030, 0x3330, 0x3C30, 0x3F30,

[0110] 0xC030, 0xC330, 0xCC30, 0xCF30, 0xF030, 0xF330, 0xFC30, 0xFF30,

[0111] 0x0033,0x0333,0x0C33,0x0F33,0x3033,0x3333,0x3C33,0x3F33,

[0112] 0xC033,0xC333,0xCC33,0xCF33,0xF033,0xF333,0xFC33,0xFF33,

[0113] 0x003C,0x033C,0x0C3C,0x0F3C,0x303C,0x333C,0x3C3C,0x3F3C,

[0114] 0xC03C,0xC33C,0xCC3C,0xCF3C,0xF03C,0xF33C,0xFC3C,0xFF3C,

[0115] 0x003F,0x033F,0x0C3F,0x0F3F,0x303F,0x333F,0x3C3F,0x3F3F,

[0116] 0xC03F,0xC33F,0xCC3F,0xCF3F,0xF03F,0xF33F,0xFC3F,0xFF3F,

[0117] 0x00C0,0x03C0,0x0CC0,0x0FC0,0x30C0,0x33C0,0x3CC0,0x3FC0,

[0118] 0xC0C0,0xC3C0,0xCCC0,0xCFC0,0xF0C0,0xF3C0,0xFCC0,0xFFC0,

[0119] 0x00C3,0x03C3,0x0CC3,0x0FC3,0x30C3,0x33C3,0x3CC3,0x3FC3,

[0120] 0xC0C3,0xC3C3,0xCCC3,0xCFC3,0xF0C3,0xF3C3,0xFCC3,0xFFC3,

[0121] 0x00CC,0x03CC,0x0CCC,0x0FCC,0x30CC,0x33CC,0x3CCC,0x3FCC,

[0122] 0xC0CC,0xC3CC,0xCCCC,0xCFCC,0xF0CC,0xF3CC,0xFCCC,0xFFCC,

[0123] 0x00CF, 0x03CF, 0x0CCF, 0x0FCF, 0x30CF, 0x33CF, 0x3CCF, 0x3FCF,

[0124] 0xC0CF, 0xC3CF, 0xCCCF, 0xCFCF, 0xF0CF, 0xF3CF, 0xFCCF, 0xFFCF,

[0125] 0x00F0, 0x03F0, 0x0CF0, 0x0FF0, 0x30F0, 0x33F0, 0x3CF0, 0x3FF0,

[0126] 0xC0F0, 0xC3F0, 0xCCF0, 0xCFF0, 0xF0F0, 0xF3F0, 0xFCF0, 0xFFF0,

[0127] 0x00F3, 0x03F3, 0x0CF3, 0x0FF3, 0x30F3, 0x33F3, 0x3CF3, 0x3FF3,

[0128] 0xC0F3, 0xC3F3, 0xCCF3, 0xCFF3, 0xF0F3, 0xF3F3, 0xFCF3, 0xFFF3,

[0129] 0x00FC, 0x03FC, 0x0CFC, 0x0FFC, 0x30FC, 0x33FC, 0x3CFC, 0x3FFC,

[0130] 0xC0FC, 0xC3FC, 0xCCFC, 0xCFFC, 0xF0FC, 0xF3FC, 0xFCFC, 0xFFFC,

[0131] 0x00FF, 0x03FF, 0x0CFF, 0x0FFF, 0x30FF, 0x33FF, 0x3CFF, 0x3FFF,

[0132] 0xC0FF, 0xC3FF, 0xCCFF, 0xCFFF, 0xF0FF, 0xF3FF, 0xFCFF, 0xFFFF,

[0133] };

[0134] After the conversion, both the initial image and the highlighted hexadecimal byte data groups after the conversion of the copy are available. Subsequently, by indexing the corresponding conversion data and replacing it, the pixel points of the dot matrix information can be changed, and the function of doubling the pixels in the dot matrix information can be realized, achieving the technical effect of expanding the resolution and making it clearer.

[0135] In a possible implementation, optionally, the method further includes:

[0136] Obtain the first byte data group and the second byte data group; compare and index the byte group that matches the byte group in the first byte data group from the second byte data group according to the byte group in the first byte data group; replace the matching byte group with the corresponding first byte data group.

[0137] After obtaining the first byte data group BYTE byData

[256] and the second byte data group WORD nData

[256] , first traverse the image dot matrix information of this picture according to the bytes, and then index and compare each value of BYTE byData

[256] in the second byte data group WORD nData

[256] according to the 256 values ​​in the first byte data group BYTEbyData

[256] . After finding the corresponding value, replace the value in the first array under the index accordingly, such as replacing 0x01 with 0x0300, etc. After all the bytes are traversed, the dot matrix information of the picture is doubled.

[0138] The above only represents an implementation scheme for byte conversion based on 8 pixels, and the specific conversion data group can be selected and set by the user.

[0139] Example 2

[0140] like Figure 6 As shown, based on the technical implementation of the image resolution expansion processing method provided in Example 1, this embodiment provides an image resolution expansion processing device, including an image dot matrix information acquisition module, a traversal module, a dot matrix expansion information acquisition module and an expanded image output module electrically connected in sequence, wherein:

[0141] The image dot matrix information acquisition module is used to acquire image dot matrix information;

[0142] The traversal module is used to traverse the image dot matrix information according to bytes;

[0143] The dot matrix expansion information acquisition module is used to copy and store the pixel points in the image dot matrix information in sequence according to a preset order to obtain the dot matrix expansion information;

[0144] The expanded image output module is used to expand the information according to the dot matrix and output the expanded image.

[0145] After the image dot matrix information of the picture is obtained by the image dot matrix information acquisition module, the image dot matrix information is sent to the traversal module, and each pixel of the image dot matrix information of the picture is traversed by the traversal module, so that the pixel information can be traversed according to the byte to obtain the dot matrix information of the pixel; in the dot matrix expansion information acquisition module, each pixel is copied and stored in the expansion storage space in turn according to the order of the pixels obtained by the traversal, and the dot matrix expansion information is obtained as the basic data for the dot matrix information processing of the image resolution. When the image is finally processed by the expanded image output module, the pixel-expanded image can be output according to the dot matrix expansion information, and the image with doubled resolution can be obtained, and a high-definition picture can be obtained.

[0146] The functions and technical principles of the above modules and the following modules are specifically described in Example 1, and will not be elaborated in this embodiment.

[0147] In a possible implementation, optionally, an expansion storage processing module is further included, and the expansion storage processing module is used to:

[0148] Preset expansion multiples;

[0149] Expanding the image storage space according to the preset expansion multiple to obtain expanded storage space;

[0150] The dot matrix expansion information is stored in the expansion storage space.

[0151] In a possible implementation, optionally, the dot matrix expansion information acquisition module includes:

[0152] A first dot matrix information acquisition module: used to sequentially acquire first dot matrix information of pixel points in the image dot matrix information in units of bytes;

[0153] A first byte conversion module: used for performing byte conversion on the first dot matrix information;

[0154] The first byte data group acquisition module is used to obtain the first byte data group.

[0155] In a possible implementation, optionally, the dot matrix expansion information acquisition module further includes:

[0156] A second dot matrix information acquisition module: used to sequentially acquire the second dot matrix information of the pixel points in the dot matrix expansion information in bytes;

[0157] A second byte conversion module: used for performing byte conversion on the second dot matrix information;

[0158] The second byte data group acquisition module is used to obtain the second byte data group.

[0159] In a possible implementation, optionally, the dot matrix expansion information acquisition module further includes:

[0160] A data group acquisition module: used for acquiring the first byte data group and the second byte data group;

[0161] An index matching module: used for comparing and indexing byte groups matching the byte groups in the first byte data group from the second byte data group according to the byte groups in the first byte data group;

[0162] Replacement module: used to replace the matching byte group with the corresponding first byte data group.

[0163] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, and optionally, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.

[0164] Example 3

[0165] Furthermore, according to another aspect of the present disclosure, a control terminal is also provided.

[0166] The control terminal of the embodiment of the present disclosure includes a processor and a memory for storing processor executable instructions, wherein the processor is configured to implement any of the above-mentioned image resolution expansion processing methods when executing the executable instructions.

[0167] Here, it should be noted that the number of processors may be one or more. At the same time, the control terminal of the embodiment of the present disclosure may also include an input device and an output device. The processor, memory, input device, and output device may be connected via a bus or in other ways, which are not specifically limited here.

[0168] The memory is a computer-readable storage medium for the image resolution expansion processing method, and can be used to store software programs, computer executable programs, and various modules, such as: a program or module corresponding to an image resolution expansion processing method in an embodiment of the present disclosure. The processor executes various functional applications and data processing of the control terminal by running the software program or module stored in the memory.

[0169] The input device can be used to receive input numbers or signals. The signal can be a key signal related to user settings and function control of the device / terminal / server. The output device can include a display device such as a display screen.

[0170] The embodiments of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.

Claims

1. A method for image resolution expansion processing, characterized in that: The steps include: S1, obtaining image dot matrix information; S2, traversing the image dot matrix information according to bytes; S3, according to a preset order, sequentially copying and storing the pixel points in the image dot matrix information to obtain dot matrix expansion information; S4, outputting an expanded image according to the dot matrix expansion information; In step S3, the pixel points in the image dot matrix information are copied and stored in sequence according to a preset order to obtain dot matrix expansion information, including: Taking bytes as units, sequentially obtain first dot matrix information of pixel points in the image dot matrix information; Convert the pixels in the first dot matrix information into byte-based systems; Get the first byte data group.

2. The image resolution expansion processing method according to claim 1, characterized in that: Also includes: Preset expansion multiples; Expanding the image storage space according to the preset expansion multiple to obtain expanded storage space; The dot matrix expansion information is stored in the expansion storage space.

3. The image resolution expansion processing method according to claim 1, characterized in that: Also includes: Taking bytes as units, sequentially obtain second dot matrix information of the pixels in the dot matrix expansion information; Convert the pixels in the second dot matrix information into byte system; Get the second byte data group.

4. The image resolution expansion processing method according to claim 3, characterized in that: Also includes: Obtaining the first byte data group and the second byte data group; According to the byte groups in the first byte data group, compare and index out the byte groups matching the byte groups in the first byte data group from the second byte data group; The matched byte group is replaced with the corresponding first byte data group.

5. An image resolution expansion processing device, characterized in that: It includes an image dot matrix information acquisition module, a traversal module, a dot matrix expansion information acquisition module and an expanded image output module which are electrically connected in sequence, wherein: The image dot matrix information acquisition module is used to acquire image dot matrix information; The traversal module is used to traverse the image dot matrix information according to bytes; The dot matrix expansion information acquisition module is used to copy and store the pixel points in the image dot matrix information in sequence according to a preset order to obtain the dot matrix expansion information; The expanded image output module is used to output the expanded image according to the dot matrix expansion information; The dot matrix expansion information acquisition module includes: A first dot matrix information acquisition module: used to sequentially acquire first dot matrix information of pixel points in the image dot matrix information in units of bytes; A first byte conversion module: used for performing byte conversion on the pixel points in the first dot matrix information; The first byte data group acquisition module is used to obtain the first byte data group.

6. The image resolution expansion processing device according to claim 5, characterized in that: Also included is an expansion storage processing module, the expansion storage processing module is used to: Preset expansion multiples; Expanding the image storage space according to the preset expansion multiple to obtain expanded storage space; The dot matrix expansion information is stored in the expansion storage space.

7. The image resolution expansion processing device according to claim 5, characterized in that: The dot matrix expansion information acquisition module also includes: A second dot matrix information acquisition module: used to sequentially acquire the second dot matrix information of the pixel points in the dot matrix expansion information in bytes; A second byte conversion module: used for performing byte conversion on the pixel points in the second dot matrix information; The second byte data group acquisition module is used to obtain the second byte data group.

8. The image resolution expansion processing device according to claim 7, characterized in that: The dot matrix expansion information acquisition module also includes: A data group acquisition module: used for acquiring the first byte data group and the second byte data group; An index matching module: used for comparing and indexing byte groups matching the byte groups in the first byte data group from the second byte data group according to the byte groups in the first byte data group; Replacement module: used to replace the matching byte group with the corresponding first byte data group.

Citation Information

Patent Citations

  • High-resolution image acquisition method and device

    CN111507902A

  • Bitmap stretching method, bitmap stretching device and electronic equipment

    CN113096045A