Data conversion device, data conversion method, and program

The data conversion device employs quadratic interpolation with unequal grid spacing to reduce circuit scale and cost in high-resolution video applications, achieving accurate data conversion efficiently.

JP7547046B2Active Publication Date: 2024-09-09CANON KK
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
JP2019233221
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2019-12-24
Publication Date
2024-09-09
Estimated Expiration
2039-12-24

AI Technical Summary

Technical Problem

Existing data conversion methods using high-order functions require large circuit scales and high costs due to the need for complex calculations and extensive memory, particularly in high-resolution video applications.

Method used

A data conversion device that performs quadratic interpolation with unequal grid spacing, reducing table data requirements and simplifying address calculations by generating reference data based on input data to maintain accuracy while minimizing circuit scale.

Benefits of technology

Enables high-accuracy data conversion on a smaller circuit scale, reducing memory and computational demands, suitable for high-resolution video processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007547046000006
    Figure 0007547046000006
  • Figure 0007547046000005
    Figure 0007547046000005
  • Figure 0007547046000004
    Figure 0007547046000004
Patent Text Reader

Abstract

To provide data conversion by a higher-order function on a smaller circuit scale.SOLUTION: The present disclosure provides a data conversion device for obtaining output data from input data by secondary interpolation processing, the data conversion device provided with determination means for determining an interpolation range based on the input data, generation means for generating reference data of a first predetermined number, using table data having a range of a first grid spacing and a range of a second grid spacing different from the first grid spacing, which defines a relationship between the input data and the output data, and arithmetic means for obtaining the output data corresponding to the input data by secondary interpolation processing based on the interpolation range and reference data of the first predetermined number. The generation means is characterized in that data of a second predetermined number corresponding to the first predetermined number is acquired from the table data, based on the interpolation range, and interpolation processing is performed between at least some of the second predetermined number of data to generate the first predetermined number of reference data.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a data conversion device, a data conversion method, and a program for converting input data. [Background technology]

[0002] Tone conversion functions that correct and convert the tone of an image and geometric conversion functions that correct and transform the shape of an image can be approximated by global functions or local functions with the coordinate position of the image as a variable, and many of them are expressed as rational polynomials such as polynomials and projective transformation. However, even if they can be approximated by local functions, it is difficult to properly define the application area of ​​the local function and switch the local function at the area boundary. Therefore, in data processing that corrects or transforms an image, it is common to store the local function values ​​evaluated at lattice points at a certain pixel interval in an LUT (lookup table), and to interpolate the function values ​​of the lattice points read from the LUT and use them as correction values ​​or transformation values.

[0003] Since the data stored in the LUT does not need to be calculated in real time, it is generated by calculation with as high precision as possible using high-order polynomials and various functions that require complex calculations. On the other hand, since the interpolation process of the data read from the LUT needs to be performed in real time, linear or cubic interpolation is generally performed as described in Patent Document 1. Patent Document 2 also discloses a technology related to quadratic interpolation, which has intermediate performance and calculation scale between the linear and cubic interpolation described above.

[0004] However, if you try to use a high-order polynomial to perform interpolation, you need to perform multiple multiplications and additions, and you need to calculate the coefficients of the polynomial in real time, so the circuit configuration becomes large. For example, in video equipment, the pixel rate and the operating frequency of the arithmetic circuit are almost the same, so to perform calculations for each pixel, you need as many multipliers as there are multiplications in the arithmetic formula. In particular, in recent years, high-resolution video such as 8K x 4K has appeared, and in a situation where the pixel rate is higher than the operating frequency of the arithmetic circuit, it is necessary to drive the arithmetic circuit in parallel, which further increases the circuit scale.

[0005] In order to realize highly accurate data conversion using a highly nonlinear function, in other words a high-order function, by using table data and interpolation processing, it is necessary to narrow the grid interval of the table data or to use high-order interpolation processing. However, the narrower the grid interval, the larger the memory capacity, and the higher the order of the interpolation processing, the larger the scale of calculation. Therefore, there is a problem that the circuit scale to increase the interpolation accuracy becomes larger, resulting in higher costs.

[0006] Patent Document 3 discloses a technique for quadratic interpolation with non-uniform grid spacing that enables data processing using high-order functions to be realized with high accuracy and a small amount of calculation, thereby enabling miniaturization of circuit scale and reduction in cost. [Prior art documents] [Patent documents]

[0007] [Patent Document 1] JP 2011-81477 A [Patent Document 2] Special Publication No. 9-511079 [Patent Document 3] Patent Application No. 2019-026495 Summary of the Invention [Problem to be solved by the invention]

[0008] In Patent Document 3, two points of table data with wide grid intervals are generated from two points of table data with narrow grid intervals, thereby reducing the amount of table data with non-uniform grid intervals and realizing a compact circuit scale. On the other hand, in Patent Document 3, the amount of table data required for the interpolation process is not constant, and the address calculation for referencing the table data is complicated, so there is a possibility that the circuit scale will increase.

