Image processing device

By using the line buffer and input and output circuit design in the image processing device, the problem of image reduction and row output stop is solved, and the image reduction processing without stopping the line output is realized, ensuring the continuity of image processing and efficiency.

CN116233330BActive Publication Date: 2024-11-08KYOCERA DOCUMENT SOLUTIONS INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211453773.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2021-12-02
Filing Date
2022-11-21
Publication Date
2024-11-08
Estimated Expiration
2042-11-21

AI Technical Summary

Technical Problem

The existing image processing device is performing image reduction, and due to the design of the line buffer, the problem of row output stopping, and continuous image reduction processing cannot be achieved.

Method used

An image processing device is designed, using a line buffer, an input circuit and an output circuit to perform interval removal processing on pixel data corresponding to the sampled pixel by a throughput of a square multiple of the reciprocal reduction rate relative to the throughput of the output circuit. And write it to the line buffer to ensure that the pixel data that should be sampled is continuously output in the sub-scan direction.

Benefits of technology

It realizes that image reduction is performed through hardware processing without stopping the line output, ensuring the continuity and efficiency of image processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116233330B_ABST
    Figure CN116233330B_ABST
Patent Text Reader

Abstract

The present invention relates to an image processing device; an input circuit (2) performs an interpolation process on pixel data of input information groups of a specified size distributed on a number of lines equal to the reciprocal of the reduction rate, at a throughput that is multiple of the square of the reciprocal of the reduction rate relative to the throughput of an output circuit (3), and writes the pixel data of the pixels to be sampled into a line buffer; when the pixel data of an input information group adjacent to the input information group in a sub-scanning direction is written into the line buffer (1), the output circuit (3) reads the pixel data of the pixels to be sampled from the line buffer (1) and outputs it continuously.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to an image processing device. Background Art

[0002] In an image processing device, a line buffer is used to perform image reduction processing.

[0003] Figure 4 This is a diagram for explaining general equal-magnification and reduction operations when using a line buffer. Figure 5 This is a timing chart for explaining a general reduction operation when a line buffer is used.

[0004] For example, when reducing the image's length and width to 1 / 2, for every 2×2 pixels of the input, 1 pixel of the output is sampled. Figure 4 As shown in the figure, for each row in the input image information group obtained by dividing the object image, (a) the data of the 4-pixel portion in the row is sequentially written into the row buffer as input stream data, and (b) the output stream data is read out from the row buffer as the output image information group according to the data of the 1-pixel portion.

[0005] For example, Figure 4 As shown in , when the same magnification operation is performed, the data of each pixel written in the line buffer is read out from the line buffer. When the reduction operation is performed, only the sampled pixels among the pixel data written in the line buffer are read out from the line buffer. Therefore, due to the presence of the row of unsampled pixels in the input image information group, for example, Figure 5 As shown in , a period during which line output is stopped occurs. Summary of the invention

[0006] The present invention has been made in view of the above-mentioned problems, and an object of the present invention is to provide an image processing device that reduces an image by hardware processing without stopping line output.

[0007] The image processing device of the present invention comprises: a line buffer; an input circuit that writes pixel data into the line buffer; and an output circuit that reads out pixel data of pixels to be sampled, which are determined according to a reduction ratio, from the line buffer. The input circuit performs thinning processing on pixel data of input information groups of a predetermined size distributed on a number of lines equal to the reciprocal of the reduction ratio, at a throughput that is times the square of the reciprocal of the reduction ratio relative to the throughput of the output circuit, and writes the pixel data of the pixels to be sampled into the line buffer; when pixel data of an input information group adjacent to the input information group in the sub-scanning direction is written into the line buffer, the output circuit reads out the pixel data of the pixels to be sampled from the line buffer and outputs them continuously.

[0008] (Effects of the Invention)

[0009] According to the present invention, it is possible to obtain an image processing device that reduces an image by hardware processing without stopping line output.

[0010] The above and other objects, features and advantages of the present invention will become more apparent in combination with the following detailed description based on the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] Figure 1 It is a block diagram showing the structure of an image processing device according to an embodiment of the present invention.

[0012] Figure 2 yes Figure 1 An explanatory diagram of the same-magnification operation and the reduction operation in the image processing device shown.

[0013] Figure 3 Yes Figure 1 FIG. 2 is a timing chart for explaining the reduction operation in the image processing device shown in FIG.

[0014] Figure 4 This is a diagram for explaining general equal-magnification and reduction operations when using a line buffer.

[0015] Figure 5 This is a timing chart for explaining a general reduction operation when a line buffer is used. DETAILED DESCRIPTION

[0016] Hereinafter, embodiments of the present invention will be described with reference to the accompanying drawings.

