CN105957016B - A kind of method and device for being stretched to image - Google Patents

A kind of method and device for being stretched to image Download PDF

Info

Publication number
CN105957016B
CN105957016B CN201610430196.7A CN201610430196A CN105957016B CN 105957016 B CN105957016 B CN 105957016B CN 201610430196 A CN201610430196 A CN 201610430196A CN 105957016 B CN105957016 B CN 105957016B
Authority
CN
China
Prior art keywords
image
timing
image data
data
stretched
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
Application number
CN201610430196.7A
Other languages
Chinese (zh)
Other versions
CN105957016A (en
Inventor
朱亚凡
邓志
许恩
沈亚非
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Jingce Electronic Group Co Ltd
Original Assignee
Wuhan Jingce Electronic Group Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Wuhan Jingce Electronic Group Co Ltd filed Critical Wuhan Jingce Electronic Group Co Ltd
Priority to CN201610430196.7A priority Critical patent/CN105957016B/en
Publication of CN105957016A publication Critical patent/CN105957016A/en
Application granted granted Critical
Publication of CN105957016B publication Critical patent/CN105957016B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformation in the plane of the image
    • G06T3/40Scaling the whole image or part thereof
    • G06T3/4084Transform-based scaling, e.g. FFT domain scaling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/80

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Image Processing (AREA)

Abstract

The invention discloses a kind of methods for being stretched to image, comprising the following steps: S1) configuration information and original image timing generation stretching image sampling time sequence are stretched according to image resolution ratio and stretch image timing;S2) reading original digital image data according to the stretching image sampling time sequence and cache is image buffer storage data;S3 image buffer storage data output) is read according to the stretching image timing and stretches image data.The present invention can quickly realize that carrying out horizontal stretch, stretched vertically or horizontal vertical to image stretches, and horizontal stretch, stretched vertically, horizontal vertical stretch 3 kinds of modes and support pixel replication mode and image replication mode, are greatly improved the efficiency and accuracy of image stretch.

Description