[0009] The present invention has been made in consideration of the above problems, and has an object to provide data conversion using high-order functions with a smaller circuit scale. [Means for solving the problem]

[0010] A data conversion device that obtains output data from input data by secondary interpolation processing, A determination means for determining an interpolation range based on the input data; a generating means for generating a first predetermined number of reference data by using table data that defines a relationship between input data and output data and has a first lattice interval range and a second lattice interval range different from the first lattice interval; a calculation means for obtaining the output data corresponding to the input data by a secondary interpolation process based on the interpolation range and the first predetermined number of reference data; The generating means includes: The method is characterized in that a second predetermined number of data corresponding to the first predetermined number is obtained from the table data based on the interpolation range, and an interpolation process is performed between at least a portion of the second predetermined number of data to generate the first predetermined number of reference data. Effect of the Invention

[0011] According to the present invention, data transformation using a high-order function can be provided with a smaller circuit scale. [Brief description of the drawings]

[0012] [Figure 1] FIG. 1 illustrates an example of a configuration of a data processing device according to an embodiment. [Diagram 2] FIG. 13 is an explanatory diagram illustrating an overview of secondary interpolation processing. [Diagram 3] 11A and 11B are explanatory diagrams of secondary interpolation processing in the embodiment. [Figure 4] FIG. 4 is a diagram illustrating an example of the configuration of a quadratic function coefficient calculation unit according to the embodiment. [Diagram 5] FIG. 4 illustrates an example of the configuration of a reference data update unit according to the embodiment; [Figure 6] 1 is an explanatory diagram illustrating an overview of secondary interpolation processing according to an embodiment. [Figure 7]FIG. 13 is a diagram showing lattice intervals and input data in the third embodiment. [Figure 8] FIG. 13 is a diagram showing the relationship between an interpolation range and reference data in the third embodiment. [Figure 9] FIG. 13 is a diagram illustrating an example of the configuration of an interpolation range determination unit in the third embodiment. [Figure 10] 4 is a flowchart illustrating a process according to an embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0013] Hereinafter, the present invention will be described in detail based on preferred embodiments thereof with reference to the accompanying drawings. Note that the configurations shown in the following embodiments are merely examples, and the present invention is not limited to the configurations shown in the drawings.

[0014] Figures 1(A) and 1(B) are diagrams showing an example of the configuration of a data processing device according to this embodiment. Figure 1(A) is a functional block diagram showing each functional unit corresponding to each process performed in data conversion device 100 according to this embodiment. Figure 1(B) is a diagram showing an example of the hardware configuration of a data processing device 110 that realizes data conversion device 100 shown in Figure 1(A).

[0015] 1B, a data processing device 110 of this embodiment has a CPU 111, a RAM 112, a ROM 113, a communication I / F (interface) 114, a recording I / F 115, a display I / F 116, etc., and is assumed to be a personal computer or the like. The data processing device 110 is also assumed to be connected to a recording medium 120 such as a hard disk or a semiconductor memory via the recording I / F 115, and to a display device 121 such as a liquid crystal display via the display I / F 116. The data processing device 110 is also connectable to, for example, an imaging device 130 and various NWs (networks) 131 via the communication I / F 114.

[0016] The ROM 113 holds various programs including the data processing program according to this embodiment. The programs in the ROM 113 are loaded into the RAM 112 and executed by the CPU 111. The RAM 112 is used as a working area for the CPU 111 in addition to loading the programs, and temporarily stores input image data, image data in the middle of processing, etc.

[0017] The communication I / F 114 communicates with, for example, the imaging device 130 or the network 131. For example, when the communication I / F 114 receives image data sent from the imaging device 130 or the network 131, the image data is temporarily stored in the RAM 112 under the control of the CPU 111. Then, the image data is subjected to various image processes and the like by the CPU 111 as necessary, and then is displayed on the screen of the display device 121 via the display I / F 116 or recorded on the recording medium 120 via the recording I / F 115.

[0018] The CPU 111 performs various processes and controls in the data processing device 110, and also executes a data processing program according to this embodiment to perform various image processes including a data conversion process to be described later. Note that in this embodiment, an example is given in which the process of each functional unit of the data conversion device 100 in Fig. 1(A) is realized by software processing in which the CPU 111 executes a program, but of course the process of each functional unit may be realized by a hardware configuration such as a corresponding circuit.

[0019] <Outline of secondary interpolation processing> Below, with reference to Fig. 1(A), Fig. 2 to Fig. 4, and Fig. 10, the functional configuration of data conversion device 100 and the theory of secondary interpolation processing that is the basis of data interpolation processing performed in data conversion device 100 will be described. Fig. 2 is a diagram for explaining the concept of secondary interpolation processing, and Fig. 3 is a diagram for explaining the concept of non-uniform grid interval secondary interpolation processing used in the present invention. Fig. 4 is a diagram for explaining the quadratic function coefficient calculation unit used in the present invention.