[0017] Figure 1 It is a block diagram showing the structure of an image processing device according to an embodiment of the present invention. Figure 2 yes Figure 1An explanatory diagram of the same-magnification operation and the reduction operation in the image processing device shown. Figure 3 Yes Figure 1 FIG. 2 is a timing chart for explaining the reduction operation in the image processing device shown in FIG.

[0018] Figure 1 The image processing device shown in the figure includes a line buffer 1, an input circuit 2, an output circuit 3, and a controller. In the present embodiment, the line buffer 1 is a predetermined storage area secured in an SRAM (Static Random Access Memory), which is a 1-port (1 read / write port) SRAM, and in each cycle of a clock, only one of a read operation and a write operation can be performed on the line buffer 1.

[0019] The input circuit 2 writes pixel data to the line buffer 1. Specifically, for example, Figure 2 and Figure 3 As shown in the figure, the input circuit 2 has a throughput (read / write speed) that is multiple of the square of the inverse of the reduction ratio (for example, 4 times when the reduction ratio of the length and width is 1 / 2) relative to the throughput of the output circuit 3, and performs an intermittent culling (elimination) process on the pixel data of pixels other than the pixels to be sampled in an input information group (for example, an information group of 4×2 pixels) of a specified size distributed on a number of rows the inverse of the reduction ratio (for example, 2 rows when the reduction ratio of the length and width is 1 / 2), and writes the pixel data of the pixels to be sampled into the row buffer 1.

[0020] The output circuit 3 reads out the pixel data of the pixel to be sampled determined according to the reduction ratio from the line buffer 1. Specifically, for example, Figure 2 and Figure 3 As shown in FIG. 1 , when pixel data of an input block adjacent to an input block in the sub-scanning direction is written into the line buffer 1, the output circuit 3 reads pixel data of pixels to be sampled from the line buffer 1 and outputs them continuously.

[0021] Further, in this embodiment, for example, Figure 2 As shown in , the input circuit 2 writes the pixel data of the pixels to be sampled related to a predetermined number of input information groups (the same number of input information groups as the square of the inverse of the reduction ratio, for example, 4 information groups) into one word of the line buffer 1, and the output circuit 3 reads out the pixel data of the pixels to be sampled word by word and outputs it continuously. Figure 3When the input block (4×2 pixels) of the head portion of the 2nd to 3rd lines is input, the output block (1×2 pixels) of the 0th to 1st lines corresponding to the input lines 0th to 3rd is output.

[0022] In addition, the controller selectively instructs the input circuit 2 and the output circuit 3 to perform either the same-size operation or the reduced-size operation.

[0023] Regarding the input circuit 2, (a) when performing an equal-magnification operation, the pixel data of the input information group is not subjected to an interpolation process, but is directly written into the line buffer 1; (b) when performing a reduction operation, the pixel data of the input information group of a specified size distributed on the inverse number of rows of the reduction ratio are subjected to an interpolation process for the pixel data of pixels other than the pixels to be sampled, and the pixel data of the pixels to be sampled are written into the line buffer 1.

[0024] The output circuit 3 continuously reads out the pixel data of the pixels to be sampled in the equal-magnification operation and the reduction operation.

[0025] It should be noted that the controller may control the input circuit 2 and the output circuit 3 through hardware processing, or may control the input circuit 2 and the output circuit 3 through software processing.

[0026] Next, the operation of the above-mentioned image processing device will be described.

[0027] When a reduced image is required in the processing section of the subsequent stage, the controller specifies a reduction action to the input circuit 2 and the output circuit 3; when the line buffer 1 is used when a reduced image is not required in the processing section of the subsequent stage (such as line delay, or window reference image processing such as filtering processing without image reduction), the controller specifies an equal-magnification action to the input circuit 2 and the output circuit 3.

[0028] For example, in Figure 2 and Figure 3 In the case shown, the input circuit 2 reads out the image data of the input information group of 4×2 pixels from the input image information group of 128×128 pixels in sequence along the main scanning direction in each clock cycle, and when performing an equal-magnification operation, the image data of the input information group of 4×2 pixels is directly written into one word (oneword) of the line buffer 1, and when performing a reduction operation (reduction ratio 1 / 2), the image data of the input information group of 4×2 pixels of the 4-cycle portion is interleaved, and the image data of the 8-pixel portion of the sampling object is written into one word of the line buffer 1.

[0029] It should be noted that after the input information group at the end in the main scanning direction is read, the input information group at the beginning in the main scanning direction in two adjacent lines in the sub-scanning direction is read next.