A kind of method and device for being stretched to image
Technical field
The present invention relates to technical field of image signal processing, be more particularly related to it is a kind of for image resolution ratio into The method and device that row horizontal stretch, stretched vertically or horizontal vertical stretch.
Background technique
Equipment, producing line are shown for the display demand for meeting some particular applications, such as automatic navigator, hand-held electronic On need to produce the display modules of some special resolution ratio, in the production process of the display module of these special resolution ratio, need It examines its display performance and carries out a screen detection.It is formed since these special resolution ratio can be stretched by normal resolution, institute It is usually to be changed on the basis of the display module of common resolution ratio with the display module of these special resolution ratio in producing line Into or be spliced, thus the display module of the display module of these special resolution ratio and common resolution ratio often have it is identical Display characteristic, in display module producing line in order to detect these special resolution ratio display module display performance, need at this Detection picture of the display as the display module of common resolution ratio compares detection in the display module of a little special resolution ratio.
Currently, the picture of this special resolution ratio is shown in producing line in the display module of these special resolution ratio, Artificial modification original image is needed, each pixel of original image is copied into multiple pixels in horizontal, vertical direction, or The original image is copied into multiple images in horizontal, vertical direction by person, then saves as new image again, then in these spies It is shown in the display module of different resolution ratio, this method both took time and effort, and caused production efficiency low, and be easy error, such as certain A pixel, which misses, not to be replicated, and shows mistake so as to cause picture.
Summary of the invention
In view of the above shortcomings of the prior art, the present invention discloses a kind of method and device for being stretched to image, It can quickly realize that carrying out horizontal stretch, stretched vertically or horizontal vertical to image stretches, and horizontal stretch, stretched vertically, water 3 kinds of modes of flat stretched vertically support pixel replication mode and image replication mode, can greatly promote the efficiency of image stretch And accuracy.
To achieve the above object, the present invention provides a kind of method for being stretched to image, comprising the following steps:
S1 configuration information) is stretched according to image resolution ratio and original image timing generates and stretches image sampling time sequence and tensile diagram As timing;
S2) reading original digital image data according to the stretching image sampling time sequence and cache is image buffer storage data;
S3 image buffer storage data output) is read according to the stretching image timing and stretches image data.
As further alternative technical solution, above scheme further includes step S4: to the stretching image timing and the drawing Image data is stretched to synchronize the stretching image clock signal of processing output synchronous transfer and stretch viewdata signal.
As further alternative technical solution, the image resolution ratio stretches configuration information packet in step S1 in above scheme Horizontal stretch configuration-direct and horizontal stretch multiple N are included, wherein N is positive integer;Step S1 specifically includes the following steps:
According to the horizontal stretch configuration-direct and the horizontal stretch multiple N by row image timing every in the original image timing The stretching that data effective district and blanking zone make N times obtains N times of horizontal stretch image timing;Meanwhile it will be in the original image timing The blanking zone of every row image timing stretches, so that the blanking zone after the data effective district of every row image timing and stretching is held The continuous time is identical as the duration of every row image timing in the N times of horizontal stretch image timing, obtains N times of horizontal stretch image Sampling time sequence.
As further alternative technical solution, the image buffer storage data are read in step S3 in above scheme and are specifically included Following steps:
It repeats to read each buffer address according to the N times of horizontal stretch image timing and according to the caching of original digital image data sequence In image buffer storage data n times;
Alternatively,
It is recycled according to the N times of horizontal stretch image timing and according to the caching of row image data every in original digital image data sequence Read the image buffer storage data n times in each buffer address of the row image data.
As further alternative technical solution, the image resolution ratio stretches configuration information packet in step S1 in above scheme Stretched vertically configuration-direct and stretched vertically multiple M are included, wherein M is positive integer;Step S1 specifically includes the following steps:
S1a M-1) is inserted into after the original image timing according to the stretched vertically configuration-direct and the stretched vertically multiple M The item original image timing is used as M times of stretched vertically image timing and M times of stretched vertically image sampling timing simultaneously;
Alternatively,
S1b) according to the stretched vertically configuration-direct and stretched vertically multiple M respectively in each row figure of the original image timing M times of stretched vertically image timing is obtained as being inserted into the M-1 row row image timing after timing;Meanwhile it will be in the original image timing The blanking zone of every row image timing stretches, so that the blanking zone after the data effective district of every row image timing and stretching is held The continuous time is identical as the duration of every row image timing in the M times of stretched vertically image timing, obtains M times of stretched vertically image Sampling time sequence.
As further alternative technical solution, the image buffer storage data are read in step S3 in above scheme and are specifically included Following steps:
The M times of stretched vertically image timing according to step S1a and according to the caching of original digital image data sequence successively Read the image buffer storage data in each buffer address;
Alternatively,
The M times of stretched vertically image timing according to step S1b and according to row image data every in original digital image data Caching sequence circulation read the row image data each buffer address in image buffer storage data M times.
The present invention separately provides a kind of device for being stretched to image, including is set to a programmable logic device In image stretch timing generation module, original digital image data generation module, image data cache module and stretch image data produce Raw module;Wherein,
The image stretch timing generation module is used to stretch configuration information according to image resolution ratio and original image timing generates It stretches image sampling time sequence and stretches image timing;
The original digital image data generation module is used to read original digital image data according to the stretching image sampling time sequence and by the original It is image buffer storage data that caching in the image data cache module, which is written, in image data;
The stretching image data generating module is used to read image buffer storage data output according to the stretching image timing and draws Stretch image data.
As further alternative technical solution, which includes the first image data cache sub-module With the second image data cache sub-module, which includes that the first stretching image data generates submodule Image data, which is stretched, with second generates submodule;Wherein,
The first image data cache sub-module is for adopting the original digital image data generation module according to horizontal stretch image The original digital image data caching that sample timing is read is horizontal stretch image buffer storage data;
The first stretching image data generates submodule and is used to read the horizontal stretch figure according to horizontal stretch image timing As data cached output level stretches image data;
The second image data cache sub-module is for adopting the original digital image data generation module according to stretched vertically image The original digital image data caching that sample timing is read is stretched vertically image buffer storage data;
The second stretching image data generates submodule and is used to read the stretched vertically figure according to stretched vertically image timing As data cached output stretched vertically image data.
As further alternative technical solution, which is also used to first tensile diagram It is that horizontal vertical stretching image is data cached as data generate the horizontal stretch image data caching that submodule exports;Second drawing It stretches image data generation submodule and is also used to read the horizontal vertical stretching data cached output level stretched vertically image of image Data.
As further alternative technical solution, the first image data cache sub-module and second image data are cached Submodule is two-port RAM.
The invention has the following advantages that
(1) present invention supports that carrying out horizontal stretch, stretched vertically and horizontal vertical to picture signal stretches, and level is drawn It stretches, stretched vertically, horizontal vertical stretch and support pixel replication mode and image replication mode;
(2) present invention can be realized the rapid configuration to image stretch multiple and image stretch mode by upper layer;
(3) present invention can be realized by programmable logic device such as fpga chips, and stable and reliable in work, technical solution is easy Realize have compared with high performance-price ratio;
(4) interface standards such as LVDS, MIPI, DP, V-BY-ONE can be directly changed into based on stretching image of the invention Picture signal.
Detailed description of the invention
The LVDS that Fig. 1 embodiment of the present invention is used to generate more LINK (link) transmission mode stretches the device frame of picture signal Frame figure;
Fig. 2 original image timing diagram of the embodiment of the present invention;
Fig. 3 embodiment of the present invention horizontal stretch-pixel replication mode timing diagram;
Fig. 4 embodiment of the present invention horizontal stretch-image replication mode timing diagram;
Fig. 5 embodiment of the present invention stretched vertically-image replication mode timing diagram;
Fig. 6 embodiment of the present invention stretched vertically-pixel replication mode timing diagram;
Fig. 7 embodiment of the present invention horizontal vertical stretching-pixel replication mode timing diagram;
Fig. 8 embodiment of the present invention horizontal vertical stretching-image replication mode timing diagram.
In figure: upper-layer configured module -1, original image timing generation module -2, image stretch timing generation module -3, original image As data read-write control module -4, storage chip -5 high speed DDR, original digital image data generation module -6, the first image data caching Submodule -7, the first stretches image data and generates submodule -8, the second image data cache sub-module -9, the second stretching picture number According to submodule -10 is generated, image output module -11, LINK image conversion module -12, LVDS picture signal conversion module-is stretched 13。
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.As long as in addition, technical characteristic involved in the various embodiments of the present invention described below Not constituting a conflict with each other can be combined with each other.
The present embodiment is illustrated so that the LVDS for generating more LINK (link) transmission mode stretches picture signal as an example, is needed Illustrate, DP, MIPI or V-BY-ONE can also be converted into using the stretching picture signal that the method for the present invention or device generate Etc. interface standards picture signal, be by the picture signal that picture signal is converted into the interface standards such as DP, MIPI or V-BY-ONE The prior art well known to professional and technical personnel in the field, the present embodiment no longer illustrate one by one.
As shown in Figure 1, stretching image based on the LVDS that one kind of the invention is used to generate more LINK (link) transmission mode The device of signal, including a fpga chip and the high speed DDR storage chip 5 being electrically connected with the fpga chip, the fpga chip In be provided with upper-layer configured module 1, original image timing generation module 2, image stretch timing generation module 3, original digital image data read Write control module 4, original digital image data generation module 6, the first image data cache sub-module 7, the second image data caching submodule Block 9, first stretches image data and generates the stretching image data generation of submodule 8, second submodule 10, stretches image output module 11, LINK image conversion module 12 and LVDS picture signal conversion module 13.It should be noted that being used in the present embodiment Fpga chip is a kind of preferred embodiment, and fpga chip can also use the programmable logic device such as APAL, GAL, CPLD substitution.
In above-described embodiment, after apparatus of the present invention power on, former resolution image data is packaged, is transmitted by upper layer software (applications) Former resolution image data packet is generated after coding, verification and sends out the original resolution image data packet by upper-layer configured module 1 It is sent to original digital image data Read-write Catrol module 4, original digital image data Read-write Catrol module 4 carries out the original resolution image data packet It is stored in high speed DDR storage chip 5 after being reduced into original digital image data after unpacking, decoding, original digital image data Read-write Catrol module 4 will After whole original digital image data deposit high speed DDR storage chips 5, upper layer software (applications) is informed by upper-layer configured module 1.
In above-described embodiment, former image in different resolution time sequence parameter is sent to original by upper-layer configured module 1 by upper layer software (applications) Image resolution ratio stretching configuration information is sent to image stretch timing generation module 3, by Link by image timing generation module 2 Parameter (LINK number: single, double, four Link is arranged in image;The data method of salary distribution of Link: odd even distribution, sequence arrangement distribution etc.) It is sent to LINK image conversion module 12, by LVDS transmission and coding parameter (transmission standard: VESA, JEIDA;Coding parameter: defeated LVDS signal preemphasis, driving intensity etc. out) it is sent to LVDS picture signal conversion module 13.
In above-described embodiment, when original image timing generation module 2 receives the former image in different resolution of the transmission of upper-layer configured module 1 Original image timing (Vsync, Hsync, DE) is generated after order parameter, the original image timing is sent into image stretch timing later and is generated Module 3, image stretch timing generation module 3 according to image resolution ratio stretch configuration information (stretching mode be arranged: horizontal stretch, Stretched vertically or horizontal vertical stretch;Stretch mode setting: pixel duplication or image duplication;Draw ratio setting: level is drawn Stretch multiple or stretched vertically multiple) and original image timing generation stretching image sampling time sequence (horizontal stretch image sampling timing, Stretched vertically image sampling timing or horizontal vertical stretch image sampling time sequence) and stretching image timing (horizontal stretch image Timing, stretched vertically image timing or horizontal vertical stretch image timing).
In above-described embodiment, horizontal stretch operation is first carried out, then carry out stretched vertically operation, when upper layer software (applications) only carries out water When horizontal drawing stretches setting, when image stretch timing generation module 3 only generates horizontal stretch image timing and horizontal stretch image sampling Sequence;When upper layer software (applications) only carries out stretched vertically setting, image stretch timing generation module 3 only generates stretched vertically image timing With stretched vertically image sampling timing;When upper layer software (applications) setting level, vertical stretching, image stretch timing generation module 3 It then generates horizontal vertical and stretches image sampling time sequence, horizontal stretch image timing and horizontal vertical stretching image timing, i.e., it is advanced The operation of row horizontal stretch, then stretched vertically operation is carried out, and stretched vertically image timing is in horizontal stretch image timing On the basis of carry out stretched vertically processing.
In above-described embodiment, for the operating process for illustrating image stretch, taking resolution ratio is the stretched operation of 2 × 2 image Process is illustrated, and the pixel of the image is as shown in table 1, the original image timing of the image and corresponding with the original image timing Original digital image data is as shown in Figure 2.
Table 1
D00 D01
D10 D11
Horizontal stretch operation-pixel replication mode:
In above-described embodiment, when upper layer software (applications) only carries out horizontal stretch setting, and upper layer software (applications) passes through upper-layer configured mould It is that horizontal stretch configuration-direct is (horizontal that the image resolution ratio that block 1 is sent to image stretch timing generation module 3, which stretches configuration information, Stretching mode and pixel replication mode), 2 times of horizontal stretch, as shown in figure 3, then image stretch timing generation module 3 is according to the figure The data effective district of row image timing every in the original image timing and blanking zone are made 2 times as resolution ratio stretches configuration information Stretching obtains 2 times of horizontal stretch image timing;Meanwhile the blanking zone of row image timing every in the original image timing being drawn It stretches, so that the duration of the blanking zone after the data effective district of every row image timing and stretching and 2 times of horizontal stretch images The duration of every row image timing is identical in timing, obtains 2 times of horizontal stretch image sampling timing;Later, when image stretch 2 times of horizontal stretch image sampling timing are sent into original digital image data generation module 6 by sequence generation module 3, by 2 times of horizontal stretch Image timing is sent into first and stretches image data generation submodule 8.Original digital image data generation module 6 receives 2 times of horizontal stretch After image sampling timing, by original image in the data effective district of every row image timing in 2 times of horizontal stretch image sampling timing As data are read from high speed DDR storage chip 5 by original digital image data Read-write Catrol module 4, and by the original digital image data according to Caching is image buffer storage data in the secondary each address for being written to the first image data cache sub-module 7, when the original digital image data Every row image data each address of the first image data cache sub-module 7 is all written after, first stretch image data Submodule 8 is generated under the control of 2 times of horizontal stretch image timing and is repeated according to the buffer address of original digital image data sequence Image buffer storage data 2 times read in each buffer address directly export 2 times of horizontal stretch image datas, 2 times of horizontal stretch Image data is as shown in table 2.
Table 2
D00 D00 D01 D01
D10 D10 D11 D11
Horizontal stretch operation-image replication mode:
In above-described embodiment, when upper layer software (applications) only carries out horizontal stretch setting, and upper layer software (applications) passes through upper-layer configured mould It is that horizontal stretch configuration-direct is (horizontal that the image resolution ratio that block 1 is sent to image stretch timing generation module 3, which stretches configuration information, Stretching mode and image replication mode), 2 times of horizontal stretch, as shown in figure 4, then image stretch timing generation module 3 is according to the figure The data effective district of row image timing every in the original image timing and blanking zone are made 2 times as resolution ratio stretches configuration information Stretching obtains 2 times of horizontal stretch image timing;Meanwhile the blanking zone of row image timing every in the original image timing being drawn It stretches, so that the duration of the blanking zone after the data effective district of every row image timing and stretching and 2 times of horizontal stretch images The duration of every row image timing is identical in timing, obtains 2 times of horizontal stretch image sampling timing;Later, when image stretch 2 times of horizontal stretch image sampling timing are sent into original digital image data generation module 6 by sequence generation module 3, by 2 times of horizontal stretch Image timing is sent into first and stretches image data generation submodule 8.Original digital image data generation module 6 receives 2 times of horizontal stretch After image sampling timing, by original image in the data effective district of every row image timing in 2 times of horizontal stretch image sampling timing As data are read from high speed DDR storage chip 5 by original digital image data Read-write Catrol module 4, and by the original digital image data according to Caching is image buffer storage data in the secondary each address for being written to the first image data cache sub-module 7, when the original digital image data Every row image data each address of the first image data cache sub-module 7 is all written after, first stretch image data Submodule 8 is generated under the control of 2 times of horizontal stretch image timing and according to the slow of row image data every in original digital image data It deposits image buffer storage data 2 times that sequence of addresses circulation is read in each buffer address of the row image data and directly exports 2 times of water Horizontal drawing stretches image data, and 2 times of horizontal stretch image datas are as shown in table 3.
Table 3
D00 D01 D00 D01
D10 D11 D10 D11
In above-described embodiment, which is sent into tensile diagram by the first image data cache sub-module 7 In picture output module 11, while 2 times of horizontal stretch image timing are also sent into and stretch images by image stretch timing generation module 3 In output module 11, image output module 11 is stretched by 2 times of horizontal stretch image datas and 2 times of horizontal stretch image timing It synchronizes the stretching image clock signal of processing output synchronous transfer and stretches viewdata signal.
Stretched vertically operation-image replication mode:
In above-described embodiment, when upper layer software (applications) only carries out stretched vertically setting, and upper layer software (applications) passes through upper-layer configured mould It is that stretched vertically configuration-direct is (vertical that the image resolution ratio that block 1 is sent to image stretch timing generation module 3, which stretches configuration information, Stretching mode and image replication mode), 2 times of stretched vertically, as shown in figure 5, then image stretch timing generation module 3 is according to the figure 1 original image timing, which is inserted into, after stretching configuration information in the original image timing as resolution ratio obtains 2 times of stretched vertically figures As timing, while using 2 times of stretched vertically image timing as 2 times of stretched vertically image sampling timing;Later, when image stretch 2 times of stretched vertically image sampling timing are sent into original digital image data generation module 6 by sequence generation module 3, by 2 times of stretched verticallies Image timing is sent into second and stretches image data generation submodule 10.Original digital image data generation module 6 receives 2 times of stretched verticallies After image sampling timing, by original image in the data effective district of every row image timing in 2 times of stretched vertically image sampling timing As data are read from high speed DDR storage chip 5 by original digital image data Read-write Catrol module 4, and by the original digital image data according to Caching is image buffer storage data in the secondary each address for being written to the second image data cache sub-module 9, when the original digital image data Every row image data each address of the second image data cache sub-module 9 is all written after, second stretch image data Submodule 10 is generated under the control of 2 times of stretched vertically image timing and is successively read according to the caching of original digital image data sequence The image buffer storage data of each address directly export 2 times of stretched vertically image datas in the second image data cache sub-module 9, 2 times of stretched vertically image datas are as shown in table 4.
Table 4
D00 D01
D10 D11
D00 D01
D10 D11
Stretched vertically operation-pixel replication mode:
In above-described embodiment, when upper layer software (applications) only carries out stretched vertically setting, and upper layer software (applications) passes through upper-layer configured mould It is that stretched vertically configuration-direct is (vertical that the image resolution ratio that block 1 is sent to image stretch timing generation module 3, which stretches configuration information, Stretching mode and pixel replication mode), 2 times of stretched vertically, as shown in fig. 6, then image stretch timing generation module 3 is according to the figure 2 are obtained as resolution ratio stretching configuration information is inserted into 1 row image timing after each row image timing of the original image timing Times stretched vertically image timing, meanwhile, image stretch timing generation module 3 stretches configuration information according to the image resolution ratio should The blanking zone of every row image timing stretches in original image timing, so that after the data effective district of every row image timing and stretching Blanking zone duration it is identical as the duration of every row image timing in 2 times of stretched vertically image timing, obtain 2 times Stretched vertically image sampling timing;Later, image stretch timing generation module 3 send 2 times of stretched vertically image sampling timing Enter original digital image data generation module 6, which is sent into second and stretches image data generation submodule 10.After original digital image data generation module 6 receives 2 times of stretched vertically image sampling timing, in 2 times of stretched vertically image samplings Original digital image data is passed through into original digital image data Read-write Catrol module 4 from high speed in the data effective district of every row image timing in timing Read in DDR storage chip 5, and by the original digital image data be sequentially written in the second image data cache sub-module 9 eachly Caching is image buffer storage data in location, when second image data caching is all written in every row image data of the original digital image data Behind each address of submodule 9, second, which stretches image data, generates submodule 10 in the control of 2 times of stretched vertically image timing In each buffer address that is lower and sequentially recycling the reading row image data according to the caching of row image data every in original digital image data Image buffer storage data n times directly export 2 times of stretched vertically image datas, 2 times of stretched vertically image datas are as shown in table 5.
Table 5
D00 D01
D00 D01
D10 D11
D10 D11
In above-described embodiment, second, which stretches image data, generates submodule 10 for 2 times of stretched vertically image datas feedings It stretches in image output module 11, while 2 times of stretched vertically image timing are also sent into and are drawn by image stretch timing generation module 3 It stretches in image output module 11, stretches image output module 11 for 2 times of stretched vertically image datas and 2 times of stretched vertically figures As timing synchronizes the stretching image clock signal of processing output synchronous transfer and stretches viewdata signal.
Horizontal vertical stretched operation-pixel replication mode:
In above-described embodiment, when upper layer software (applications), which carries out horizontal, stretched vertically, to be arranged, and upper layer software (applications) passes through upper-layer configured It is that horizontal vertical stretching configuration refers to that the image resolution ratio that module 1 is sent to image stretch timing generation module 3, which stretches configuration information, (horizontal vertical stretching mode and pixel replication mode), horizontal vertical is enabled to stretch 2 times, as shown in fig. 7, then image stretch timing is raw Configuration information is stretched according to the image resolution ratio under pixel replication mode at module 3,2 times of levels first are carried out to original image timing Stretched operation, then 2 times of stretched vertically operations are carried out, it obtains 2 times of horizontal verticals and stretches image sampling time sequence, 2 times of horizontal stretch figures As timing and 2 times of horizontal verticals stretch image timing.Later, image stretch timing generation module 3 stretches 2 times of horizontal verticals Image sampling timing is sent into original digital image data generation module 6, which is sent into first and stretches picture number According to generating in submodule 8, which is stretched into image timing and is sent into the second stretching image data generation submodule 10. Original digital image data generation module 6 receives 2 times of horizontal verticals and stretches image sampling time sequence, stretches image in 2 times of horizontal verticals In sampling time sequence every row image timing data effective district in by original digital image data by original digital image data Read-write Catrol module 4 from It is read in high speed DDR storage chip 5, and the original digital image data is sequentially written in each of the first image data cache sub-module 7 Caching is image buffer storage data in a address, when first image data is all written in every row image data of the original digital image data Behind each address of cache sub-module 7, first, which stretches image data, generates submodule 8 in 2 times of horizontal stretch image timing The image buffer storage data read in each buffer address of the first image data cache sub-module 7 under control are written to the second picture number According in cache sub-module 9, then second image data generation submodule 10 is stretched in 2 times of horizontal verticals stretching image timing The image buffer storage data read in each buffer address of the second image data cache sub-module 9 under control export 2 times of horizontal verticals Image data is stretched, as shown in table 6.
Table 6
D00 D00 D01 D01
D00 D00 D01 D01
D10 D10 D11 D11
D10 D10 D11 D11
Horizontal vertical stretched operation-image replication mode:
In above-described embodiment, when upper layer software (applications), which carries out horizontal, stretched vertically, to be arranged, and upper layer software (applications) passes through upper-layer configured It is that horizontal vertical stretching configuration refers to that the image resolution ratio that module 1 is sent to image stretch timing generation module 3, which stretches configuration information, (horizontal vertical stretching mode and image replication mode), horizontal vertical is enabled to stretch 2 times, as shown in figure 8, then image stretch timing is raw Configuration information is stretched according to the image resolution ratio under image replication mode at module 3,2 times of levels first are carried out to original image timing Stretched operation, then 2 times of stretched vertically operations are carried out, it obtains 2 times of horizontal verticals and stretches image sampling time sequence, 2 times of horizontal stretch figures As timing and 2 times of horizontal verticals stretch image timing.Later, image stretch timing generation module 3 stretches 2 times of horizontal verticals Image sampling timing is sent into original digital image data generation module 6, which is sent into first and stretches picture number According to generating in submodule 8, which is stretched into image timing and is sent into the second stretching image data generation submodule 10. Original digital image data generation module 6 receives 2 times of horizontal verticals and stretches image sampling time sequence, stretches image in 2 times of horizontal verticals In sampling time sequence every row image timing data effective district in by original digital image data by original digital image data Read-write Catrol module 4 from It is read in high speed DDR storage chip 5, and the original digital image data is sequentially written in each of the first image data cache sub-module 7 Caching is image buffer storage data in a address, when first image data is all written in every row image data of the original digital image data Behind each address of cache sub-module 7, first, which stretches image data, generates submodule 8 in 2 times of horizontal stretch image timing The image buffer storage data read in each buffer address of the first image data cache sub-module 7 under control are written to the second picture number According in cache sub-module 9, then second image data generation submodule 10 is stretched in 2 times of horizontal verticals stretching image timing The image buffer storage data read in each buffer address of the second image data cache sub-module 9 under control export 2 times of horizontal verticals Image data is stretched, as shown in table 7.
Table 7
D00 D00 D01 D01
D10 D10 D11 D11
D00 D00 D01 D01
D10 D10 D11 D11
In above-described embodiment, second, which stretches image data, generates submodule 10 for 2 times of horizontal verticals stretching image datas It is sent into and stretches in image output module 11, while when 2 times of horizontal verticals are also stretched image by image stretch timing generation module 3 Sequence, which is sent into, to be stretched in image output module 11, is stretched image output module 11 for 2 times of horizontal verticals and is stretched image data and 2 times Horizontal vertical stretches image timing and synchronizes the stretching image clock signal of processing output synchronous transfer and stretch image data Signal.
In above-described embodiment, LINK image conversion module 12 receives the stretching image clock signal of the output synchronous transfer After stretching viewdata signal, parameter is arranged for the stretching image data according to the Link image that upper-layer configured module 1 is sent It is assigned on multiple LINK and obtains more LINK image datas, while the stretching image timing being divided into the timing of multiple LINK.
In above-described embodiment, LVDS transmission that LVDS picture signal conversion module 13 is sent according to upper-layer configured module 1 and It encodes configuration order and the image data of each link is subjected to LVDS transmission encoding operation and parallel-serial conversion operation, be converted into serial LVDS picture signal.
As it will be easily appreciated by one skilled in the art that the content that this specification is not described in detail belongs to this field professional technique The prior art well known to personnel is not intended to limit the invention the above is merely preferred embodiments of the present invention, all in this hair Made any modifications, equivalent replacements, and improvements etc., should be included in protection scope of the present invention within bright spirit and principle Within.