[0020] 10 is a flowchart showing the processing of data conversion device 100. First, the contents of the processing will be explained in order using the flowchart of FIG.

[0021] In step S1001, the data conversion device 100 judges whether or not it has received input data 10. If it has received input data 10, in step S1002, the interpolation range determination unit 102 calculates and outputs the reference address 12 and the interpolation distance 11 based on the input data 10. In step S1003, the quadratic function coefficient calculation unit 103 calculates and outputs the quadratic function coefficient 14 based on the reference address 12. In step S1004, the quadratic interpolation calculation unit 104 performs quadratic interpolation processing based on the quadratic function coefficient 14 and the interpolation distance 11, and outputs the output data 15. If it has not received input data 10 in step S1001, the interpolation range determination unit 102, the quadratic function coefficient calculation unit 103, and the quadratic interpolation calculation unit 104 do not operate. Next, the operation of each component will be described in detail.

[0022] In order to execute data interpolation processing, the data conversion device 100 determines, in an interpolation range determination unit 102, interpolation range information required for calculating quadratic function coefficients 14 according to input data 10, and outputs the determined information as a reference address 12. At the same time, it outputs an interpolation distance 11 used in calculation in a quadratic interpolation calculation unit 104, which will be described later. Then, a quadratic function coefficient calculation unit 103 calculates the quadratic function coefficients 14.

[0023] The generation of the quadratic function coefficients 14 in the quadratic function coefficient calculation unit 103 includes the generation of new reference data based on the reference data recorded in the LUT. The reference data is discrete data at lattice points at a certain pixel interval. The generation of reference data will be described later. The input data 10 is image data, data such as the brightness and coordinates of the image, etc. The quadratic function coefficients 14 are data determined by a tone conversion function that corrects and converts the tone of the image, and a geometric conversion function that corrects and transforms the shape of the image. The data used for the coefficient data calculation among the newly generated reference data is called updated reference data 21.

[0024] Here, only a part of the updated reference data 21 is recorded as LUT data in the reference data storage unit 101, and the LUT data is supplied to the reference data update unit 201 as stored reference data 13. The reference data update unit 201 then generates the missing reference data by performing a calculation based on the updated reference data 21 of the stored reference data 13 using a method to be described later.

[0025] Hereinafter, the interval between the discrete grid points of the updated reference data 21 is referred to as the grid interval DIS. Details of the grid interval DIS will be described later, but for example, the narrower the grid interval, the higher the accuracy of data conversion in the interpolation process, but the larger the amount of table data that must be stored. On the other hand, the wider the grid interval, the lower the accuracy of data conversion, but the smaller the amount of table data that must be stored.

[0026] Fig. 2 is a conceptual diagram of the secondary interpolation process, showing an example in which the grid interval DIS is constant. In Fig. 2, Y1, Y2, Y3, and Y4 in the figure are discrete data of the updated reference data 21, and the grid interval DIS, which is the interval between these Y1, Y2, Y3, and Y4, is a constant interval. In addition, the interpolation ranges A and B are the ranges from the midpoint between adjacent reference data to the next midpoint, so the widths of the interpolation ranges A and B are the same as the grid interval DIS.

[0027] Here, for example, when the input data 10 is XI, the nearest update reference data 21 corresponding to this data XI is Y2, and the nearest update reference data 21 around Y2 are Y1 and Y3. The interpolation range is determined by the interpolation range determination unit 102, and in the example of Fig. 2, the range from the midpoint M1 between Y1 and Y2 to the midpoint M2 between Y2 and Y3 is calculated as the interpolation range A. The three update reference data 21 used in determining this interpolation range A are Y(-1)=Y1, Y(0)=Y2, and Y(1)=Y3, respectively.

[0028] In addition, the secondary interpolation calculation unit 104 calculates a line segment, which will be described later, obtains a secondary approximation curve based on the line segment and midpoints M1 and M2, and performs an interpolation process using the secondary approximation curve to generate interpolated output data YO as output data 15.

[0029] The theoretical formula for the interpolation process executed by the secondary interpolation calculation unit 104 is expressed by formula (1). Note that x in formula (1) is the relative position of the input data 10 within the interpolation range normalized by the grid interval DIS, and takes a value between 0 and 1. Also, Y in formula (1) is the output data 15. Y = (Ca x + Cb) x + Cc Ca = (Y(-1)-2 Y(0)+Y(1)) / 2 Cb = Y(0) - Y(-1) Cc=(Y(-1)+Y(0)) / 2 Equation (1) The quadratic interpolation calculation unit 104 performs an interpolation process based on the quadratic approximation curve expressed by this formula (1). Here, the quadratic function coefficients 14 described above correspond to Ca, Cb, and Cc in formula (1), and the interpolation distance 11 corresponds to x in formula (1).