[0030] In this embodiment, the pixel data of the input image information group is stored in a predetermined storage area of ​​the SRAM, and the pixel data is read from the storage area and written into the storage area of ​​the line buffer 1. Specifically, for example, Figure 3 As shown in FIG. 1 , regarding the input circuit, (a) in a predetermined first cycle (here, 4 cycles), pixel data is sequentially read from another storage area in the SRAM that is different from the storage area of ​​the line buffer 1 ( Figure 3 (a) in the first cycle, at a different time (different cycle) than when the pixel data is read out from the other storage area, the storage area ( Figure 3 The output circuit 3 reads pixel data from the storage area of ​​the line buffer 1 at a time different from the writing of pixel data to the other storage area and the reading of pixel data from the other storage area in the specified 2 cycles (integer multiples of the first cycle, here 8 cycles). Figure 3 in, 37th, 45th, … cycles).

[0031] On the other hand, in this case, the output circuit 3 reads out the pixel data (2 words) of the 8×2 pixel part from the line buffer 1 in synchronization with the input circuit 2 in every 8 cycles of the clock, and continuously outputs the output information group of 1×2 pixels in each cycle of the clock.

[0032] By doing so, for example, Figure 3 As shown in , pixel data can be continuously output even when a zoom-out operation is performed.

[0033] As described above, according to the above embodiment, the input circuit 2 performs an interval elimination process on the pixel data of the input information group of a specified size distributed on the number of rows which is the reciprocal of the reduction rate, with a throughput which is multiple of the square of the reciprocal of the reduction rate relative to the throughput of the output circuit 3, on the pixel data of pixels other than the pixels to be sampled determined according to the reduction rate, and writes the pixel data of the pixels to be sampled into the line buffer; when the pixel data of the input information group adjacent to the input information group in the sub-scanning direction is written into the line buffer 1, the output circuit 3 reads out the pixel data of the pixels to be sampled from the line buffer 1, and outputs it continuously.

[0034] In this way, image reduction can be performed by hardware processing without stopping line output.

[0035] In addition, various changes and modifications may be made to the above-mentioned embodiments without departing from the spirit and scope thereof and without diminishing the intended advantages thereof. Since these changes and modifications are obvious to those skilled in the art, these changes and modifications should also be included in the scope of the claims of this application.

[0036] For example, in the above-described embodiment, the reduction ratio is set to 1 / 2 as an example, but the reduction ratio may be another value (eg, 1 / 4, etc.).

[0037] In the above-described embodiment, the number of pixels of pixel data stored in one word of the line buffer 1 is not limited to the above-described number.

[0038] (Industrial Applicability)

[0039] The present invention can be applied to an image processing device that performs image reduction, for example.

Claims

1. An image processing device, characterized in that: have: row buffer, an input circuit that writes pixel data to the line buffer, and an output circuit for reading out pixel data of pixels to be sampled determined according to a reduction ratio among the pixel data from the line buffer; The input circuit performs thinning processing on the pixel data of the input information group of a specified size distributed on the number of lines equal to the reciprocal of the reduction rate at a throughput that is times the square of the reciprocal of the reduction rate relative to the throughput of the output circuit, and writes the pixel data of the pixels to be sampled into one word of the line buffer. When pixel data of an input block adjacent to the input block in the sub-scanning direction is written into the line buffer, the output circuit reads out pixel data of the pixels to be sampled from the line buffer word by word and outputs the pixel data continuously.

2. The image processing device according to claim 1, characterized in that The input circuit writes the pixel data of the pixels to be sampled related to the plurality of input information groups into one word of the line buffer. The output circuit reads out the pixel data of the pixels to be sampled one word at a time and outputs the data continuously.

3. The image processing device according to claim 1 or 2, characterized in that: The row buffer is a 1-port SRAM. The input circuit performs the following processing: (a) sequentially reading out the pixel data from another storage area different from the storage area of ​​the line buffer in a predetermined first cycle, and (b) writing the pixel data into the storage area of ​​the line buffer at a time different from when the pixel data is read out from the other storage area in the predetermined first cycle; The output circuit performs the following processing: In a prescribed second cycle which is an integral multiple of the first cycle, the pixel data is read out from the storage area of ​​the line buffer at a time different from when the pixel data is written to and read out from the other storage area.

4. The image processing device according to claim 1 or 2, characterized in that: The image processing device further includes a controller. The controller selectively designates any one of a same-size action and a reduced-size action to the input circuit and the output circuit; Regarding the input circuit, (a) when performing the equal-magnification operation, the pixel data of the input information group is not subjected to thinning processing, but is directly written into the line buffer; (b) when performing the reduction operation, the pixel data of the input information group of a specified size distributed on the reciprocal number of lines of the reduction ratio is thinned out, and the pixel data of the pixels other than the pixels to be sampled are written into the line buffer; The output circuit continuously reads out the pixel data of the pixels to be sampled during the equal-magnification operation and the reduction operation.