Claims (10)

1. a kind of method for being stretched to image, which comprises the following steps:
S1 configuration information) is stretched according to image resolution ratio and original image timing generates when stretching image sampling time sequence and stretching image Sequence;
S2) reading original digital image data according to the stretching image sampling time sequence and cache is image buffer storage data;
S3 image buffer storage data output) is read according to the stretching image timing and stretches image data;
It includes: horizontal stretch configuration-direct, horizontal stretch multiple and/or stretched vertically that the image resolution ratio, which stretches configuration information, Configuration-direct and stretched vertically multiple.
2. the method according to claim 1 for being stretched to image, which is characterized in that further include step S4: right The stretching image timing and the stretching image data synchronize stretching image clock signal and the drawing of processing output synchronous transfer Stretch viewdata signal.
3. the method according to claim 1 for being stretched to image, which is characterized in that image point in step S1 It includes horizontal stretch configuration-direct and horizontal stretch multiple N that resolution, which stretches configuration information, and wherein N is positive integer;Step S1 is specific The following steps are included:
According to the horizontal stretch configuration-direct and the horizontal stretch multiple N by the data of row image timing every in the original image timing The stretching that effective district and blanking zone make N times obtains N times of horizontal stretch image timing;Meanwhile by every row in the original image timing The blanking zone of image timing stretches so that the data effective district of every row image timing and stretch after blanking zone it is lasting when Between it is identical as the duration of every row image timing in the N times of horizontal stretch image timing, obtain N times of horizontal stretch image sampling Timing.
4. the method according to claim 3 for being stretched to image, which is characterized in that read the figure in step S3 As data cached specifically includes the following steps:
It repeats to read in each buffer address according to the N times of horizontal stretch image timing and according to the caching of original digital image data sequence Image buffer storage data n times;
Alternatively,
It is read according to the N times of horizontal stretch image timing and according to the caching of row image data every in original digital image data sequence circulation Image buffer storage data n times in each buffer address of the row image data.
5. the method according to claim 1 for being stretched to image, which is characterized in that image point in step S1 It includes stretched vertically configuration-direct and stretched vertically multiple M that resolution, which stretches configuration information, and wherein M is positive integer;Step S1 is specific The following steps are included:
S1a M-1 item) is inserted into after the original image timing according to the stretched vertically configuration-direct and the stretched vertically multiple M should Original image timing is used as M times of stretched vertically image timing and M times of stretched vertically image sampling timing simultaneously;
Alternatively,
S1b) according to the stretched vertically configuration-direct and stretched vertically multiple M respectively in each row image of the original image timing It is inserted into the M-1 row row image timing after sequence and obtains M times of stretched vertically image timing;Meanwhile by every row in the original image timing The blanking zone of image timing stretches so that the data effective district of every row image timing and stretch after blanking zone it is lasting when Between it is identical as the duration of every row image timing in the M times of stretched vertically image timing, obtain M times of stretched vertically image sampling Timing.
6. the method according to claim 5 for being stretched to image, which is characterized in that read the figure in step S3 As data cached specifically includes the following steps:
The M times of stretched vertically image timing according to step S1a is simultaneously successively read according to the caching of original digital image data sequence Image buffer storage data in each buffer address;
Alternatively,
The M times of stretched vertically image timing according to step S1b and delaying according to row image data every in original digital image data Deposit image buffer storage data M times in each buffer address of the sequence circulation reading row image data.
7. a kind of device for being stretched to image, which is characterized in that including being set in a programmable logic device Image stretch timing generation module, original digital image data generation module, image data cache module and stretch image data generate Module;Wherein,
The image stretch timing generation module is used to stretch configuration information according to image resolution ratio and original image timing is generated and stretched Image sampling timing and stretching image timing;
The original digital image data generation module is used to read original digital image data according to the stretching image sampling time sequence and by the original image It is image buffer storage data that caching in the image data cache module, which is written, in data;
The stretching image data generating module is used to read image buffer storage data output tensile diagram according to the stretching image timing As data.
8. the device according to claim 7 for being stretched to image, which is characterized in that the image data caches mould Block includes the first image data cache sub-module and the second image data cache sub-module, the stretching image data generating module packet It includes the first stretching image data and generates submodule and the second stretching image data generation submodule;Wherein,
When the first image data cache sub-module is used for the original digital image data generation module according to horizontal stretch image sampling The original digital image data caching that sequence is read is horizontal stretch image buffer storage data;
The first stretching image data, which generates submodule and is used to read the horizontal stretch image according to horizontal stretch image timing, to be delayed Deposit data output level stretches image data;
When the second image data cache sub-module is used for the original digital image data generation module according to stretched vertically image sampling The original digital image data caching that sequence is read is stretched vertically image buffer storage data;
The second stretching image data, which generates submodule and is used to read the stretched vertically image according to stretched vertically image timing, to be delayed Deposit data exports stretched vertically image data.
9. the device according to claim 8 for being stretched to image, which is characterized in that second image data is slow Submodule is deposited to be also used to the first horizontal stretch image data caching for stretching image data generation submodule output be level Stretched vertically image buffer storage data;The second stretching image data generates submodule and is also used to read horizontal vertical stretching image Data cached output level stretched vertically image data.
10. the device for being stretched to image according to claim 8 or claim 9, which is characterized in that first picture number It is two-port RAM according to cache sub-module and the second image data cache sub-module.
CN201610430196.7A 2016-06-16 2016-06-16 A kind of method and device for being stretched to image Active CN105957016B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610430196.7A CN105957016B (en) 2016-06-16 2016-06-16 A kind of method and device for being stretched to image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610430196.7A CN105957016B (en) 2016-06-16 2016-06-16 A kind of method and device for being stretched to image