[0030] In the interpolation range A in Fig. 2, the quadratic approximation curve passes through the midpoint M1 between Y1 and Y2 and the midpoint M2 between Y2 and Y3, and is tangent to the line segment (Y1-Y2) connecting Y1 and Y2 and the line segment (Y2-Y3) connecting Y2 and Y3. The quadratic approximation curve in the interpolation range B in Fig. 2 is obtained in the same manner as in the case of the interpolation range A described above. The quadratic approximation curve in the interpolation range B passes through the midpoint M2 between Y2 and Y3 and the midpoint M3 between Y3 and Y4, and is tangent to the line segment (Y2-Y3) connecting Y2 and Y3 and the line segment (Y3-Y4) connecting Y3 and Y4.

[0031] That is, the midpoint M2 is the same point and the line segment (Y2-Y3) is the same line segment at the boundary between the adjacent interpolation ranges A and B. In other words, since the midpoint M2 and the line segment (Y2-Y3) are both commonly used at the boundary between the adjacent interpolation ranges A and B, the quadratic approximation curves at the boundary between these two interpolation ranges are always smoothly connected.

[0032] However, the quadratic approximation curve does not pass through the reference data, but the conversion characteristics from input data to output data are determined by a series of reference data stored as table data. Therefore, data conversion device 100 can realize data interpolation suitable for gamma conversion or the like that requires realizing predetermined conversion characteristics.

[0033] <Outline of non-uniform grid spacing quadratic interpolation processing> The present invention is directed to a case where the grid interval in the table data is a plurality of grid intervals, that is, unequal grid intervals, and the grid interval to be applied changes depending on the input data. Such unequal grid intervals are suitable for, for example, a tone conversion function with strong nonlinearity. For example, by applying a narrow grid interval in a low tone region with strong nonlinearity and a wide grid interval in a high tone region with strong linearity, it is possible to reduce the amount of table data that must be stored while maintaining high tone conversion accuracy over the entire range from low to high tones. However, in this case, the grid intervals and the interpolation intervals may differ at the boundary between adjacent interpolation ranges, so measures are required to smoothly connect the quadratic approximation curves of both ranges. In the unequal grid interval quadratic interpolation adopted by the present invention, when the grid intervals and the interpolation intervals are different at the boundary between adjacent interpolation ranges, it is possible to smoothly connect the quadratic approximation curves of both ranges.

[0034] <Reference data generation> Since only a part of the updated reference data 21 is recorded as table data in the reference data storage unit 101, the missing reference data is generated. Specifically, due to the characteristics of the quadratic interpolation adopted in the present invention, it is necessary to smoothly connect the quadratic approximation curves at the boundary between different interpolation ranges, that is, at the midpoint M2 in Figure 3. Therefore, two data Y1' and Y2' of the reference data that satisfy the following formulas (2) and (3) are generated. X2+X3=X1'+X2' Y2+Y3=Y1'+Y2' Equation (2) The first equation in equation (2) means that the midpoints of the input data coincide, and the second equation means that the midpoints of the output data coincide. Therefore, by satisfying equation (2), the coordinates of the midpoint M2, which is the boundary between the interpolation range A and the interpolation range B, coincide, so that the quadratic approximation curve is continuously and smoothly connected even when it spans both interpolation ranges. (Y3-Y2) / (X3-X2)=(Y2'-Y1') / (X2'-X1') X3-X2=DIS_A X2'-X1'=DIS_B Formula (3) Equation (3) means that the slope of the line segment connecting adjacent reference data is the same. Therefore, by satisfying equation (3), the slope of the quadratic approximation curve at the coordinate of midpoint M2, which is the boundary between interpolation range A and interpolation range B, can be made to match.

[0035] 3 is a diagram for explaining the concept of processing in the reference data update unit 201 of the present invention. Of the reference data shown in FIG. 3, data Y1, Y2, Y3 and Data Y3' represented by △ in the figure is held as table data in the reference data storage unit 101. On the other hand, data Y1' and Y2' represented by ◯ in the figure are generated by the reference data update unit 201 using the calculation formula (4) derived from formulas (2) and (3). Y1'=(1 / 2)·[(Y2+Y3)+(DIS_B / DIS_A)·(Y3-Y2)] Y2'=(1 / 2)·[(Y2+Y3)-(DIS_B / DIS_A)·(Y3-Y2)] Formula (4) In the present invention, by satisfying formula (4), it is possible to make the gradients of the quadratic approximation curves at the coordinates of the midpoint M2 that is the boundary between the interpolation range A and the interpolation range B coincide with each other.

[0036] In this manner, the present invention makes it possible to reduce table data.

[0037] In the description of the present invention, each lattice interval is preferably a power of 2 in order to reduce the computation load when selecting table data, when calculating the relative position x, and in the relational expression of formula (4), but is not limited to this. Furthermore, the lattice interval DIS_B shown in FIG. 3 is illustrated as being twice as large as DIS_A, but the relationship between the lattice intervals is not limited to this, and may be, for example, 3 times, 4 times, 0.5 times, 0.25 times, or the like, as long as it is a positive real number multiple. Furthermore, in formula (4), an example is shown in which Y1' and Y2' are generated from Y2 and Y3, but this is not limited to this, and Y2 and Y3 may be generated from Y1' and Y2'.

