CN112532894B - Image processing method, device and system - Google Patents
Image processing method, device and system Download PDFInfo
- Publication number
- CN112532894B CN112532894B CN201910883116.7A CN201910883116A CN112532894B CN 112532894 B CN112532894 B CN 112532894B CN 201910883116 A CN201910883116 A CN 201910883116A CN 112532894 B CN112532894 B CN 112532894B
- Authority
- CN
- China
- Prior art keywords
- image
- target
- image data
- output
- processing
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 26
- 238000012545 processing Methods 0.000 claims abstract description 156
- 230000015654 memory Effects 0.000 claims description 47
- 238000000034 method Methods 0.000 claims description 16
- 230000008569 process Effects 0.000 claims description 12
- 230000003321 amplification Effects 0.000 claims description 9
- 238000003199 nucleic acid amplification method Methods 0.000 claims description 9
- 238000002407 reforming Methods 0.000 claims description 9
- 238000004590 computer program Methods 0.000 claims description 5
- 230000009467 reduction Effects 0.000 claims description 5
- 238000010586 diagram Methods 0.000 description 8
- 230000006870 function Effects 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000000007 visual effect Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/222—Studio circuitry; Studio devices; Studio equipment
- H04N5/262—Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/222—Studio circuitry; Studio devices; Studio equipment
- H04N5/262—Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
- H04N5/2628—Alteration of picture size, shape, position or orientation, e.g. zooming, rotation, rolling, perspective, translation
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Image Processing (AREA)
- Editing Of Facsimile Originals (AREA)
Abstract
The embodiment of the invention discloses an image processing method, an image processing device, an image processing system and a computer storage medium. The image processing method comprises the following steps: acquiring a target input source; performing input zooming processing on the target input source to obtain a processed input source, and storing the processed input source; reading at least a part of image data of the processed input source according to the image output parameters to obtain target image data; carrying out first output scaling processing on the target image data by using scaling processing resources to obtain a target output image, and outputting the target output image; adjusting the arrangement sequence of the pixel points in the target image data to obtain image data after mirror image processing; and performing second output scaling processing on the image data subjected to the mirror image processing by using idle scaling processing resources to obtain a target mirror image output image, and outputting the target mirror image output image. According to the embodiment of the invention, the target output image and the target mirror image output image which is mirror image of the target output image can be obtained under the condition of not increasing resource overhead.
Description
Technical Field
The present invention relates to the field of image processing technologies, and in particular, to an image processing method, an image processing apparatus, and an image processing system.
Background
With the rapid development of image display technology, users have made more demands on the display of images, for example, in consideration of the needs of some special stages or activities such as lecture occasions, users need to generate a mirror image window, i.e., a horizontal mirror image, with the same size and with horizontally reversed window content for a certain window, i.e., a certain image, so as to simultaneously display the original image and the mirror image on a display interface.
In the prior art, a window resource is usually required to be additionally added for generating a mirror image, however, adding a window resource inevitably increases the hardware resource overhead of an image processor, and therefore, how to implement a window mirror function without increasing the hardware resource overhead is a problem that needs to be solved at present.
Disclosure of Invention
Therefore, to overcome the defects and shortcomings in the prior art, embodiments of the present invention provide an image processing method, an image processing apparatus, and an image processing system, so as to implement a window mirroring function without increasing hardware resource overhead.
In one aspect, an image processing method provided in an embodiment of the present invention includes: acquiring a target input source; performing input zooming processing on the target input source to obtain a processed input source, and storing the processed input source; reading at least a part of image data of the processed input source according to the image output parameters to obtain target image data; carrying out first output scaling processing on the target image data by using scaling processing resources to obtain a target output image, and outputting the target output image; adjusting the arrangement sequence of the pixel points in the target image data to obtain image data after mirror image processing; and performing second output scaling processing on the image data subjected to the mirror image processing by using idle scaling processing resources to obtain a target mirror image output image, and outputting the target mirror image output image.
In the scheme, a processed input source is obtained by performing input scaling processing on the target input source, the processed input source is stored, at least part of image data of the stored processed input source is read according to image output parameters to obtain target image data, first output scaling processing is performed on the target image data by using scaling processing resources to obtain a target output image, and the target output image is output; adjusting the arrangement sequence of the pixel points in the target image data to obtain image data after mirror image processing; and performing second output scaling processing on the image data subjected to mirror image processing by using idle scaling processing resources to obtain a target mirror image output image, and outputting the target mirror image output image, so that the target output image and the target mirror image output image in mirror image with the target output image are obtained under the condition of not increasing hardware resource overhead.
In an embodiment of the present invention, the performing the input scaling processing on the target input source to obtain the processed input source includes: performing reduction processing on the target input source to obtain the processed input source; the obtaining of the target output image by performing the first output scaling processing on the target image data by using the scaling processing resource includes: performing first amplification processing on the target image data to obtain a target output image; the second output scaling processing is performed on the image data after the mirror image processing to obtain a target mirror image output image, and the method comprises the following steps: and carrying out second amplification processing on the image data subjected to mirror image processing to obtain the target mirror image output image.
In one embodiment of the invention, the image output parameters include: and the initial position information, the image width information and the height information of the target image data are stored.
In an embodiment of the present invention, the adjusting the arrangement order of the pixel points in the target image data to obtain image data after mirror image processing includes: and adjusting the arrangement sequence of the pixel points in the target image data, and keeping the arrangement sequence of each pixel row in the target image data unchanged.
In an embodiment of the present invention, the adjusting the arrangement order of the pixel points in the target image data to obtain the image data after the mirror image processing specifically includes: reversing the arrangement sequence of each pixel unit of each pixel row in the target image data to obtain reversed image data; performing data bit reverse order on each pixel point component in each pixel unit of each pixel row in the reversed image data to obtain image data after the reverse order; and reforming each pixel point in each pixel unit of each pixel row in the image data after the reverse order to obtain the image data after the mirror image processing.
In one embodiment of the present invention, the pixel unit is determined based on memory read-write parameters, wherein the memory read-write parameters include: memory bit width, number of memory parallels, and number of pre-read addresses.
In another aspect, an embodiment of the present invention provides an image processing apparatus, including: the input source acquisition module is used for acquiring a target input source; the processing and storing module is used for carrying out input zooming processing on the target input source to obtain a processed input source and storing the processed input source; the data reading module is used for reading at least part of image data of the processed input source according to the image output parameters to obtain target image data; the first output module is used for performing first output scaling processing on the target image data by using scaling processing resources to obtain a target output image and outputting the target output image; the mirror image processing module is used for adjusting the arrangement sequence of the pixel points in the target image data to obtain image data after mirror image processing; and the second output module is used for carrying out second output zooming processing on the image data after the mirror image processing by using idle zooming processing resources to obtain a target mirror image output image and outputting the target mirror image output image.
In the scheme, a target input source is acquired through an input source acquisition module; the processing and storing module is used for carrying out input zooming processing on the target input source to obtain a processed input source and storing the processed input source, the data reading module is used for reading at least part of image data of the stored processed input source according to image output parameters to obtain target image data, the first output module is used for carrying out first output zooming processing on the target image data to obtain a target output image and outputting the target output image, and the mirror image processing module is used for adjusting the arrangement sequence of pixel points in the target image data to obtain mirror image processed image data; and the second output module performs second output scaling processing on the mirrored image data by using idle scaling processing resources to obtain a target mirrored output image, and outputs the target mirrored output image, thereby obtaining the target output image and the target mirrored output image which is mirrored with the target output image without increasing hardware resource overhead.
In one embodiment of the present invention, the mirroring processing module includes: the sequence reversing unit is used for reversing the arrangement sequence of each pixel unit of each pixel row in the target image data to obtain reversed image data; a data bit reverse order unit, configured to perform data bit reverse order on each pixel component in each pixel unit of each pixel row in the reversed image data, so as to obtain image data after reverse order; and the pixel point reforming unit is used for reforming each pixel point in each pixel unit of each pixel row in the image data after the reverse sequence to obtain the image data after the mirror image processing.
In one embodiment of the present invention, the pixel unit is determined based on memory read-write parameters, wherein the memory read-write parameters include: memory bit width, number of memory parallels, and number of pre-read addresses.
In another aspect, an embodiment of the present invention provides an image processing system, including: a memory and a processor coupled to the memory; the memory stores a computer program, and the processor executes any one of the image processing methods when running the computer program.
In yet another aspect, an embodiment of the present invention provides a computer storage medium storing computer-executable instructions for performing any one of the image processing methods described above.
One or more of the above technical solutions may have the following advantages or beneficial effects: obtaining a processed input source by performing input zooming processing on the target input source, storing the processed input source, reading at least part of image data of the stored processed input source according to image output parameters to obtain target image data, performing first output zooming processing on the target image data by using zooming processing resources to obtain a target output image, and outputting the target output image; adjusting the arrangement sequence of the pixel points in the target image data to obtain image data after mirror image processing; and performing second output scaling processing on the image data subjected to mirror image processing by using idle scaling processing resources to obtain a target mirror image output image, and outputting the target mirror image output image, so that the target output image and the target mirror image output image in mirror image with the target output image are obtained under the condition of not increasing hardware resource overhead.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the description below are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart of an image processing method according to a first embodiment of the present invention.
FIG. 2 is a diagram illustrating an architecture of an image processor according to a first embodiment of the present invention.
Fig. 3 is a schematic diagram of a data flow for executing the image processing method according to the first embodiment of the present invention.
Fig. 4 is a schematic process diagram of step S110 in the image processing method according to the first embodiment of the present invention.
Fig. 5A is a block diagram of an image processing apparatus according to a second embodiment of the present invention.
Fig. 5B is a schematic diagram illustrating a specific unit structure of the mirror processing module 310 in fig. 5A.
Fig. 6 is a schematic structural diagram of an image processing system according to a third embodiment of the present invention.
Fig. 7 is a schematic structural diagram of a computer storage medium according to a fourth embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without inventive step based on the embodiments of the present invention, are within the scope of protection of the present invention.
[ first embodiment ] A
Referring to fig. 1, an image processing method of a first embodiment of the present invention is shown. The image processing method includes, for example, the steps of:
s102, acquiring a target input source;
s104, performing input zooming processing on the target input source to obtain a processed input source, and storing the processed input source;
s106, reading at least a part of image data of the processed input source according to the image output parameters to obtain target image data;
s108, performing first output scaling processing on the target image data by using scaling processing resources to obtain a target output image, and outputting the target output image;
s110, adjusting the arrangement sequence of the pixel points in the target image data to obtain image data after mirror image processing; and
and S112, performing second output scaling processing on the image data subjected to the mirror image processing by using idle scaling processing resources to obtain a target mirror image output image, and outputting the target mirror image output image.
For the convenience of understanding of the present embodiment, the image processing method of the present embodiment will be described in detail below with reference to fig. 2 to 4. Specifically, the image processing method will be described in detail by taking as an example that the image processor 200 shown in fig. 2 executes the image processing method according to the embodiment of the present invention.
Fig. 2 is a schematic diagram of an image processor 200, wherein the image processor 200 includes an input interface 202, a microprocessor 204, a programmable logic device 206, a non-volatile memory 208, a volatile memory 210, and an output interface 212. The input interface 202 is electrically connected to the programmable logic device 206. The microprocessor 204 is electrically connected to a non-volatile memory 208 and a programmable logic device 206. The programmable logic device 206 is electrically connected to the non-volatile memory 208, the volatile memory 210, and the output interface 212.
As mentioned above, the input Interface 202 may be, for example, an HDMI (High Definition Multimedia Interface) Interface, a DP (display Interface) Interface or a DVI (Digital Visual Interface) Interface; the microprocessor 204 may be, for example, an MCU (Micro controller Unit); the Programmable logic device 206 may be, for example, an FPGA (Field-Programmable Gate Array); the nonvolatile memory 208 may be, for example, an EMMC (Embedded MultiMedia Card); the volatile memory 210 may be, for example, a DDR (Double Data Rate); the output Interface 212 may be, for example, an HDMI (High Definition Multimedia Interface) Interface, a DVI (Digital Visual Interface) Interface, but the invention is not limited thereto. The programmable logic device 206 receives an input video source, i.e., a target input source, through the input interface 202, and in response to receiving configuration parameters, such as resolutions of an input image and an output image, sent by the microprocessor 204, such as an MCU (Micro controller Unit), the programmable logic device 206 processes the target input source to obtain a target output image and a target mirrored output image, and outputs the target output image and the target mirrored output image through the output interface 212.
In particular, the programmable logic device 206, such as an FPGA, implements the image mirroring function by executing image processing software thereon, which may, for example, include an input scaling module, a mirroring processing module, and a plurality of output scaling modules, divided by functional modules. An image processing method according to an embodiment of the present invention is described below with reference to fig. 3.
First, the programmable logic device 206 obtains a video source, for example, a target input source, then, an input scaling module of the programmable logic device 206 performs input scaling processing on the target input source to obtain a processed input source, and stores the processed input source in the volatile memory 210, for example, a DDR, and then the programmable logic device 206 reads at least a part of image data of the stored processed input source according to an image output parameter sent by the microprocessor 204, for example, an MCU, to obtain target image data, where the image output parameter may be, for example, start position information, image width information, and height information of the target image data stored in the DDR. Although there is only one output scaling module corresponding to the target output image and the target mirror output image in fig. 3, in practical applications, the number of output scaling modules corresponding to the target output image and the target mirror output image may also be multiple, and is not limited herein. It is worth mentioning that, if the target image data is output by being scaled by the plurality of output scaling modules, the image output parameters include start position information, image width information, and height information, which are specifically stored in the DDR, of the corresponding portion of the target image data that is processed by each output scaling module. Then, the output scaling module of the programmable logic device 206 performs a first output scaling process on the target image data according to the configuration parameters sent by the microprocessor 204 to obtain a target output image, and outputs the target output image.
The programmable logic device 206 further adjusts the arrangement order of the pixels in the target image data through the mirror image processing module to obtain the image data after mirror image processing, and a specific process of obtaining the image data after mirror image processing is shown in fig. 4. Fig. 4 shows a process of performing horizontal mirroring on target image data, which is to adjust an arrangement order of pixel points in the target image data and keep the arrangement order of each pixel row in the target image data unchanged. Further, the horizontal mirroring process specifically includes: reversing the arrangement sequence of each pixel unit of each pixel row in the target image data to obtain reversed image data; performing data bit reverse order on each pixel point component in each pixel unit of each pixel row in the reversed image data to obtain image data after reverse order; and reforming each pixel point in each pixel unit of each pixel row in the image data after the reverse order to obtain the image data after the mirror image processing. In connection with fig. 4, the resolution of the target image data is 1080p, i.e. the target image data comprises 1080 × 1920 pixels, i.e. each line of the target image data has 1920 pixels. First, the bit number of the pixel unit is determined according to the read/write parameters of the volatile memory, such as DDR, e.g., memory bit width, memory parallel number, and read-ahead address number, for example, the bit width of the DDR used in the embodiment of the present invention is 16 bit width, i.e., the memory bit width is 16, the DDR used in the embodiment of the present invention is 4 DDR used in parallel, i.e., the memory parallel number is 4, and 8 addresses are prefetched when one DDR reads an address, i.e., the number of the prefetched addresses is 8, so that when the programmable logic device 206 accesses the DDR, the target image data stored in the DDR is read with 16 × 4 × 8=512bit as one pixel unit, and thus, because each pixel point has three pixel components, namely a red (R) component, a green (G) component and a blue (B) component, and each pixel component needs 8 bits when stored, one pixel row, namely 1920pixel =1920 × 3 × 8bit =90 × 512bit, so that it can be obtained that each pixel row has 90 pixel units, and when horizontal mirroring is performed, firstly, address inversion is performed on each row of pixel units by using the pixel units as a unit, that is, the arrangement sequence of each pixel unit of each pixel row in the target image data is reversed, that is, the overall arrangement sequence of the pixel units in the first row of pixels in fig. 4 is subjected to reverse order processing, that is, the overall reverse order of 90 pixel units is arranged, so as to obtain image data after reversal; then, performing data bit reverse order on each pixel point component in each pixel unit of each pixel row in the reversed image data to obtain image data after the reverse order; finally, reforming each pixel point in each pixel unit of each pixel row in the image data after the reverse order, that is, arranging pixel point components corresponding to each pixel point in each row according to the sequence of R, G, and B to obtain the image data after the mirror image processing, for example, as shown in fig. 4, the storage sequence of the pixel point components B1, G1, and R1 is adjusted to R1, G1, and B1.
After performing horizontal mirroring on the target image data, the programmable logic device 206 performs second output scaling on the mirrored image data by using an idle scaling resource, that is, an output scaling module that is not used during the first scaling to obtain a target mirrored output image, and outputs the target mirrored output image. Here, in order to realize that the target mirror image output image and the target output image are in a mirror image relationship, the number of output scaling modules corresponding to the target output image is the same as the number of output scaling modules corresponding to the target mirror image output image.
In a specific embodiment of the present invention, the performing input scaling processing on the target input source to obtain a processed input source includes: carrying out reduction processing on the target input source to obtain the processed input source; performing a first output scaling process on the target image data by using a scaling processing resource to obtain a target output image, including: performing first amplification processing on the target image data to obtain a target output image; the second output scaling processing is performed on the image data after the mirror image processing to obtain a target mirror image output image, and the method comprises the following steps: the image data after the mirror image processing is subjected to the second amplification processing to obtain the target mirror image output image, that is, when the programmable logic device 204 performs the scaling processing, before the DDR stores the data, the image reduction processing is performed, and then the image amplification processing is performed, so that the bandwidth of the DDR is saved, and the hardware resource of the image processor 200 is saved.
In the scheme, a processed input source is obtained by performing input scaling processing on the target input source, the processed input source is stored, at least part of image data of the stored processed input source is read according to image output parameters to obtain target image data, first output scaling processing is performed on the target image data by using scaling processing resources to obtain a target output image, and the target output image is output; adjusting the arrangement sequence of the pixel points in the target image data to obtain image data after mirror image processing; and performing second output scaling processing on the image data subjected to the mirror image processing by using idle scaling processing resources to obtain a target mirror image output image, and outputting the target mirror image output image, so that the target output image and the target mirror image output image in mirror image with the target output image are obtained under the condition of not increasing resource overhead.
[ second embodiment ]
As shown in fig. 5A, a second embodiment of the present invention provides an image processing apparatus 300. The image processing apparatus 300 includes an input source acquiring module 302, a process saving module 304, a data reading module 306, a first output module 308, a mirror processing module 310, and a second output module 312.
Specifically, the input source obtaining module 302 is configured to obtain a target input source.
The processing and saving module 304 is configured to perform input scaling processing on the target input source to obtain a processed input source, and save the processed input source.
The data reading module 306 is configured to read at least a part of the stored image data of the processed input source according to the image output parameter to obtain target image data.
The first output module 308 is configured to perform a first output scaling process on the target image data by using scaling processing resources to obtain a target output image, and output the target output image.
The mirror image processing module 310 is configured to adjust a configuration sequence of pixels in the target image data to obtain image data after mirror image processing.
The second output module 312 is configured to perform a second output scaling process on the image data after the mirror image processing by using the idle scaling processing resource to obtain a target mirror image output image, and output the target mirror image output image.
As described above, as shown in fig. 5B, the mirror processing module 310 includes a sequence reversing unit 3102, a data bit reverse unit 3104, and a pixel point rearranging unit 3108.
Specifically, the order reversing unit 3102 is configured to reverse the arrangement order of the pixel units of each pixel row in the target image data, so as to obtain reversed image data.
The data bit reversing unit 3104 is configured to reverse the data bits of the pixels in the pixel units of each pixel row in the reversed image data, so as to obtain the image data after reversing.
The pixel point reforming unit 3106 is configured to reform the pixel points in each pixel unit of each pixel row in the image data after the reverse order, so as to obtain the image data after the mirror image processing.
In one embodiment of the present invention, the pixel unit is determined based on memory read-write parameters, where the memory read-write parameters include: memory bit width, number of memory parallelism, and number of pre-read addresses.
The specific operation and technical effects between the modules in the image processing apparatus 300 in the present embodiment are described with reference to the foregoing first embodiment.
[ third embodiment ]
As shown in fig. 6, a third embodiment of the present invention provides an image processing system 400. The image processing system 400 includes a memory 410 and a processor 430 coupled to the memory 410. The memory 310 may be, for example, a non-volatile memory, on which the computer program 411 is stored. The processor 430 may, for example, comprise an embedded processor. The processor 430 executes the image processing method provided in the foregoing first embodiment when running the computer program 411.
[ fourth example ] A
As shown in FIG. 7, a fourth embodiment of the present invention provides a computer storage medium 500 having stored thereon computer-executable instructions 510. The computer-executable instructions 510 are for performing the image processing method as described in the first embodiment above. The computer storage medium 500 is, for example, a non-volatile memory, such as including: magnetic media (e.g., hard disks, floppy disks, and magnetic tape), optical media (e.g., cd ROM disks and DVDs), magneto-optical media (e.g., optical disks), and hardware devices specially constructed for storing and executing computer-executable instructions (e.g., read Only Memories (ROMs), random Access Memories (RAMs), flash memories, etc.). The computer storage medium 500 may be executable by one or more processors or processing devices to execute computer-executable instructions 510.
In addition, it should be understood that the foregoing embodiments are merely exemplary illustrations of the present invention, and the technical solutions of the embodiments can be arbitrarily combined and collocated without conflict between technical features and structural contradictions, which do not violate the purpose of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, a division of a unit is merely a division of one logic function, and an actual implementation may have another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may also be distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, each functional unit/module in the embodiments of the present invention may be integrated into one processing unit/module, or each unit/module may exist alone physically, or two or more units/modules may be integrated into one unit/module. The integrated units/modules may be implemented in the form of hardware, or may be implemented in the form of hardware plus software functional units/modules.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.
Claims (9)
1. An image processing method, comprising:
acquiring a target input source;
performing input zooming processing on the target input source to obtain a processed input source, and storing the processed input source;
reading at least a part of image data of the processed input source according to the image output parameters to obtain target image data;
performing first output scaling processing on the target image data by using scaling processing resources to obtain a target output image, and outputting the target output image;
adjusting the arrangement sequence of the pixel points in the target image data to obtain image data subjected to mirror image processing; and
performing second output scaling processing on the image data subjected to mirror image processing by using idle scaling processing resources to obtain a target mirror image output image, and outputting the target mirror image output image;
wherein, the performing the input scaling processing on the target input source to obtain the processed input source comprises:
carrying out reduction processing on the target input source to obtain the processed input source;
performing a first output scaling process on the target image data by using a scaling processing resource to obtain a target output image, including:
performing first amplification processing on the target image data to obtain a target output image;
the second output scaling processing is performed on the image data after the mirror image processing to obtain a target mirror image output image, and the method comprises the following steps:
and carrying out second amplification processing on the image data subjected to mirror image processing to obtain the target mirror image output image.
2. The image processing method of claim 1, wherein the image output parameters comprise: and the initial position information, the image width information and the height information of the target image data are stored.
3. The image processing method according to claim 1, wherein the adjusting the arrangement order of the pixels in the target image data to obtain the image data after the mirror image processing includes:
and adjusting the arrangement sequence of the pixel points in the target image data, and keeping the arrangement sequence of each pixel row in the target image data unchanged.
4. The image processing method according to claim 3, wherein the adjusting the arrangement order of the pixels in the target image data to obtain the image data after the mirror image processing specifically comprises:
reversing the arrangement sequence of each pixel unit of each pixel row in the target image data to obtain reversed image data;
performing data bit reverse order on each pixel point component in each pixel unit of each pixel row in the reversed image data to obtain image data after reverse order;
and reforming each pixel point in each pixel unit of each pixel row in the image data after the reverse order to obtain the image data after the mirror image processing.
5. The image processing method of claim 4, wherein the pixel unit is determined based on memory read-write parameters, wherein the memory read-write parameters comprise: memory bit width, number of memory parallels, and number of pre-read addresses.
6. An image processing apparatus characterized by comprising:
the input source acquisition module is used for acquiring a target input source;
the processing and storing module is used for performing input zooming processing on the target input source to obtain a processed input source and storing the processed input source;
the data reading module is used for reading at least part of image data of the processed input source according to the image output parameters to obtain target image data;
the first output module is used for performing first output scaling processing on the target image data by using scaling processing resources to obtain a target output image and outputting the target output image;
the mirror image processing module is used for adjusting the arrangement sequence of the pixel points in the target image data to obtain image data after mirror image processing; and
the second output module is used for carrying out second output zooming processing on the image data after the mirror image processing by using idle zooming processing resources to obtain a target mirror image output image and outputting the target mirror image output image;
the processing and storing module is further specifically configured to perform reduction processing on the target input source to obtain the processed input source;
the first output module is further specifically configured to perform first amplification processing on the target image data to obtain the target output image;
the second output module is further specifically configured to perform a second amplification process on the image data after the mirror image processing to obtain the target mirror image output image.
7. The image processing apparatus according to claim 6, wherein the mirroring processing module includes:
the sequence reversing unit is used for reversing the arrangement sequence of each pixel unit of each pixel row in the target image data to obtain reversed image data;
a data bit reverse order unit, configured to perform data bit reverse order on each pixel component in each pixel unit of each pixel row in the reversed image data, so as to obtain image data after reverse order; and
and the pixel point reforming unit is used for reforming each pixel point in each pixel unit of each pixel row in the image data after the reverse sequence to obtain the image data after the mirror image processing.
8. The image processing apparatus of claim 7, wherein the pixel unit is determined based on memory read-write parameters, wherein the memory read-write parameters comprise: memory bit width, number of memory parallels, and number of pre-read addresses.
9. An image processing system, comprising: a memory and a processor coupled to the memory; the memory stores a computer program which, when executed by the processor, performs the image processing method of any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910883116.7A CN112532894B (en) | 2019-09-18 | 2019-09-18 | Image processing method, device and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910883116.7A CN112532894B (en) | 2019-09-18 | 2019-09-18 | Image processing method, device and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112532894A CN112532894A (en) | 2021-03-19 |
CN112532894B true CN112532894B (en) | 2023-01-10 |
Family
ID=74975200
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910883116.7A Active CN112532894B (en) | 2019-09-18 | 2019-09-18 | Image processing method, device and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112532894B (en) |
Family Cites Families (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4007342B2 (en) * | 2004-06-08 | 2007-11-14 | セイコーエプソン株式会社 | Display controller, electronic device, and image data supply method |
JP2011146833A (en) * | 2010-01-13 | 2011-07-28 | Seiko Epson Corp | Optical reading device, and control method and control program for the same |
CN102263880B (en) * | 2010-05-25 | 2015-02-11 | 安凯(广州)微电子技术有限公司 | Image scaling method and apparatus thereof |
US8570405B2 (en) * | 2010-08-11 | 2013-10-29 | Inview Technology Corporation | Determining light level variation in compressive imaging by injecting calibration patterns into pattern sequence |
CN101916064B (en) * | 2010-08-19 | 2012-03-21 | 上海市激光技术研究所 | Dynamic pixel holographic cell picture shooting device and method based on Digital Micromirror Device |
CN201867579U (en) * | 2010-11-09 | 2011-06-15 | 刘亚军 | Projection device provided with reflecting mirror |
CN103347157A (en) * | 2013-06-25 | 2013-10-09 | 杭州士兰微电子股份有限公司 | Method and device for real-time input digital image mirroring storage |
CN107622600B (en) * | 2017-09-21 | 2020-08-18 | 深圳怡化电脑股份有限公司 | Image mirror image data generation method and device and automatic teller machine |
CN108737810B (en) * | 2018-05-23 | 2019-08-06 | 苏州新光维医疗科技有限公司 | Image processing method, device and 3-D imaging system |
CN109934773B (en) * | 2019-03-13 | 2023-08-25 | 北京旷视科技有限公司 | Image processing method, device, electronic equipment and computer readable medium |
-
2019
- 2019-09-18 CN CN201910883116.7A patent/CN112532894B/en active Active
Non-Patent Citations (1)
Title |
---|
拼接镜主动共相实验研究;李斌;《光子学报》;20171227;全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN112532894A (en) | 2021-03-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107493448B (en) | Image processing system, image display method and display device | |
TWI524176B (en) | Method and apparatus for display power management | |
CN110888521B (en) | Mobile terminal and application program running method thereof | |
US20130101275A1 (en) | Video Memory Having Internal Programmable Scanning Element | |
US7868898B2 (en) | Methods and apparatus for efficiently accessing reduced color-resolution image data | |
CN114051145B (en) | Video compression processing method, device and medium | |
CN106846255B (en) | Image rotation realization method and device | |
US10984758B1 (en) | Image enhancement | |
WO2024031825A1 (en) | Fpga-based method and system for overlapping sliding window segmentation on image | |
CN115209145A (en) | Video compression method, system, device and readable storage medium | |
CN112804410A (en) | Multi-display-screen synchronous display method and device, video processing equipment and storage medium | |
US20160373757A1 (en) | Analytics Assisted Encoding | |
CN112967666A (en) | LED display screen control device and control method capable of realizing random pixel arrangement | |
CN107657587A (en) | Image processing method, apparatus and system | |
CN112532894B (en) | Image processing method, device and system | |
CN107506119B (en) | Picture display method, device, equipment and storage medium | |
CN117692593A (en) | Video frame processing method, device, equipment and medium based on pixel row stitching | |
US20110157465A1 (en) | Look up table update method | |
US20120106860A1 (en) | Image processing device and image processing method | |
Gong et al. | Design of high-speed real-time sensor image processing based on FPGA and DDR3 | |
US11972504B2 (en) | Method and system for overlapping sliding window segmentation of image based on FPGA | |
CN112486440A (en) | Algorithm verification method and algorithm verification system | |
US20140125821A1 (en) | Signal processing circuit, imaging apparatus and program | |
KR20110073815A (en) | Imaging device and method for processing image rotation | |
KR20040082601A (en) | Memory access control apparatus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20240708 Address after: 01A, 12th Floor, No. 8 Caihefang Road, Haidian District, Beijing, 100000 Patentee after: PIXELHUE TECHNOLOGY Ltd. Country or region after: China Address before: 710075 DEF101, Zero One Square, Xi'an Software Park, No. 72 Zhangbajie Science and Technology Second Road, Xi'an High-tech Zone, Shaanxi Province Patentee before: XI'AN NOVASTAR TECH Co.,Ltd. Country or region before: China |
|
TR01 | Transfer of patent right |