Publications (2)

Publication Number Publication Date
CN105957016A CN105957016A (en) 2016-09-21
CN105957016B true CN105957016B (en) 2019-03-26

Family

ID=56906605

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610430196.7A Active CN105957016B (en) 2016-06-16 2016-06-16 A kind of method and device for being stretched to image

Country Status (1)

Country Link
CN (1) CN105957016B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107316276B (en) 2017-06-30 2020-12-11 京东方科技集团股份有限公司 Method and device for stretching image

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103019643A (en) * 2012-12-30 2013-04-03 中国海洋大学 Method for automatic correction and tiled display of plug-and-play large screen projections
CN104978917A (en) * 2015-07-20 2015-10-14 武汉精测电子技术股份有限公司 DP video signal automatic test method and device thereof

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7928999B2 (en) * 2007-04-03 2011-04-19 Texas Instruments Incorporated Pulse width modulation algorithm
US9506882B2 (en) * 2011-01-18 2016-11-29 Texas Instruments Incorporated Portable fluoroscopy system with spatio-temporal filtering

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103019643A (en) * 2012-12-30 2013-04-03 中国海洋大学 Method for automatic correction and tiled display of plug-and-play large screen projections
CN104978917A (en) * 2015-07-20 2015-10-14 武汉精测电子技术股份有限公司 DP video signal automatic test method and device thereof