[0038] In this case, the calculation formula obtained by solving for Y2 and Y3 based on equations (2) and (3) can be used.

[0039] (First embodiment) The present invention is characterized in that the processing performed by the reference data update unit 201 is easily performed, thereby achieving a reduction in the circuit scale. Fig. 5(A) shows a specific configuration of the reference data update unit 201 in the first embodiment.

[0040] An address control unit 301 generates a first reference address 31 for referencing the stored reference data 13 based on the information of the reference address 12. Specifically, the first reference address 31 in the first embodiment is lattice interval information of the interpolation range corresponding to the input data 10. Similarly, a second reference address 32 is generated, and specifically, the second reference address 32 in the first embodiment is information on the ordinal number of the interpolation range among the lattice intervals indicated by the first reference address 31.

[0041] The reference data reading unit 302 acquires, according to the first reference address 31, all the data of the corresponding lattice interval and two pieces of data of different lattice intervals adjacent to the data stored in the reference data storage unit 101 as stored reference data 13. The reference data reading unit 302 outputs the data as second acquired reference data 34 and first acquired reference data 33, respectively. A specific description will be given with reference to FIG. 6. FIG. 6 is a diagram for explaining the concept of the processing in the reference data update unit 201 of this embodiment, and the contents are equivalent to those described for FIG. 3. FIG. 6 illustrates a case in which there are four interpolation ranges with the same lattice interval, in contrast to FIG. 3. The interpolation ranges B1, B2, B3, and B4 corresponding to the lattice interval DIS_B in FIG. 6 correspond to these. There are also four interpolation ranges with a lattice interval corresponding to DIS_A, but only one of them, the interpolation range A4, is illustrated. In this embodiment, the stored reference data 13 includes six pieces of data, namely, Y3', Y4', Y5', Y6' (second acquired reference data 34), and Y5 and Y6 (first acquired reference data 33) shown in FIG.

[0042] The extrapolation processing unit 303 performs processing based on formula (4), i.e., extrapolation processing, from two pieces of first acquired reference data 33, and outputs two pieces of extrapolation processing data 35, Y1' and Y2'. Note that since each piece of reference data described in formula (4) corresponds to Fig. 3, it is necessary to partially modify and reinterpret it to correspond to Fig. 6. Specifically, Y2 in formula (4) corresponds to Y5 in Fig. 6, and Y3 in formula (4) corresponds to Y6 in Fig. 6.

[0043] The data selection unit 304 selects three consecutive data from the extrapolation processing data 35 and the second acquired reference data 34, that is, six data of Y1', Y2', Y3', Y4', Y5', and Y6' in FIG. 6 based on the second reference address 32, and outputs them as the updated reference data 21. Since the second reference address 32 is specifically information indicating which of the interpolation ranges B1, B2, B3, and B4 in FIG. 6 it is in, when the second reference address 32 indicates the interpolation range B1, the updated reference data 21 is Y1', Y2', and Y3'. Similarly, when the second reference address 32 indicates the interpolation range B2, the updated reference data 21 is Y2', Y3', and Y4', when the second reference address 32 indicates the interpolation range B3, the updated reference data 21 is Y3', Y4', and Y5', and when the second reference address 32 indicates the interpolation range B4, the updated reference data 21 is Y4', Y5', and Y6'.

[0044] The coefficient data calculation unit 204 calculates and outputs the quadratic function coefficients 14 (corresponding to Ca, Cb, and Cc) from the updated reference data 21 (corresponding to Y(-1), Y(0), and Y(1)) based on the equation (1).

[0045] In the first embodiment, the processing of the reference data update unit 201 is executed as described above. In this processing, the number of stored reference data 13 acquired from the reference data storage unit 101 is always six, which is constant. In addition, the subsequent extrapolation processing and data selection processing are also simple processing in which no branching of processing occurs. In addition, since it is a simple processing, it is expected that the processing time will be shortened, and timing can be easily matched when mounting on an ASIC or FPGA, and the number of cycles required for processing, that is, the number of flip-flop stages required for holding and propagating various data, can be reduced. Therefore, the reference data update unit 201 can be realized with a small circuit scale.

[0046] Second embodiment The second embodiment differs from the first embodiment in part of the configuration and processing content of the reference data update unit 201. The following describes the parts that differ from the first embodiment.

[0047] FIG. 5B shows a specific configuration of the reference data update unit 201 in the second embodiment.

[0048] The address control unit 301 generates a first reference address 31 for referencing the stored reference data 13 based on the information of the reference address 12. Specifically, the first reference address 31 in the first embodiment is information on the number of the interpolation range (referred to as a coarse interpolation range) when counted in units of twice the lattice interval, in addition to lattice interval information of the interpolation range corresponding to the input data 10. Similarly, a second reference address 32 is generated. Specifically, the second reference address 32 in the second embodiment is information on whether the interpolation range is an even-numbered or odd-numbered lattice interval indicated in the first reference address 31.

