IMAGE PROCESSING APPARATUS
20230179731 · 2023-06-08
Inventors
Cpc classification
G06T3/4023
PHYSICS
International classification
H04N5/073
ELECTRICITY
G06T3/40
PHYSICS
Abstract
An input circuit writes image data into a line buffer. An output circuit reads pixel data of a pixel to be sampled among the pixel data, the pixel specified correspondingly to a shrinking ratio. Further, with a throughput obtained by multiplying a throughput of the output circuit by a square of an inverse number of the shrinking ratio, the input circuit skips another pixel than the pixel to be sampled among the pixel data of an input block of a predetermined size that extends over lines of an inverse number of the shrinking ratio, and writes the pixel data into the line buffer. Upon writing pixel data of an adjacent input block of the input block in a secondary scanning direction into the line buffer, the output circuit reads from the line buffer the pixel data of the pixel to be sampled and continuously outputs the pixel data.
Claims
1. An image processing apparatus, comprising: a line buffer; an input circuit configured to write image data into the line buffer; and an output circuit configured to read pixel data of a pixel to be sampled among the pixel data, the pixel specified correspondingly to a shrinking ratio; wherein with a throughput obtained by multiplying a throughput of the output circuit by a square of an inverse number of the shrinking ratio, the input circuit skips another pixel than the pixel to be sampled among the pixel data of an input block of a predetermined size that extends over lines of an inverse number of the shrinking ratio, and writes pixel data of the pixel to be sampled into the line buffer; and upon writing pixel data of an adjacent input block of the input block in a secondary scanning direction into the line buffer, the output circuit reads from the line buffer the pixel data of the pixel to be sampled and continuously outputs the pixel data.
2. The image processing apparatus according to claim 1, wherein the input circuit writes into one word of the line buffer image data of pixels to be sampled in predetermined plural input blocks; and the output circuit reads the image data of the pixels to be sampled word by word and continuously outputs the image data.
3. The image processing apparatus according to claim 1, wherein the line buffer is one-port SRAM; the input circuit (a) sequentially reads the pixel data from another memory area than the memory area of the line buffer with a predetermined first period, and (b) writes the pixel data into the memory area of the line buffer with the predetermined first period at a timing different from a timing of reading the pixel data from the another memory area; and the output circuit reads the pixel data from the memory area of the line buffer at a timing different from both the timing of reading the pixel data from the other memory area and a timing of writing the pixel data into the other memory area, with a predetermined second period that is an integral multiplication of the first period.
4. The image processing apparatus according to claim 1, further comprising a controller; wherein the controller selectively specifies one of an actual size operation and a shrinking operation to the input circuit and the output circuit; the input circuit (a) in the actual size operation, writes the pixel data of the input block into the line buffer without skipping a pixel, and (b) in the shrinking operation, skips another pixel than the pixel to be sampled among the pixel data of an input block of a predetermined size that extends over lines of an inverse number of the shrinking ratio, and writes pixel data of the pixel to be sampled into the line buffer; and the output circuit continuously reads the image data of the pixels to be sampled both in the actual size operation and in the shrinking operation.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0009]
[0010]
[0011]
[0012]
[0013]
DETAILED DESCRIPTION
[0014] Hereinafter, an embodiment according to an aspect of the present disclosure will be explained with reference to drawings.
[0015]
[0016] The image processing apparatus shown in
[0017] The input circuit 2 writes pixel data into the line buffer 1. Specifically, as shown in
[0018] The pixel to be sampled is specified correspondingly to a shrinking ratio, the output circuit 3 reads pixel data of the specified pixel among the pixel data. Specifically, as shown in
[0019] Further, in this embodiment, as shown in
[0020] Further, the controller 4 selectively specifies one of an actual size operation and a shrinking operation to the input circuit 2 and the output circuit 3. The input circuit 2 (a) in the actual size operation, writes the pixel data of the input block into the line buffer without skipping a pixel, and (b) in the shrinking operation, skips another pixel than the pixel to be sampled among the pixel data of an input block of a predetermined size that extends over lines of an inverse number of the shrinking ratio, and writes pixel data of the pixel to be sampled into the line buffer 1. The output circuit 3 continuously reads the image data of the pixels to be sampled both in the actual size operation and in the shrinking operation.
[0021] It should be noted that the controller 4 may perform a hardware process to control the input circuit 2 and the output circuit 3, or may perform a software process to control the input circuit 2 and the output circuit 3.
[0022] The following part explains a behavior of the aforementioned image processing apparatus.
[0023] The controller 4 specifies the shrinking operation to the input circuit 2 and the output circuit 3 if a shrunk image is required in a subsequent processing unit, and specifies the actual size operation to the input circuit 2 and the output circuit 3 if the line buffer 1 is used but a shrunk image is not required in a subsequent processing unit (e.g. line delay, a window-referring image process such as a filter process without image shrinking).
[0024] In a case shown in
[0025] Subsequently to a last input block in the primary scanning direction, a top input block in the primary scanning direction is read of two lines adjacent in the secondary scanning direction.
[0026] In this embodiment, pixel data of the input image block is stored in a predetermined memory area of the aforementioned SRAM, and is read from the memory area and written into the aforementioned memory area of the line buffer 1. Specifically, as shown in
[0027] In this case, every 8 cycles of the clock, the output circuit 3 reads the image data of 8 by 2 pixels (for two words) into the line buffer 1 in synchronization with the input circuit 2, and continuously outputs the output block of 1 by 2 pixels per cycle of the clock.
[0028] Consequently, the pixel data is continuously outputted even in the shrinking operation as shown in
[0029] As mentioned, in the aforementioned embodiment, with a throughput obtained by multiplying a throughput of the output circuit 3 by a square of an inverse number of the shrinking ratio, the input circuit 2 skips another pixel than the pixel to be sampled among the pixel data of an input block of a predetermined size that extends over lines of an inverse number of the shrinking ratio, and writes pixel data of the pixel to be sampled into the line buffer 1; and upon writing pixel data of an adjacent input block of the input block in a secondary scanning direction into the line buffer 1, the output circuit 3 reads from the line buffer 1 the pixel data of the pixel to be sampled and continuously outputs the pixel data.
[0030] Consequently, the image shrinking is performed as a hardware process without suspension of line output.
[0031] It should be understood that various changes and modifications to the embodiments described herein will be apparent to those skilled in the art. Such changes and modifications may be made without departing from the spirit and scope of the present subject matter and without diminishing its intended advantages. It is therefore intended that such changes and modifications be covered by the appended claims.
[0032] For example, in the aforementioned embodiment, the shrinking ratio is set as half. Alternatively, the shrinking ratio may be set as another value (i.e. quarter).
[0033] Further, in the aforementioned embodiment, the number of pixels of pixel data stored in one word of the line buffer is not limited to that as mentioned.