CN110148143A - A method of the image segmentation based on FPGA and simultaneous display - Google Patents
A method of the image segmentation based on FPGA and simultaneous display Download PDFInfo
- Publication number
- CN110148143A CN110148143A CN201910584956.3A CN201910584956A CN110148143A CN 110148143 A CN110148143 A CN 110148143A CN 201910584956 A CN201910584956 A CN 201910584956A CN 110148143 A CN110148143 A CN 110148143A
- Authority
- CN
- China
- Prior art keywords
- image
- fpga
- data
- group
- read
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/061—Improving I/O performance
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0655—Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
- G06F3/0656—Data buffering arrangements
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
- G06T7/11—Region-based segmentation
Abstract
The present invention relates to a kind of image segmentation based on FPGA and the methods of simultaneous display, it is characterised in that: specifically includes the following steps: (1) FPGA initializes DDR;(2) the small image of cutting is grouped;(3) one logic unit of exampleization inside FPGA;(4) DDR is written into the value of each pixel of big figure;(5) every group of data are sequential read out and is stored in level cache;(6) by the first order cache in data take out and count;(7) image is separated by the serial number occupied in the row and is stored in the caching of the second level in every group;(8) display interface of each channel image takes image data and shows.Each small image using the present invention to the data packet mileage returned from external memory according to counting, after segmentation can be accurately obtained;And FPGA is reduced to the frequency of external memory access;FPGA is additionally favorable for for the timing closure of high frequency clock domain.
Description
Technical field
The present invention relates to image segmentation field, the method for a kind of specific image segmentation based on FPGA and simultaneous display.
Background technique
During image processing, the problem of being frequently encountered image cutting, i.e., it is a biggish image segmentation is several
Small image, then shows simultaneously.The prior art has the method for big figure cutting using FPGA, but certainly due to FPGA
The memory capacity of band is limited, is often stored in image data in plug-in DDR SDRAM, its read-write is burst type
, a data packet per treatment cannot be accurate to the reading for each byte.If at this time going to read cutting simultaneously
Each small image, then having following problems:
(1) boundary of each small image between any two is likely in the data packet for falling in a reading timing of DDR, therefore
It can very maximum probability will not be that the content of oneself picture is misread into;
(2) when DDR exchanges data with normal logic, it will use the included memory of FPGA as data buffering, therefore theoretically
The fewer read/write channel the better, and if when being cut into 4 width, it is necessary to 5 channels, being cut into 9 width then needs 10 channels, this is aobvious
Right more wasteful resource;
(3) clock of ddr interface is usually high frequency clock, if the amount of logic being connected with it is too big, means FPGA
It inside has very big one piece of region and belongs to high frequency clock domain, this can bring very big challenge to subsequent timing closure.
Summary of the invention
Technical problem to be solved by the invention is to provide a kind of image segmentation based on FPGA and the methods of simultaneous display.
In order to solve the above technical problems, the technical scheme is that providing a kind of image segmentation based on FPGA and synchronization
The method of display, innovative point are: specifically includes the following steps:
(1) FPGA initializes external dynamic RAM, and external dynamic RAM is enable normally to read number
According to;
(2) small image to be cut is grouped, with one group of calculation of a line, big figure is cut into n row, that is, is divided into n group;
(3) inside FPGA exampleization one can be time-multiplexed the logic unit for reading and writing external dynamic RAM for scheming greatly
With the image transmitting of small figure;
(4) by a write access external dynamic RAM is written into the value of each pixel by big figure in order;
The data of (5) first groups of images are read from first read channel;The data of second group of image are read from second read channel
The data of n-th group image are read from n-th of read channel out ..., and after reading, the deposit of respective data is stored each channel
First order caching;
(6) by the first order cache in data take out, while the data of taking-up are counted, count one that the period is big image
The summation of row pixel, by counter clear 0, counts again when counting full a line;
(7) it is directed to every group of image, image is separated by the serial number occupied in the row in the group in every a line, and is stored to each channel
In the caching of the second level belonging to image;
(8) display interface of each channel image takes image data from corresponding each channel caching the inside and shows.
Further, the FPGA in the step (1) carries out external dynamic RAM by controller MIG initial
Change, the external dynamic RAM includes but is not limited to DDR, DDR2, DDR3 and DDR4.
Further, the logic unit in the step (3) is AXI CONNECT.
Further, pixel includes but is not limited to RGB, YCBCR and gray scale in the step (4).
Further, the first order caching of the step (5) and second level caching in step (7) include but is not limited to
FIFO, RAM or register-combinatorial.
The present invention compared to the prior art, the beneficial effects are as follows:
(1) present invention is by that, according to counting, can be accurately obtained segmentation to the data packet mileage returned from external memory
Each small image afterwards;
(2) for the present invention by being grouped to small image by row, every group of small image shares the reading interface of an external memory, reduces
Frequency of the FPGA to external memory access;
(3) present invention is reduced by being grouped while read interface, also reduces FPGA for amount of logic with external memory,
This is conducive to FPGA for the timing closure of high frequency clock domain.
Detailed description of the invention
It, below will be to needed in the embodiment in order to more clearly illustrate the technical solution in the embodiment of the present invention
Attached drawing is simply introduced, it should be apparent that, the accompanying drawings in the following description is only some embodiments recorded in the present invention, for
For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other
Attached drawing.Fig. 1 is method and step schematic diagram of the invention.
Fig. 2 is that big image is cut into 4 small image schematic diagram.
Fig. 3 is that big image is cut into 4 small image step flow chart.
Specific embodiment
Technical solution of the present invention will be clearly and completely described by specific embodiment below.
A kind of method of image segmentation based on FPGA and simultaneous display of the invention, specific steps are as shown in Figure 1, include
Following steps:
(1) FPGA initializes external dynamic RAM, and external dynamic RAM is enable normally to read number
According to external dynamic RAM includes but is not limited to DDR, DDR2, DDR3 and DDR4.
(2) small image to be cut is grouped, with one group of calculation of a line, big figure is cut into n row, that is, is divided into n group.
(3) inside FPGA exampleization one can be time-multiplexed and read and write the logic unit of external dynamic RAM and be used for
The image transmitting of big figure and small figure, logic unit of the invention are AXI CONNECT, are also possible to other forms.
(4) will scheme greatly that the value of each pixel is written in order by a write access (CHANNEL 0 in figure) outer
Dynamic RAM is connect, pixel of the invention includes but is not limited to RGB, YCBCR and gray scale.
The data of (5) first groups of images are read from first read channel (CHANNEL 1);The data of second group of image are from
Two read channels (CHANNEL 2) read ..., and the data of n-th group image are read from n-th of read channel, will be respective after reading
Data deposit stores the first order caching in each channel, and first order caching of the invention includes but is not limited to FIFO, RAM or posts
Storage combination.
(6) by the first order cache in data take out, while the data of taking-up are counted, the countings period is big image
The summation of one-row pixels point, by counter clear 0, counted again when counting full a line;
(7) it is directed to every group of image, image is separated by the serial number occupied in the row in the group in every a line, and is stored to each channel
In the caching of the second level belonging to image, second level caching of the invention and including but not limited to FIFO, RAM or register group
It closes.
(8) display interface of each channel image takes image data from corresponding each channel caching the inside and shows.
The present invention as shown in Figure 2 will figure for a kind of citing of the method and step of image segmentation based on FPGA and simultaneous display
As being divided into 4 small figures, specific steps are as shown in Figure 3:
(1) FPGA wants that external dynamic RAM DDR SDRAM can be initialized, and energy normal read data, this hair
It is bright mainly to go to realize by the DDR controller MIG in figure;
(2) inside FPGA exampleization one, which can be time-multiplexed, reads and writes the logic unit AXI CONNECT of DDR SDRAM, is used for
The image transmitting of big figure and small figure;
(3) by CHANNEL 0 DDR SDRAM is written into the value of each pixel by big figure in order;
(4) data of image 1 and 2 are read from CHANNEL1, initial address 0;The data of image 3 and 4 are read from CHANNEL2
Out, initial address is the half of image size (position occupied in a column direction with specific reference to image 3 and 4 is related).After reading,
The first order that respective data are stored in oneself is cached into FIFO;
(5) data of first order FIFO are taken out, while the data of taking-up is counted, count a line that the period is big image
The summation of pixel, by counter clear 0, counts again when counting full a line;
(6) it is directed to every group of image, is separated by the serial number that image in organizing in every a line is occupied in this journey, and be stored to each road image institute
In the second level caching FIFO of category;By taking image 1 and image 2 as an example, if two images are equally big, before every linage-counter
One half-pix belongs to image 1 certainly, and latter half-pix belongs to image 2;
(7) display interface of each road image takes image data inside oneself corresponding FIFO and shows.
Embodiment described above is only that the preferred embodiment of the present invention is described, not to design of the invention
It is defined with range, without departing from the design concept of the invention, ordinary engineering and technical personnel is to this hair in this field
The all variations and modifications that bright technical solution is made should all fall into protection scope of the present invention, claimed skill of the invention
Art content is all documented in technical requirements book.
Claims (5)
1. a kind of method of image segmentation based on FPGA and simultaneous display, it is characterised in that: specifically includes the following steps:
(1) FPGA initializes external dynamic RAM, and external dynamic RAM is enable normally to read number
According to;
(2) small image to be cut is grouped, with one group of calculation of a line, big figure is cut into n row, that is, is divided into n group;
(3) inside FPGA exampleization one can be time-multiplexed the logic unit for reading and writing external dynamic RAM for scheming greatly
With the image transmitting of small figure;
(4) by a write access external dynamic RAM is written into the value of each pixel by big figure in order;
The data of (5) first groups of images are read from first read channel;The data of second group of image are read from second read channel
The data of n-th group image are read from n-th of read channel out ..., and after reading, the deposit of respective data is stored each channel
First order caching;
(6) by the first order cache in data take out, while the data of taking-up are counted, count one that the period is big image
The summation of row pixel, by counter clear 0, counts again when counting full a line;
(7) it is directed to every group of image, image is separated by the serial number occupied in the row in the group in every a line, and is stored to each channel
In the caching of the second level belonging to image;
(8) display interface of each channel image takes image data from corresponding each channel caching the inside and shows.
2. the method for a kind of image segmentation based on FPGA according to claim 1 and simultaneous display, it is characterised in that: institute
The FPGA stated in step (1) initializes external dynamic RAM by controller MIG, the external dynamic random
Memory includes DDR, DDR2, DDR3 and DDR4.
3. the method for a kind of image segmentation based on FPGA according to claim 1 and simultaneous display, it is characterised in that: institute
Stating the logic unit in step (3) is AXI CONNECT.
4. the method for a kind of image segmentation based on FPGA according to claim 1 and simultaneous display, it is characterised in that: institute
Stating pixel in step (4) includes RGB, YCBCR and gray scale.
5. the method for a kind of image segmentation based on FPGA according to claim 1 and simultaneous display, it is characterised in that: institute
Stating second level caching in the first order caching and step (7) of step (5) includes FIFO, RAM or register-combinatorial.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910261123.3A CN109919952A (en) | 2019-04-02 | 2019-04-02 | A method of big figure being cut into several small figure in FPGA and while being shown |
CN2019102611233 | 2019-04-02 |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110148143A true CN110148143A (en) | 2019-08-20 |
Family
ID=66968335
Family Applications (2)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910261123.3A Withdrawn CN109919952A (en) | 2019-04-02 | 2019-04-02 | A method of big figure being cut into several small figure in FPGA and while being shown |
CN201910584956.3A Pending CN110148143A (en) | 2019-04-02 | 2019-07-01 | A method of the image segmentation based on FPGA and simultaneous display |
Family Applications Before (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910261123.3A Withdrawn CN109919952A (en) | 2019-04-02 | 2019-04-02 | A method of big figure being cut into several small figure in FPGA and while being shown |
Country Status (1)
Country | Link |
---|---|
CN (2) | CN109919952A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111935416A (en) * | 2020-01-14 | 2020-11-13 | 南京信息工程大学 | Method for storing zoomed image based on FPGA |
CN112689103A (en) * | 2020-12-18 | 2021-04-20 | 西安万像电子科技有限公司 | Display control system and method of screen |
CN113596486A (en) * | 2021-07-19 | 2021-11-02 | 康佳集团股份有限公司 | Data information storage method, reading device, terminal and storage medium |
CN114038404A (en) * | 2021-11-17 | 2022-02-11 | 东莞阿尔泰显示技术有限公司 | Display data distribution method of improved display module |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113190301A (en) * | 2021-03-30 | 2021-07-30 | 武汉高德红外股份有限公司 | User interface operation implementation method of FPGA platform |
CN115035128B (en) * | 2022-08-10 | 2022-11-08 | 之江实验室 | Image overlapping sliding window segmentation method and system based on FPGA |
Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1188912A (en) * | 1997-01-20 | 1998-07-29 | 株式会社东芝 | Access method image formation save device and address generated method and device for image storage |
CN1477871A (en) * | 2002-07-19 | 2004-02-25 | 三星电子株式会社 | Image processing device and method |
CN101000755A (en) * | 2006-12-21 | 2007-07-18 | 康佳集团股份有限公司 | Multi-screen display splicing controller |
TWM324824U (en) * | 2007-02-06 | 2008-01-01 | Tai-Shiung Jang | FPGA (field programmable gate array, FPGA)-based even-division digital color image surveillance apparatus |
CN101692335A (en) * | 2009-09-24 | 2010-04-07 | 广东威创视讯科技股份有限公司 | Image processing method and device thereof for achieving seamless splicing large screen display |
WO2010124542A1 (en) * | 2009-04-29 | 2010-11-04 | 广东威创视讯科技股份有限公司 | Image processing method and device for seamless splice display system |
CN101980142A (en) * | 2010-10-19 | 2011-02-23 | 广东威创视讯科技股份有限公司 | Multi-screen image segmentation processing system and method thereof |
CN102376293A (en) * | 2010-08-19 | 2012-03-14 | 上海济丽信息技术有限公司 | Image mosaic processor on basis of FPGA (Field Programmable Gata Array) and image mosaic method |
CN103269416A (en) * | 2013-05-03 | 2013-08-28 | 四川虹视显示技术有限公司 | Device and method for achieving video image tiled display by adoption of parallel processing mode |
CN104767910A (en) * | 2015-04-27 | 2015-07-08 | 京东方科技集团股份有限公司 | Video image stitching system and method |
CN104902193A (en) * | 2015-05-19 | 2015-09-09 | 上海集成电路研发中心有限公司 | Method for performing segmentation processing and display for image data based on FPGA |
CN106791488A (en) * | 2016-12-28 | 2017-05-31 | 浙江宇视科技有限公司 | A kind of synchronous tiled display methods and device |
-
2019
- 2019-04-02 CN CN201910261123.3A patent/CN109919952A/en not_active Withdrawn
- 2019-07-01 CN CN201910584956.3A patent/CN110148143A/en active Pending
Patent Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1188912A (en) * | 1997-01-20 | 1998-07-29 | 株式会社东芝 | Access method image formation save device and address generated method and device for image storage |
CN1477871A (en) * | 2002-07-19 | 2004-02-25 | 三星电子株式会社 | Image processing device and method |
CN101000755A (en) * | 2006-12-21 | 2007-07-18 | 康佳集团股份有限公司 | Multi-screen display splicing controller |
TWM324824U (en) * | 2007-02-06 | 2008-01-01 | Tai-Shiung Jang | FPGA (field programmable gate array, FPGA)-based even-division digital color image surveillance apparatus |
WO2010124542A1 (en) * | 2009-04-29 | 2010-11-04 | 广东威创视讯科技股份有限公司 | Image processing method and device for seamless splice display system |
CN101692335A (en) * | 2009-09-24 | 2010-04-07 | 广东威创视讯科技股份有限公司 | Image processing method and device thereof for achieving seamless splicing large screen display |
CN102376293A (en) * | 2010-08-19 | 2012-03-14 | 上海济丽信息技术有限公司 | Image mosaic processor on basis of FPGA (Field Programmable Gata Array) and image mosaic method |
CN101980142A (en) * | 2010-10-19 | 2011-02-23 | 广东威创视讯科技股份有限公司 | Multi-screen image segmentation processing system and method thereof |
CN103269416A (en) * | 2013-05-03 | 2013-08-28 | 四川虹视显示技术有限公司 | Device and method for achieving video image tiled display by adoption of parallel processing mode |
CN104767910A (en) * | 2015-04-27 | 2015-07-08 | 京东方科技集团股份有限公司 | Video image stitching system and method |
CN104902193A (en) * | 2015-05-19 | 2015-09-09 | 上海集成电路研发中心有限公司 | Method for performing segmentation processing and display for image data based on FPGA |
CN106791488A (en) * | 2016-12-28 | 2017-05-31 | 浙江宇视科技有限公司 | A kind of synchronous tiled display methods and device |
Non-Patent Citations (1)
Title |
---|
冯俊威等: "面向屏幕拼接的数字视频插值算法及FPGA实现", 《计算机工程与设计》 * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111935416A (en) * | 2020-01-14 | 2020-11-13 | 南京信息工程大学 | Method for storing zoomed image based on FPGA |
CN112689103A (en) * | 2020-12-18 | 2021-04-20 | 西安万像电子科技有限公司 | Display control system and method of screen |
CN113596486A (en) * | 2021-07-19 | 2021-11-02 | 康佳集团股份有限公司 | Data information storage method, reading device, terminal and storage medium |
CN114038404A (en) * | 2021-11-17 | 2022-02-11 | 东莞阿尔泰显示技术有限公司 | Display data distribution method of improved display module |
Also Published As
Publication number | Publication date |
---|---|
CN109919952A (en) | 2019-06-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110148143A (en) | A method of the image segmentation based on FPGA and simultaneous display | |
US11500586B2 (en) | Data read-write method and apparatus and circular queue | |
KR100908760B1 (en) | Method and memory device having multiple internal data buses and memory bank interleaving | |
CN105245759B (en) | A kind of method and device realized image synchronization and shown | |
TWI332648B (en) | Image display system and control method therefor | |
CN107248136B (en) | A kind of image histogram information acquisition method based on FPGA | |
US20080049240A1 (en) | Image data buffer apparatus and data transfer system for efficient data transfer | |
EP3166269B1 (en) | Queue management method and apparatus | |
JP5396169B2 (en) | Data access control device | |
CN112948293A (en) | DDR arbiter and DDR controller chip of multi-user interface | |
CN109359729A (en) | It is a kind of to realize data cached system and method on FPGA | |
US20060119604A1 (en) | Method and apparatus for accelerating the display of horizontal lines | |
CN105335323A (en) | Buffering device and method of data burst | |
CN105657311A (en) | Video recording method and device | |
CN109508782A (en) | Accelerating circuit and method based on neural network deep learning | |
US20020013871A1 (en) | Data processing unit | |
CN106776374A (en) | A kind of efficient data way to play for time based on FPGA | |
CN112541929A (en) | Image processing method and system for convolutional neural network | |
US20100268977A1 (en) | Method and apparatus for accessing memory units | |
CN107040784B (en) | Video buffering processing method, system and device | |
CN107710177A (en) | Data bussing devices and data carrying method | |
CN110362519A (en) | Interface arrangement and interface method | |
CN101277378A (en) | Apparatus for scaling image and line buffer thereof | |
US7539792B2 (en) | Data distribution method and system having a stream buffer device with a sub-buffer table for recording the state of a pluraity of corresponding sub-buffers | |
CN110688238A (en) | Method and device for realizing queue of separated storage |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190820 |
|
RJ01 | Rejection of invention patent application after publication |