[0049] The reference data reading unit 302 acquires, from among the data stored in the reference data storage unit 101 according to the first reference address 31, two pieces of data corresponding to the corresponding grid interval and the coarse interpolation range, and two pieces of data adjacent to the data, as stored reference data 13. It also outputs them as second acquired reference data 34 and first acquired reference data 33, respectively. In this embodiment, when the coarse interpolation range is the region of the interpolation range B1 and the interpolation range B2, the stored reference data 13 is a total of four pieces of data, namely, Y3', Y4' (second acquired reference data 34), and Y5, Y6 (first acquired reference data 33) shown in FIG. 6. Similarly, when the coarse interpolation range is the region of the interpolation range B3 and the interpolation range B4, the stored reference data 13 is a total of four pieces of data, namely, Y5', Y6' (second acquired reference data 34), and Y3', Y4' (first acquired reference data 33) shown in FIG. 6.

[0050] The extrapolation processing unit 303 performs processing based on the formula (4), that is, extrapolation processing, from the two pieces of first acquired reference data 33, and outputs two pieces of extrapolation processing data 35, Y1' and Y2'. Note that each reference data described in the formula (4) corresponds to FIG. 3, so some correction and reinterpretation are required. Specifically, the data corresponding to Y2 and Y3 in the formula (4) are data of the first acquired reference data 33, and as described above, in this embodiment, the first acquired reference data 33 depends on the coarse interpolation range. Since the processing of the extrapolation processing unit 303 generates data at the boundary between different lattice intervals, the extrapolation processing data 35 will obtain the desired result only when the coarse interpolation range is the region of the interpolation range B1 and the interpolation range B2.

[0051] The first data selection unit 305 outputs extrapolation processing data 35 as selected data 36 when the coarse interpolation range is between interpolation range B1 and interpolation range B2 based on the first reference address 31, and outputs the first acquired reference data 33 as selected data 36 otherwise.

[0052] The second data selection unit 306 inputs the selected data 36 and the second acquired reference data 34, specifically, in FIG. 6, when the rough interpolation range is the region of the interpolation range B1 and the interpolation range B2, Y1', Y2', Y3', and Y4' are input. In other cases, Y3', Y4', Y5', and Y6' are input. In this way, by the above-mentioned processing of the first data selection unit 305, the second data selection unit 306 inputs four consecutive data. From these four data, the second data selection unit 306 selects the first three of the four data when the second reference address 32 indicates an even number, and selects the last three of the four data when the second reference address 32 indicates an odd number, and outputs them as the updated reference data 21.

[0053] The coefficient data calculation unit 204 calculates and outputs the quadratic function coefficients 14 (corresponding to Ca, Cb, and Cc) from the updated reference data 21 (corresponding to Y(-1), Y(0), and Y(1)) based on the equation (1).

[0054] Up to this point, the reference data reading unit 302 has been described as acquiring the first acquired reference data 33 and the second acquired reference data 34 by combining two interpolation ranges into a coarse interpolation range, but the acquisition method is not limited to this. For example, the reference data reading unit 302 outputs Y5 and Y6 in FIG. 6 as the first acquired reference data 33 in the interpolation ranges B1 and B2, and outputs Y3' and Y4' as the second acquired reference data 34. In the interpolation range B3, it outputs Y6 and Y3' as the first acquired reference data 33, and outputs Y4' and Y5' as the second acquired reference data 34. In the subsequent interpolation ranges, it may be possible to acquire the data by shifting the acquired grid points one by one. In this case, the first data selection unit 305 operates in the same manner as described above. Then, the second data selection unit 306 selects the first three of the four data input in the interpolation range B1, and the last three of the four data in the interpolation ranges B2 and after, and outputs them as the updated reference data 21. This method can also obtain the same results as described above.

[0055] In the second embodiment, the processing of the reference data update unit 201 is executed as described above. In the first embodiment, since it is necessary to read all the reference data for one lattice interval, in some cases the amount of data read redundantly becomes large, and there is a possibility that the circuit scale of the reading part becomes larger than the simplification of other processing. Although the processing in the second embodiment is more complicated than in the first embodiment, the number of stored reference data 13 obtained from the reference data storage unit 101 is always four and can be kept constant, so that it is effective when one lattice interval has a lot of data.

[0056] Third embodiment In the third embodiment, a specific example of how the reference data storage unit 101 holds table data will be given, and a suitable configuration example of the interpolation range determination unit 102 corresponding to the table data will be given.