Also Published As

Publication number Publication date
CN105957016A (en) 2016-09-21

Similar Documents

Publication Publication Date Title
CN105653224B (en) A kind of splice displaying system and its display methods
CN100576294C (en) Abnormity generation method of display data and special-shaped display system
CN106383576A (en) Method and system for displaying parts of bodies of experiencers in VR environment
US8401339B1 (en) Apparatus for partitioning and processing a digital image using two or more defined regions
CN106228924B (en) Color spot compensating image signals generating means, method and color spot failures repair system
CN104935840A (en) Subtitle rolling display method of splicing display screen and system
EP2257076A1 (en) Video data signal, system and method for controlling shutter glasses
CN103179315A (en) Continuous video image processing scanner and scanning method for paper documents
CN106934758A (en) A kind of three-dimensional image video real time integrating method and system based on FPGA
CN104168487A (en) Video signal frame synchronization method and device
CN110139050A (en) A kind of multi-picture splicing processing method and processing device of the compatible ultra high-definition video of energy
CN105744202B (en) A kind of V BY ONE signal processing methods and device
CN109714621A (en) A kind of multichannel dynamic video analogy method and its processing system that timing is configurable
CN105898521A (en) Bullet screen adding device and bullet screen adding method
CN105430368A (en) Two-viewpoint stereo image synthesizing method and system
CN103685976A (en) A method and a device for raising the display quality of an LED display screen in recording a program
CN105957016B (en) A kind of method and device for being stretched to image
CN103886269B (en) A kind of video information electromagnetic leakage interference prevention method and apparatus
CN103888766B (en) The system for producing random motion image/video source
CN106817545B (en) A kind of fast multiresolution video image mirror image rotation processing system
CN105847730A (en) Video code stream output control and processing method, chip and system
CN102186097A (en) Three-dimensional (3D) image display method, device and equipment
CN104143304B (en) Arbitrary triangle based on FPGA is filled screen component and is generated method
CN108711134A (en) A kind of high-frequency linear array ccd image processing
JPS598074A (en) Picture processing system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 430070 Hubei City, Hongshan Province, South Lake Road, No. 53, Hongshan Venture Center, building on the 4 floor, No.

Applicant after: Wuhan fine test electronics group Limited by Share Ltd

Address before: 430070 Hubei City, Hongshan Province, South Lake Road, No. 53, Hongshan Venture Center, building on the 4 floor, No.

Applicant before: Wuhan Jingce Electronic Technology Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant