A multi-channel panchromatic and multi-spectral image compression scheduling method based on address partition management
The multi-channel panchromatic multispectral image compression scheduling method using address partitioning management solves the problem of multi-channel image data management, achieves efficient image compression of DDR3 memory, reduces hardware resources and power consumption, and is suitable for satellite platform miniaturization.
Patent Information
- Application Number
- CN202111185434.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-12
- Publication Date
- 2024-11-01
- Estimated Expiration
- 2041-10-12
AI Technical Summary
The dramatic increase in payload image data volume has led to high pressure on onboard storage and transmission, and image compression technology is unable to effectively manage the inconsistency in the size of multi-channel image data.
A multi-channel panchromatic multispectral image compression scheduling method with address partitioning management is adopted. Multi-channel image data storage is realized through DDR3 memory. High and low address partitioning storage is used, and read and write operation addresses are dynamically calculated. Priority polling and condition-triggered write and read operations are used.
It saves hardware resources, reduces power consumption, and improves the efficiency of the compression module, making it suitable for the miniaturization and lightweighting requirements of satellite platforms.
Smart Images

Figure CN113873251B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of image compression, and in particular to a multi-channel full-color multi-spectral image compression scheduling method managed by address partitions. Background Art
[0002] In recent years, with the development of payload technology in my country, earth observation missions have shown a trend of wide bandwidth, multi-spectral bands, and high resolution. In order to obtain a larger observation width, multiple channels are usually spliced in parallel. The spectrum of earth observation usually includes panchromatic images and multispectral images. Since each channel includes panchromatic images and multispectral images, the amount of payload image data increases dramatically, which brings great pressure to on-board storage and transmission. Image compression technology is an effective means to solve the contradiction between large payload data volume and effective transmission bandwidth.
[0003] The payload's multiple channel image sensors generate image data simultaneously, and the width and frequency of a row of panchromatic and multispectral images are different, as well as the resolution is different, resulting in different sizes of panchromatic and multispectral images, and a large difference in rate. Therefore, higher requirements are placed on the management of payload image data during image compression. Summary of the invention
[0004] In order to overcome the shortcomings of the prior art, the present invention provides a multi-channel full-color and multi-spectral image compression scheduling method with address partition management, which adopts a DDR3 memory to realize multi-channel image data storage, saves hardware resources, improves the efficiency of the compression module, reduces the board area and power consumption, and is suitable for use in occasions with high requirements for miniaturization and lightweight of satellite platforms.
[0005] In order to achieve the above-mentioned invention object, the technical solution adopted to solve the technical problem is as follows:
[0006] A multi-channel full-color multi-spectral image compression scheduling method with address partition management comprises the following steps:
[0007] Step S1: Calculate the storage range of each channel according to the size of the image compression block, calculate the storage base address of each channel, and cache the image data in a high-low address partition storage manner;
[0008] Step S2: According to the write-first access strategy, polling write operations are performed in turn according to the priority of each channel, and it is determined that the half-empty signal of the previous cache FIFO is not enabled, the DDR3 is in an idle state, and the low address area or the high address area space is not full, thereby triggering a write enable condition;
[0009] Step S3: When the write condition allows, the base address of each channel is calculated according to whether the write operation is in the low address area or the high address area, and the image write address is dynamically calculated according to the storage mode of the full-color image and the multi-spectral image, and the write address is the base address + the write address;
[0010] Step S4: performing polling read operations according to the priority of each channel in turn, determining that the half-full signal of the post-level cache FIFO is not enabled, the DDR3 is in an idle state, and the low address area or the high address area is full, triggering the read permission condition;
[0011] Step S5: When the reading condition allows, the base address of each channel is calculated according to whether the read operation is in the low address area or the high address area, and the image read address is dynamically calculated according to the storage mode of the full-color image and the multi-spectral image, and the read address is the base address + the read address;
[0012] Step S6: cumulatively calculate the burst data volume sent to the compression chip ADV212, and start the compression work when the size of an image compression block is met.
[0013] Further, in step S1, each channel address area is divided into a low address area and a high address area;
[0014] The calculation formula for the base address of each channel in the low address area is:
[0015] BaseAdd L (n) = A L +(n-1)*(w*4h+l*4h)
[0016] The calculation formula for the base address of each channel in the high address area is:
[0017] BaseAdd H (n) = A H +(n-1)*(w*4h+l*4h)
[0018] Among them, BaseAdd L (n) is the base address of the low address area of the nth channel, BaseAdd H (n) is the base address of the high address area of the nth channel, n is the channel number, A L The initial address of the low address area is 0, A H The initial address of the high address area is SC / W u , SC is the capacity of DDR3, W u is the bit width of the DDR3 user interface, w is the number of pixels in a row of a full-color image, l is the number of pixels in a row of a multispectral image, w=4l, and h is the number of rows in the image compression block.
[0019] Further, in step S2, the write priority order of each channel is 1, 2, ... n, and the write enable trigger condition satisfies the following conditions: the half-empty signal enable of the previous cache FIFO is valid, the DDR3 is in an idle state, and the current write interval of the channel is not full, and the half-empty signal enable threshold E is t =N w ÷R w ,N w is the number of pixels written in a burst, R w is the ratio of the quantization bits of the DDR3 user interface and the load pixel. Each channel partition is of equal capacity, and the partition capacity is (w*4h+l*4h). One of the conditions for enabling the write operation is that the current write address is less than or equal to (w*4h+l*4h)-16N w .
[0020] Furthermore, in step S3, the calculation formula for the write address of each channel in the low address area is:
[0021] Add w (n) = BaseAdd L (n)+Inadd w
[0022] The calculation formula for writing addresses of each channel in the high address area is:
[0023] Add w (n) = BaseAdd H (n)+Inadd w
[0024] Among them, Add w (n) Write the address for the nth channel full-color image or multispectral image, BaseAdd L (n) is the base address of the low address area of the nth channel, BaseAdd H (n) is the base address of the high address area of the nth channel, Inadd w Write addressing for full-color or multispectral images, Inadd w The initial value is 0, and then Inadd is set each time a write command is received. w The value increases by 1, and after reaching the partition capacity, it starts over from 0.
[0025] Further, in step S4, the read priority order of each channel is 1, 2, ... n, and the read enable trigger condition satisfies the following conditions at the same time: the half-full signal enable of the post-level cache FIFO is valid, the DDR3 is in an idle state, and the current read interval of the channel is full. The half-full signal enable threshold F t =N r ÷R r ,N r is the number of pixels read in a burst, R rIt is the ratio of the number of bits of DDR3 interface to the number of bits of compression chip interface.
[0026] Furthermore, in step S5, the calculation formula for each channel read address is:
[0027] Add rpan (n) = BaseAdd(n) + Inadd rpan
[0028] Among them, Add rpan (n) is the full-color image read address of the nth channel, Inadd rpan Addressing for full-color image reads;
[0029] Add rms (n) = BaseAdd(n) + Inadd rms
[0030] Among them, Add rms (n) is the read address of the multispectral image of the nth channel, Inadd rms Addressing for multispectral image reading;
[0031] The full-color image read addressing adopts the combination of column addressing + row addressing + segment addressing + block addressing. The column addressing is l, the row addressing is 4l, the segment addressing is 4l*4+4l, and the block addressing is (4l*4+4l)*h / 4. Each time a full-color image is read, Inadd is calculated. rpan Initial value, and then Inadd each time a read command is received rpan Add 1 to the value;
[0032] The multispectral image read addressing adopts the combination of column addressing and segment addressing. The column addressing is l and the segment addressing is 4l*4+4l. Each time the multispectral image is read, Inadd is calculated. rms Initial value, and then Inadd each time a read command is received rms The value increases by 1.
[0033] Further, in step S6, the burst frame number sent to the compression chip ADV212 is cumulatively calculated to control whether the image compression block is read to completion. count =(l*h) / N r When l is the number of pixels in one row of the image compression block, h is the number of rows of the image compression block, and N r The number of burst pixels read at one time indicates that the reading of the image block is completed and compression work begins.
[0034] Due to the adoption of the above technical solution, the present invention has the following advantages and positive effects compared with the prior art:
[0035] The present invention discloses a multi-channel full-color and multi-spectral image compression scheduling method with address partition management, which realizes storage management of multiple channel load data through address partitioning, dynamically calculates the address of read and write operations of each channel full-color image and multi-spectral image according to the transmission mode of the multi-channel full-color image and multi-spectral image, and realizes the management function of a single DDR3 for compressing and partitioning the multi-channel full-color image and multi-spectral image, greatly saves hardware resource overhead, improves the utilization rate of the compression module, and effectively reduces power consumption. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0037] Figure 1 A flow chart of a multi-channel panchromatic and multi-spectral image compression scheduling method based on address partition management;
[0038] Figure 2 It is a schematic diagram of the high and low address partitions of each channel;
[0039] Figure 3 The high and low address partition write operation flow chart for channel n;
[0040] Figure 4 (a) is a schematic diagram of the full-color image block division in the low-address area of channel n;
[0041] Figure 4 (b) is a schematic diagram of the multispectral image block division in the low address area of channel n;
[0042] Figure 4 (c) is a schematic diagram of the full-color image block division in the high-address area of channel n;
[0043] Figure 4 (d) is a schematic diagram of the multispectral image block division in the high address area of channel n;
[0044] Figure 5 This is the flow chart of the high and low address partition read operation of channel n. DETAILED DESCRIPTION
[0045] The technical solution of the present invention will be described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0046] This embodiment provides a multi-channel full-color multi-spectral image compression scheduling method managed by address partitions, and its flow chart is as follows: Figure 1 As shown, the specific steps include:
[0047] Step S1: Calculate the storage interval of each channel according to the size of the compressed block, set the storage base address of each channel, and use the high and low address area partition storage method to cache the parallel operation of reading and writing image data.
[0048] In step S1, each channel address area is divided into a low address area and a high address area. Figure 2 As shown, the calculation formula for the base address of each channel in the low address area is:
[0049] BaseAdd L (n) = A L +(n-1)*(w*4h+l*4h)
[0050] The calculation formula for the base address of each channel in the high address area is:
[0051] BaseAdd H (n) = A H +(n-1)*(w*4h+l*4h)
[0052] Among them, BaseAdd L (n) is the base address of the low address area of the nth channel, BaseAdd H (n) is the base address of the high address area of the nth channel, n is the channel number, A L The initial address of the low address area is 0, A H The initial address of the high address area is SC / W u , SC is the capacity of DDR3, W u is the bit width of the DDR3 user interface, w is the number of pixels in a row of a full-color image, l is the number of pixels in a row of a multispectral image, w=4l, and h is the number of rows in the image compression block.
[0053] Step S2: According to the write-first access strategy, polling write operations are performed in turn according to the priority of each channel, and the front-end cache FIFO half-empty signal, whether the DDR3 is in an idle state, and whether the low address area or the high address area is not full are determined to trigger the write enable condition.
[0054] In step S2, the write priority order of each channel is 1, 2, ... n, and the write operation process of each channel is to poll the low address area and the high address area to write image data. When the low address area is full, it switches to the high address area. When the high address area is full, the next round of write operation starts again, as shown in the attached figure. Figure 3Each write enable trigger condition satisfies the following three conditions at the same time: the half-empty signal enable of the previous cache FIFO is valid, the DDR3 is in an idle state, and the current write interval of the channel is not full. t =N w ÷R w ,N w is the number of pixels written in a burst, R w It is the ratio of the quantization bit number of the DDR3 user interface and the load pixel. Each channel partition is of equal capacity, and the partition capacity is (w*4h+l*4h). One of the conditions for enabling the write operation is that the current write address is less than or equal to (w*4h+l*4h)-16N. w .
[0055] Step S3: When the writing condition allows, the base address of each channel is selected according to whether the writing operation is in the low address area or the high address area, and the writing image addressing is dynamically calculated according to the full-color image and multi-spectral image storage mode, and the writing address is the base address + writing image addressing.
[0056] In step S3, the calculation formula for the write address of each channel in the low address area is:
[0057] Add w (n) = BaseAdd L (n)+Inadd w
[0058] The calculation formula for writing addresses of each channel in the high address area is:
[0059] Add w (n) = BaseAdd H (n)+Inadd w
[0060] Among them, Add w (n) Write the address for the nth channel full-color image or multispectral image, BaseAdd L (n) is the base address of the low address area of the nth channel, BaseAdd H (n) is the base address of the high address area of the nth channel, Inadd w Write addressing for full-color or multispectral images, Inadd w The initial value is 0, and then Inadd is set each time a write command is received. w The value increases by 1, and after reaching the partition capacity, it starts over from 0.
[0061] Step S4: Perform polling read operations according to the priority of each channel in turn, determine whether the post-level cache FIFO is half full, whether the DDR3 is in an idle state, whether the low address area or the high address area is full, and trigger the read enable condition.
[0062] In step S4, the read priority order of each channel is 1, 2, ... n, and the read operation flow of each channel is to poll the low address area and the high address area to read the image data.
[0063] In order to ensure the continuity and stability of the image output to the compression chip, the read operation is triggered when the number of full-color and multi-spectral images stored in the DDR3 meets the requirements of an image compression block. According to the size of the input images of full-color images and multi-spectral images, w = 4l, w is the number of pixels in a row of full-color images, and l is the number of pixels in a row of multi-spectral images, so the number of blocks of full-color images and multi-spectral images is in a 4:1 relationship. Figure 4 As shown in (a), (b), (c) and (d).
[0064] Therefore, there will be four full-color image blocks that simultaneously meet the size of l×h, that is, meet the requirements of a compressed block. The order of reading full-color images and multi-spectral images of each channel is to first read the full-color image and multi-spectral image in the low-address area, read four full-color image blocks continuously, cycle this reading process four times, and then read four multi-spectral images in sequence. Then, switch to the high-address area to read full-color and multi-spectral images, read four full-color image blocks continuously, cycle this reading process four times, and then read four multi-spectral images in sequence. Then, loop for the next read operation. As shown in the attached figure Figure 5 shown.
[0065] The read enable trigger condition is that the half-full signal enable of the back-end cache FIFO is valid, the DDR3 is in an idle state, and the current read interval of the channel is full. The half-full signal enable threshold F t =N r ÷R r ,N r is the number of pixels read in a burst, R r It is the ratio of the number of bits of DDR3 interface to the number of bits of compression chip interface.
[0066] Step S5: When the reading condition allows, the base address of each channel is selected according to whether the read operation is in the low address area or the high address area, and the read image addressing is dynamically calculated according to the full-color image and multi-spectral image storage method. The read address is the base address + the read image addressing.
[0067] In step S5, the dynamic calculation process of the read address is closely related to the image reading order, and the calculation formula of the read address of each channel is:
[0068] Add rpan (n) = BaseAdd(n) + Inadd rpan
[0069] Among them, Add rpan (n) is the full-color image read address of the nth channel, Inadd rpan Addressing for full-color image reads;
[0070] Add rms (n) = BaseAdd(n) + Inadd rms
[0071] Among them, Add rms (n) is the read address of the multispectral image of the nth channel, Inadd rms Addressing for multispectral image reads.
[0072] The full-color image read addressing adopts the combination of column addressing + row addressing + segment addressing + block addressing. The column addressing is l, the row addressing is 4l, the segment addressing is 4l*4+4l, and the block addressing is (4l*4+4l)*h / 4. Each time a full-color image is read, Inadd is calculated. rpan Initial value, and then Inadd each time a read command is received rpan The value increases by 1.
[0073] The multispectral image read addressing adopts the combination of column addressing and segment addressing. The column addressing is l and the segment addressing is 4l*4+4l. Each time the multispectral image is read, Inadd is calculated. rms Initial value, and then Inadd each time a read command is received rms The value increases by 1.
[0074] Step S6: cumulatively calculate whether the number of burst data sent to the compression chip ADV212 satisfies one image compression block, and start the current compression work when it satisfies one image compression block.
[0075] In step S6, the burst frame number sent to the compression chip ADV212 is cumulatively calculated to control whether the image compression block is read to completion. count =(l*h) / N r When l is the number of pixels in one row of the image compression block, h is the number of rows of the image compression block, and N r The number of pixels read in a burst at a time indicates that the reading of the image block is completed and the next image reading task is entered according to the read operation process.
[0076] After each image compression block is read, the compression chip ADV212 starts compression and outputs the compressed code stream after framing.
[0077] It should be noted that the multi-channel full-color multi-spectral image compression scheduling method used in this embodiment can be implemented in the form of FPGA hardware, or can be installed and executed in the form of software on a computer.
[0078] The above is only a preferred specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. A multi-channel full-color multi-spectral image compression scheduling method with address partition management, characterized in that: The following steps are involved: Step S1: Calculate the storage interval address range of each channel according to the size of the image compression block, calculate the storage base address of each channel, and cache the image data in a high-low address partition storage manner; Step S2: According to the write-first access strategy, polling write operations are performed in turn according to the priority of each channel, and it is determined that the half-empty signal of the previous cache FIFO is not enabled, the DDR3 is in an idle state, and the low address area or the high address area space is not full, thereby triggering a write enable condition; Step S3: When the write condition allows, the base address of each channel is calculated according to whether the write operation is in the low address area or the high address area, and the image write address is dynamically calculated according to the storage mode of the full-color image and the multi-spectral image, and the write address is the base address + the write address; Step S4: performing polling read operations according to the priority of each channel in turn, determining that the half-full signal of the post-level cache FIFO is not enabled, the DDR3 is in an idle state, and the low address area or the high address area is full, triggering the read permission condition; Step S5: when the reading condition allows, the base address of each channel is calculated by whether the read operation is in the low address area or the high address area, and the image read addressing is dynamically calculated according to the storage mode of the full-color image and the multi-spectral image, and the read address is the base address + the read address addressing; In step S5, the calculation formula for each channel read address is: Add rpan (n)=BaseAdd(n)+Inadd rpan Among them, Add rpan (n) is the full-color image read address of the nth channel, BaseAdd(n) is the base address of the nth channel, Inadd rpan Addressing for full-color image reads; Add rms (n)=BaseAdd(n)+Inadd rms Among them, Add rms (n) is the read address of the multispectral image of the nth channel, Inadd rms Addressing for multispectral image reading; The full-color image read addressing adopts the combination of column addressing + row addressing + segment addressing + block addressing. The column addressing is l, l is the number of pixels in a row of the image compression block, the row addressing is 4l, the segment addressing is 4l*4+4l, and the block addressing is (4l*4+4l)*h / 4, h is the number of rows of the image compression block. Each time a full-color image is read, Inadd is calculated. rpan Initial value, and then Inadd each time a read command is received rpan Add 1 to the value; The multispectral image read addressing adopts the combination of column addressing and segment addressing. The column addressing is l and the segment addressing is 4l*4+4l. Each time the multispectral image is read, Inadd is calculated. rms Initial value, and then Inadd each time a read command is received rms Add 1 to the value; Step S6: cumulatively calculate the burst data volume sent to the compression chip ADV212, and start the compression work when the size of an image compression block is met.
2. The method for compressing and scheduling multi-channel full-color and multi-spectral images with address partition management according to claim 1, characterized in that: In step S1, each channel address area is divided into a low address area and a high address area; The calculation formula for the base address of each channel in the low address area is: <h2 style=";text-align:left;direction:ltr">BaseAdd<h2 style=";text-align:left;direction:ltr"> L <h2 style=";text-align:left;direction:ltr"> (n)=A<h2 style=";text-align:left;direction:ltr"> L <h2 style=";text-align:left;direction:ltr"> +(n-1)*(w*4h+l*4h) The calculation formula for the base address of each channel in the high address area is: <h2 style=";text-align:left;direction:ltr">BaseAdd<h2 style=";text-align:left;direction:ltr"> H <h2 style=";text-align:left;direction:ltr"> (n)=A<h2 style=";text-align:left;direction:ltr"> H <h2 style=";text-align:left;direction:ltr"> +(n-1)*(w*4h+l*4h) Among them, BaseAdd L (n) is the base address of the low address area of the nth channel, BaseAdd H (n) is the base address of the high address area of the nth channel, n is the channel number, A L The initial address of the low address area is 0, A H The initial address of the high address area is SC / W u , SC is the capacity of DDR3, W u is the bit width of the DDR3 user interface, w is the number of pixels in one row of a full-color image, w=4l.
3. The method for compressing and scheduling multi-channel full-color and multi-spectral images with address partition management according to claim 1, characterized in that: In step S2, the write priority order of each channel is 1, 2, ... n, and the write enable trigger condition satisfies the following conditions: the half-empty signal enable of the previous cache FIFO is valid, the DDR3 is in an idle state, and the current write interval of the channel is not full. The half-empty signal enable threshold E t =N w ÷R w ,N w is the number of pixels written in a burst, R w is the ratio of the quantization bits of the DDR3 user interface and the load pixel. Each channel partition is of equal capacity, and the partition capacity is (w*4h+l*4h). One of the conditions for enabling the write operation is that the current write address is less than or equal to (w*4h+l*4h)-16N w .
4. The multi-channel full-color multi-spectral image compression scheduling method of address partition management according to claim 1 is characterized in that: In step S3, the calculation formula for the write address of each channel in the low address area is: Add w (n)=BaseAdd L (n)+Inadd w The calculation formula for writing addresses of each channel in the high address area is: Add w (n)=BaseAdd H (n)+Inadd w Among them, Add w (n) Write the address for the nth channel full-color image or multispectral image, BaseAdd L (n) is the base address of the low address area of the nth channel, BaseAdd H (n) is the base address of the high address area of the nth channel, Inadd w Write addressing for full-color or multispectral images, Inadd w The initial value is 0, and then Inadd is set each time a write command is received. w The value increases by 1, and after reaching the partition capacity, it starts over from 0.
5. The method for compressing and scheduling multi-channel full-color and multi-spectral images with address partition management according to claim 1, characterized in that: In step S4, the read priority order of each channel is 1, 2, ... n, and the read enable trigger condition satisfies the following conditions at the same time: the half-full signal enable of the back-end cache FIFO is valid, the DDR3 is in an idle state, and the current read interval of the channel is full. The half-full signal enable threshold F t =N r ÷R r ,N r is the number of pixels read in a burst, R r It is the ratio of the number of bits of DDR3 interface to the number of bits of compression chip interface.
6. The method for compressing and scheduling multi-channel full-color and multi-spectral images with address partition management according to claim 1, characterized in that: In step S6, the burst frame number sent to the compression chip ADV212 is cumulatively calculated to control whether the image compression block is read to completion. count =(l*h) / N r When N r The number of burst pixels read at one time indicates that the reading of the image compression block is completed and the compression work begins.
Citation Information
Cited By
A multi-channel image processing apparatus and method based on segmented images
CN123032526A