[0057] The table data in this embodiment conforms to the contents of FIG. 6 already described. That is, this is a case where there are four table data with the same lattice interval (for example, Y3', Y4', Y5', and Y6' in FIG. 6) and four interpolation ranges (for example, B1, B2, B3, and B4 in FIG. 6). In this embodiment, the lattice interval starts from 1 and increases by a power of 2. This means that the ratio of DIS_A and DIS_B in FIG. 6 is 1:2. Table data with lattice intervals of 1 to 4 in this example is as shown in FIG. 7. Here, data with addresses 0 and 1 and a lattice interval of 0.5 is necessary to generate data with a lattice interval of 1 by extrapolation processing using these two points. For example, this corresponds to Y1' and Y2' in FIG. 6, and if it is aligned with FIG. 7, it corresponds to Y1_1 and Y1_2 (data to be generated that does not appear in the figure). The input coordinates in FIG. 7 correspond to the horizontal axis in FIG. 6, and the output values ​​in FIG. 7 correspond to the vertical axis in FIG. 6.

[0058] The reference data storage unit 101 actually stores only the output value sequence of Figure 7, and for a first reference address provided by the reference data reading unit 302, six data are returned from that address to the reference data reading unit 302 in the first embodiment, and four data are returned in the second embodiment.

[0059] Fig. 8 shows specific examples of the grid interval, the input data range, the data read from the table data, that is, the stored reference data 13, and the data used for interpolation, that is, the updated reference data 21, in each interpolation range. Fig. 8(A) corresponds to the first embodiment, and Fig. 8(B) corresponds to the second embodiment.

[0060] The addresses for acquiring the stored reference data 13 and the updated reference data as shown in FIG. 8A are the first reference address 31 and the second reference address 32 calculated by the interpolation range determination unit 102 as already described.

[0061] Each address can be calculated simply by the following procedure. Specifically, a fixed value is first added to the input value to obtain the corrected input data. This added value ADD_VAL is determined by equation (5) based on the starting lattice interval DIS_INI, the number of data points NUM at each lattice interval, and the position ADD_INI where the input data range is 0. ADD_INI is a number indicating at which position among NUM lattice points with the same interval the input data range containing 0 is located, and is expressed as an integer between 0 and NUM-1. ADD_VAL = DIS_INI * NUM + ADD_INI Formula (5) Note that DIS_INI and NUM are limited to powers of 2, and in this embodiment, they are 1 and 4, respectively, and since ADD_INI=0, ADD_VAL is 4. For this correction input value, address information is extracted using the concept shown in FIG. 9, and the first reference address and the second reference address are calculated. First, the most significant bit of the correction input data is searched for. Specifically, it can be obtained based on the shift amount when the correction input data is shifted left until it becomes 0, or the shift amount when the most significant bit is shifted right until it becomes 1. FIG. 9 shows a case where the 4th bit of the correction input data is the most significant digit, and the most significant digit information L=4. The 4th bit of the correction input data becomes the most significant digit when the input data 10 is 12 to 27, and it can be seen that the lattice interval covers the range of 4 as shown in FIG. 8. Although the explanation is omitted, when the input data 10 is 0 to 3, that is, when the lattice interval is 1, L=3, and when the input data 10 is 4 to 11, that is, when the lattice interval is 2, L=4 can be obtained. Similarly, although not shown, for input data 10 after 28, information corresponding to each lattice interval can be obtained as most significant digit information L. The relationship between the lattice interval DIS and the most significant digit information L is given by equation (6). DIS=2^(L-2) Equation (6)

[0062] Therefore, in the example of the first embodiment, the first reference address 31 is obtained by equation (7). First reference address = 4 × (L-2) Equation (7)

[0063] The next most significant digit after the most significant digit information L, the 3rd and 2nd bits in the example shown in FIG. 9, are acquired as the most significant digit data M1M2. These 2-bit information become the second reference address as is. Furthermore, the remaining data, the 1st and 0th bit data NN in the example shown in FIG. 9, become the interpolation distance. Note that the bit width of the interpolation distance changes depending on the value of the most significant digit information L.

[0064] Similarly, in the second embodiment, the address calculation method is slightly different, and the first reference address is given by equation (8). First reference address = 4 × (L-2) + M1 Equation (8)

[0065] In the second embodiment, the first reference address 31 required by the first data selection unit 305 is actually selected only by M1. The second reference address is M2, and the interpolation distance is data NN, similar to the first embodiment.

[0066] As described above, the calculation of the first reference address and the second reference address in the interpolation range determination unit 102 mainly requires addition processing, bit shifting, and data extraction from specific bits, and can be realized with a small circuit scale.

[0067] (Other embodiments) The present invention can also be realized by supplying a program that realizes one or more functions of each of the above-mentioned embodiments to a system or device via a network or a storage medium, and having one or more processors in a computer of the system or device read and execute the program. It may also be realized by a circuit (eg, ASIC) that realizes one or more functions.

[0068] The above-described embodiments are merely illustrative examples of how the present invention can be implemented, and the technical scope of the present invention should not be construed as being limited thereby.

[0069] That is, the present invention can be embodied in various forms without departing from its technical concept or main features. For example, a part of the quadratic function coefficient calculation unit operates in response to a calculation start signal given from a higher-level control means, holds the calculation results, and only refers to the held data while an image is being input, thereby reducing power consumption. [Explanation of symbols]

[0070] 10 Input Data 11 Interpolation Distance 12 Reference address 13 Stored reference data 14 Quadratic Function Coefficients 15 Output Data 100 Data conversion device 101 Reference Data Storage Unit 102 Interpolation range determination unit 103 Quadratic function coefficient calculation section 104 Secondary Interpolation Calculation Unit

Claims

1. A data conversion device that obtains output data from input data by secondary interpolation processing, A determination means for determining an interpolation range based on the input data; The relationship between the input data and the output data is defined, and the first lattice interval range and the first A first predetermined grid interval is calculated using table data having a grid interval and a second grid interval range different from the grid interval. A generating means for generating a number of reference data; A secondary interpolation process based on the interpolation range and the first predetermined number of reference data is performed. A calculation means for obtaining the output data corresponding to the data; The generating means includes: A second predetermined number of data corresponding to the first predetermined number is added to the table based on the interpolation range. and performing an interpolation process between at least a portion of the second predetermined number of data. and generating the first predetermined number of reference data.

2. 2. The data conversion apparatus according to claim 1, wherein the first predetermined number is three.

3. the second predetermined number is four; The generating means determines whether the interpolation range is a range of the first grid interval and a range of the second grid interval. When the range of the first lattice interval is crossed, two lattice intervals are included in the range of the second lattice interval.

2. The data conversion device according to claim 1, characterized in that two pieces of data are obtained, or the second predetermined number is greater than the number of reference data in the second lattice spacing range, and when the interpolation range straddles the first lattice spacing range and the second lattice spacing range, the generation means obtains a third predetermined number from the first lattice spacing range and all of the reference data from the second lattice spacing range.

4. The determining means determines an address indicating the interpolation range in accordance with the input data. The number of lattice points in the interval of the child points, the lattice point interval, and the starting coordinates of the lattice points are calculated and added.

2. The sum of the input data is calculated from the most significant bit position. Item 4. The data conversion device according to any one of items 3 to 4.

5. The determining means determines the number of lattice points in a section with the same lattice point interval to be 2^M and the lattice point interval to be 2^ N, when the position including 0 in the input data range is A, (2^M) * (2 5. The data conversion method according to claim 4, further comprising the step of adding an additional value D represented by (N)+A. Device.

6. The generating means generates all the signals when a calculation start signal is input from a higher-level control means.

3. The data conversion apparatus according to claim 2, wherein the reference data is generated within an interpolation range of .times. ...

7. The generating means generates grids having two grid intervals different from each other corresponding to two adjacent interpolation ranges. The data conversion device according to any one of claims 1 to 6, characterized in that, when the interval is a child interval, reference data is generated or acquired such that a gradient of change in data near the boundary between the two adjacent interpolation ranges is a gradient of change in data common to the two interpolation ranges.

8. 2. The method according to claim 1, further comprising: storing means for storing the table data.

8. The data conversion device according to claim 7.

9. The generating means generates the reference data that is closest to the boundary between the two adjacent interpolation ranges. The reference data is obtained from the table data for each of the interpolation ranges. and generating one or more reference data not included in the table data by using the data.

8. The data conversion device according to claim 7,

10. 8. The data conversion device according to claim 7, wherein the lattice interval is a power of two.

11. 2. The method according to claim 1, wherein the ratio of the first lattice interval to the second lattice interval is 2. The data conversion device according to any one of claims 1 to 10.

12. 2. The method according to claim 1, wherein the first lattice spacing is denser than the second lattice spacing. The data conversion device according to any one of claims 1 to 11.

13. A data conversion method for obtaining output data from input data by secondary interpolation, comprising the steps of: a determining step in which a determining means determines an interpolation range based on the input data; The generating means defines a relationship between the input data and the output data, and the first lattice interval range and using table data having a range of a second lattice interval different from the first lattice interval. a generating step of generating a first predetermined number of reference data; A calculation means performs secondary interpolation processing based on the interpolation range and the first predetermined number of reference data. a calculation step of obtaining the output data corresponding to the input data; The generating step includes: A second predetermined number of data corresponding to the first predetermined number is added to the table based on the interpolation range. and performing an interpolation process between at least a portion of the second predetermined number of data. and generating the first predetermined number of reference data.

14. A computer is provided as a data conversion device according to any one of claims 1 to 12. A program to function as a means.

Citation Information

Patent Citations

  • Method and apparatus for quadratic interpolation

    JP1997511079A

  • Image restoring device, program therefor, and multi-dimensional image restoring device

    JP2011081477A

  • Data interpolation apparatus and method therefor, and image processing apparatus

    JP2018120536A

  • Expansive concrete

    JP2019026495A

  • Data processing device, data processing method and program

    JP2020135283A