Apparatus, method, and program

The method addresses the challenge of large circuit scales and costs in high-order image processing by using quadratic interpolation with adaptive grid spacing and reference data generation, achieving accurate and efficient data conversion.

JP7532087B2Active Publication Date: 2024-08-13CANON KK
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
JP2020090514
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2020-05-25
Publication Date
2024-08-13
Estimated Expiration
2040-05-25

AI Technical Summary

Technical Problem

Existing data conversion methods using high-order functions for image processing require large circuit scales and high costs due to complex calculations and memory requirements, especially with high-resolution video, and the quadratic interpolation process does not accurately pass through set points.

Method used

A method involving determining interpolation ranges and generating reference data to calculate quadratic function coefficients, allowing for smooth connection of quadratic approximate curves across varying grid spacings, reducing the need for extensive table data and calculations.

Benefits of technology

Enables high-accuracy data conversion with a simple configuration by minimizing circuit scale and cost, while ensuring the output interpolation curve passes through set values.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007532087000020
    Figure 0007532087000020
  • Figure 0007532087000021
    Figure 0007532087000021
  • Figure 0007532087000022
    Figure 0007532087000022
Patent Text Reader

Abstract

To implement data conversion using a high-order function, which allows a set value to be easily calculated, in a simple configuration.SOLUTION: One embodiment of the present invention is a device including: determination means which determines an interpolation range; first reference data generation means which generates first reference value data corresponding to a first interpolation range on the basis of first table data in a first table holding a plurality of pieces of set value data where relations between input data and output data are discretely represented at a plurality of lattice intervals; second reference data generation means which generates second reference value data corresponding to a second interpolation range on the basis of the first table data and the first reference value data; and first operation means which obtains a quadratic function coefficient for plotting a quadratic approximation curve which passes two midpoints obtained for every two pieces of nearby reference value data of three pieces of reference value data corresponding to respective interpolation ranges and is in contact with two segments obtained for every two pieces of nearby reference value 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 processing technique for processing data such as images. [Background technology]

[0002] Tone conversion functions that correct or convert the tone of an image, and geometric conversion functions that correct or transform the shape of an image, can be approximated by global functions or local functions that use the coordinate positions of the image as variables, and many of these are expressed as rational polynomials such as polynomials and projective transformations. However, even if they can be approximated by local functions, it is difficult to properly define the application domain of the local functions and switch the local functions at the domain boundaries.

[0003] Therefore, in data processing such as tone correction and shape transformation, it is common to evaluate local function values ​​at lattice points at a certain pixel interval, store the values ​​in an LUT (lookup table), and then interpolate the function values ​​of the lattice points read from the LUT to use them as correction values ​​or transformation values.

[0004] 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 with intermediate performance and calculation scale between the linear and cubic interpolation described above.

[0005] 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.

[0006] 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.

[0007] Therefore, in Patent Document 3, the applicant disclosed a technology related to quadratic interpolation with non-uniform grid spacing, which 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]

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

[0009] However, in the quadratic interpolation process employed in Patent Document 3, the outputted interpolation curve does not pass through the set points, which causes a problem that calculation of the set values ​​becomes complicated.

[0010] In view of the above-mentioned problems, an object of one embodiment of the present invention is to realize data conversion using a high-order function that allows a setting value to be easily calculated, with a simple configuration. [Means for solving the problem]

[0011] One embodiment of the present invention includes a determination means for determining an interpolation range based on input data, a first reference data generation means for generating first reference value data corresponding to a first interpolation range based on first table data in a first table that holds a plurality of set value data in which the relationship between the input data and output data is discretely expressed at a plurality of lattice intervals, and a first reference data generation means for generating first reference value data corresponding to a first interpolation range based on the first table data and the first reference value data. adjacent to The device is characterized by comprising: second reference data generation means for generating second reference value data corresponding to a second interpolation range; first calculation means for calculating quadratic function coefficients for drawing a quadratic approximation curve that passes through two midpoints obtained for each of two neighboring reference value data out of three reference value data corresponding to each interpolation range and is tangent to two line segments obtained for each of the two neighboring reference value data; and second calculation means for calculating output data corresponding to the input data by quadratic interpolation calculation using the quadratic function coefficients. Effect of the Invention

[0012] According to one embodiment of the present invention, it is possible to realize data conversion using a high-order function that allows a setting value to be easily calculated with a simple configuration. [Brief description of the drawings]

[0013] [Figure 1] FIG. 1 is a block diagram showing a configuration of an apparatus according to a first embodiment. [Diagram 2] An explanatory diagram of the quadratic interpolation process when the grid spacing DIS is constant [Diagram 3] An explanatory diagram of the quadratic interpolation process when the grid spacing DIS is not constant [Figure 4] FIG. 1 is a block diagram showing a detailed configuration of a coefficient calculation unit in a first embodiment. [Diagram 5] 1 is a flowchart of a process executed by a reference data generating unit in the first embodiment. [Figure 6] FIG. 13 is a block diagram showing a configuration of a data conversion device according to a second embodiment. [Figure 7] FIG. 11 is an explanatory diagram of another example of the quadratic interpolation process in the first embodiment; [Figure 8] FIG. 1 is an explanatory diagram of a process executed by a reference data generating unit in the first embodiment; [Figure 9] 11 is a flowchart of a process executed by a data processing device according to a second embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0014] 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.

[0015] [First embodiment] <Configuration of data processing device> Fig. 1(a) and Fig. 1(b) are diagrams showing an example of the configuration of an apparatus in this embodiment. Fig. 1(a) is a functional block diagram showing each functional unit corresponding to each process performed in a data conversion apparatus 100 in this embodiment. Fig. 1(b) is a block diagram showing the hardware configuration of a data processing apparatus 110 that realizes the data conversion apparatus 100 shown in Fig. 1(a).

[0016] The data processing device 110 is specifically a personal computer or the like, and includes a CPU 111, a RAM 112, a ROM 113, a communication interface (hereinafter abbreviated as I / F) 114, a storage I / F 115, and a display I / F 116, as shown in Fig. 1(b). The data processing device 110 is also connected to a storage medium 120 such as a hard disk or a semiconductor memory via the storage 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 connected to an imaging device 130 such as a camera and various networks (hereinafter abbreviated as NW) 131 via the communication I / F 114. The data processing device is also called an information processing device.

[0017] Various programs including the data processing program according to this embodiment are stored in the ROM 113. The programs stored 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.

[0018] 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 or the like 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 processing and the like by the CPU 111 as necessary. Thereafter, based on the image data, an image is displayed on the screen of the display device 121 via the display I / F 116, or the image data is stored in the storage medium 120 via the storage I / F 115.

[0019] 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. In this embodiment, the processes of each functional unit of the data conversion device 100 shown in Fig. 1(a) will be described as being realized by software processing in which the CPU 111 executes a program. However, it goes without saying that the processes of each functional unit may also be realized by hardware configurations such as corresponding circuits.

[0020] <Overview of quadratic interpolation processing> Hereinafter, the functional configuration of the data conversion device 100 and the theory of secondary interpolation processing that is the basis of the data interpolation processing performed in the data conversion device 100 will be described with reference to Fig. 1(a) and Figs. 2 to 4. Fig. 2 is a diagram for explaining the concept of secondary interpolation processing. Fig. 3 is a diagram for explaining the concept of secondary interpolation processing with uneven grid intervals adopted in this embodiment. Fig. 4 is a block diagram showing an example of the functional configuration of a coefficient calculation unit in this embodiment.

[0021] In order to execute data interpolation processing, the data conversion device 100 determines interpolation range information corresponding to the input data 10 in the range determination unit 102 and outputs it as a reference address 12. The coefficient calculation unit 103 calculates quadratic function coefficients 14 based on the LUT corresponding to the reference address 12, that is, data (referred to as reference value table data) 13 held in a reference value table stored in the reference data storage unit 101. The coefficient calculation unit 103 first generates updated reference data 21, which is new reference data, in a reference data update unit 201 (see FIG. 4) based on the reference value table data 13. The updated reference data 21 is discrete data at lattice points at every pixel interval. The generation of reference data will be described later. The quadratic function coefficients 14 are calculated in a coefficient data calculation unit 204 based on the updated reference data 21.

[0022] The input data 10 is image data, data such as the brightness and coordinates of an image, etc. The quadratic function coefficients 14 are data determined by a tone conversion function that corrects (specifically, converts) the tone of an image, and a geometric conversion function that corrects (specifically, transforms) the shape of an image. Based on the quadratic function coefficients 14 and the input data 10, the interpolation calculation unit 104 calculates and outputs output data 15, which is a quadratic approximation curve.

[0023] Hereinafter, the interval between the discrete lattice points of the updated reference data 21 is referred to as the lattice interval DIS. Details of the lattice interval DIS will be described later, but for example, the narrower the lattice 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 lattice interval, the lower the accuracy of data conversion, but the smaller the amount of table data that must be stored.

[0024] Fig. 2 is a conceptual diagram of the secondary interpolation process, showing an example in which the grid interval DIS is constant. Y1, Y2, Y3, and Y4 in Fig. 2 are discrete data in 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, since the interpolation range A and the interpolation range B are each a range from the midpoint between adjacent reference data to the next midpoint, the widths of the interpolation range A and the interpolation range B are the same as the grid interval DIS.

[0025] For example, if the input data 10 is X I If this data X I The nearest update reference data 21 corresponding to is Y2, and the two neighboring (before and after) update reference data 21 with Y2 as the center are Y1 and Y3. The interpolation range is determined by the 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.

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

[0027] The theoretical formula for the interpolation process executed by the interpolation calculation unit 104 is expressed by the following formulas (1) to (4). Note that x in formula (1) is the relative position of the input data 10 within the interpolation range normalized by the lattice interval DIS, and takes a value between 0 and 1. Also, Y in formulas (1) to (4) is the output data 15.

[0028]

number

[0029]

number

[0030]

number

[0031]

number

[0032] The interpolation calculation unit 104 performs an interpolation process based on a quadratic approximation curve expressed by formula (1). In the interpolation range A in FIG. 2, the quadratic approximation curve passes through a midpoint M1 between Y1 and Y2 and a 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 above-mentioned interpolation range A. The quadratic approximation curve in the interpolation range B passes through a midpoint M2 between Y2 and Y3 and a 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.

[0033] That is, the midpoint M2 is the same point at the boundary between the adjacent interpolation range A and the interpolation range B, and the line segment (Y2-Y3) is the same line segment. In other words, since the midpoint M2 and the line segment (Y2-Y3) are both commonly used at the boundary between the adjacent interpolation range A and the interpolation range B, the quadratic approximation curve at the boundary between the two interpolation ranges is always smoothly connected. Note that this quadratic approximation curve is determined by a series of reference data stored as table data, without passing through a reference data generation unit, to determine the conversion characteristics from input data to output data. Therefore, the data conversion device 100 can realize data interpolation suitable for gamma conversion or the like that requires a predetermined conversion characteristic.

[0034] <Outline of quadratic interpolation when the grid spacing DIS is not constant> One of the features of this embodiment is that it takes into consideration the case where the lattice intervals in the table data are not constant, that is, the lattice intervals are uneven. Below, we will explain the case where the lattice interval to be applied changes depending on the input data.

[0035] Such uneven grid intervals are suitable for tone conversion functions with strong nonlinearity. For example, by applying a narrow grid interval in a low gradation region with strong nonlinearity and a wide grid interval in a high gradation region with strong linearity, the amount of table data that must be stored can be reduced while maintaining high tone conversion accuracy over the entire range from low gradation to high gradation. However, in this case, the grid interval and the interpolation interval may differ at the boundary between adjacent interpolation ranges, so measures are required to smoothly connect the quadratic approximation curves of both interpolation ranges. In the quadratic interpolation in the present embodiment when the grid intervals are uneven, it is possible to smoothly connect the quadratic approximation curves of both interpolation ranges when the grid interval and the interpolation interval are different at the boundary between adjacent interpolation ranges.

[0036] <Reference data generation> Since only a part of the necessary updated reference data 21 is stored as table data in the reference data storage unit 101, the missing reference data is generated by the reference data update unit 201. Specifically, due to the characteristics of the quadratic interpolation employed in this embodiment, in order to smoothly connect the quadratic approximation curves at the boundary between different interpolation ranges, that is, at the midpoint M2 in FIG. 3, two data Y1' and Y2' of the reference data that satisfy the following formulas (5) to (9) are generated.

[0037]

number

[0038]

number

[0039] Equation (5) means that the midpoints of the input data coincide, and equation (6) means that the midpoints of the output data coincide. Therefore, by satisfying equations (5) and (6), 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 straddles both interpolation ranges.

[0040]

number

[0041]

number

[0042]

number

[0043] Equation (7) means that the slopes of the line segments connecting adjacent reference data are the same. Therefore, by satisfying equation (7), the slopes of the quadratic approximation curves at the coordinates of midpoint M2, which is the boundary between interpolation range A and interpolation range B, can be made to match.

[0044] Fig. 3 is a diagram for explaining the concept of processing by the reference data update unit 201 in this embodiment. Of the reference data shown in Fig. 3, data Y1, Y2, and Y3 represented by squares and data Y3' represented by triangles are held as table data in the reference data storage unit 101. On the other hand, data Y1' and Y2' represented by circles in the figure are generated by the reference data update unit 201 according to equations (10) and (11) derived from equations (5) to (9).

[0045]

number

[0046]

number

[0047] In this embodiment, by satisfying formula (10) and formula (11), 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 can be made to match.

[0048] In the above description, the values ​​of each lattice interval are preferably powers of 2 in order to reduce the computation load when selecting table data and calculating the relative position x, as well as the relational expressions of formulas (10) and (11), but are not limited thereto. Furthermore, the lattice interval DIS_B shown in FIG. 3 is twice as large as DIS_A, but the relationship between the lattice intervals is not limited thereto, 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. In addition, an example is shown in which Y1' and Y2' are generated based on Y2 and Y3 using formulas (10) and (11), but this is not limiting, and Y2 and Y3 may be generated based on Y1' and Y2'. In this case, a calculation formula solved for Y2 and Y3 based on formulas (5) to (9) may be used.

[0049] Furthermore, the way of holding the table data is not limited to the above. For example, Fig. 7 is a diagram for explaining another example of the concept of processing in the reference data update unit 201 according to this embodiment. Of the reference data shown in Fig. 7, data Y1 and Y2 represented by squares in the figure, and data Y2' and Y3' represented by triangles in the figure are held as table data in the reference data storage unit 101. On the other hand, data Y3 and Y1' represented by circles in the figure are generated by the reference data update unit 201 according to the calculation formulas of formulas (12) and (13) derived based on formulas (5) to (9).

[0050]

number

[0051]

number

[0052] A feature of this embodiment is that the reference value table data 13 required by the coefficient calculation unit 103 and stored in the reference data storage unit 101 is generated by the reference data generation unit 106 on the basis of the setting value table data 16 stored in the setting value data storage unit 105.

[0053] The set value data storage unit 105 stores set values ​​given by a higher-level control means, which are data that is actually to be passed in the output data 15 resulting from the quadratic interpolation performed by the data conversion device 100 of this embodiment.

[0054] 8 is a diagram for explaining the concept of the reference data generation process in this embodiment. This is an example having four interpolation ranges for a certain grid interval, and illustrates areas with two grid intervals, lattice interval DIS_A and lattice interval DIS_B. Note that for the portion with lattice interval DIS_B, interpolation range B1, interpolation range B2, interpolation range B3, and interpolation range B4 are shown, but for the portion with lattice interval DIS_A, only interpolation range A4 is shown. (Interpolation range A1, interpolation range A2, and interpolation range A3 are omitted.)

[0055] The set value data storage unit 105 stores the set value data M1 to M5 shown in FIG. 8 as part of the set value table data 16, and these M1 to M5 are the output of the data conversion device 100, that is, the points through which the curve of the quadratic approximation curve actually passes. Also, Y4, Y5, Y6, Y3', Y4', Y5', and Y6' in FIG. 8 are parts of the reference value table data 13 that must be stored in the reference data storage unit 101. The position (horizontal axis) of the set value table data 16 is placed at the midpoint of the positions (horizontal axis) of each point of the reference value table data 13. This is because the quadratic approximation curve (i.e., output data 15) output as a result of the quadratic interpolation calculation adopted in this embodiment passes through the midpoint of each data stored in the above-mentioned reference value table data 13. That is, a point of the new set value table data 16 is placed at the midpoint, and reference value table data is generated so as to pass through the point, thereby realizing the quadratic approximation curve passing through the set point, which is the object of this embodiment.

[0056] <Processing Executed by Reference Data Generator 106> 5 is a flowchart of a series of processes executed by the reference data generating unit 106. First, at the start of the process, that is, in the first reference data generation, in step S501, reference data is generated based on one of the setting value table data 16 and a predetermined reference point. Specifically, reference value data Y4', Y5', and Y6' are generated by the calculation of equations (14) to (16), which are extrapolation or interpolation calculations of the setting value data M5 and the reference point P in FIG. 8. Note that this reference point is, for example, the maximum gradation point of the input data 10.

[0057]

number

[0058]

number

[0059]

number

[0060] Here, DIS_B is the grid interval of the desired reference value data, and in the cases of Y4', Y5', and Y6', it is DIS_B, but in the case of a different grid interval, that value is used. As described above, Y4' and Y6' are extrapolated points of the set value data M5 and reference point P, and Y5' is an interpolated point of the set value data M5 and reference point P, so Y4' to Y6' fall on a straight line. In other words, the interpolation range B4, which is the interpolation range that uses these three reference points, has output characteristics that are linear rather than a quadratic approximation curve.

[0061] Next, in step S502, it is determined whether or not it is a boundary surface of the lattice interval. If the result of the determination in this step is true, the process proceeds to step S503, whereas if the result of the determination is false, the process proceeds to S504. To explain in more detail, for example, in the case of Fig. 8, it is determined whether or not data up to Y1' has been referenced. In the first iteration of step S502, data up to Y4' has only been referenced, so the process proceeds to step S504.

[0062] In step S504, it is determined whether reference value data for all of the interpolation ranges has been generated. If the result of the determination in this step is true, the process proceeds to step S506, whereas if the result of the determination is false, the process proceeds to S505. In the first step S504, reference value data for all of the interpolation ranges has not yet been generated, so the process proceeds to step S505.

[0063] In step S505, the reference value data Y3' is generated by calculating equation (17), which is an extrapolation calculation of the reference value data Y4' calculated in step S501 and the new set value data M4.

[0064]

number

[0065] As shown in FIG. 8, equation (17) for calculating Y3' is an extrapolation calculation of the same lattice interval DIS_B using Y4' and M4.

[0066] The above processing steps are repeated, and when calculations have been completed up to Y1', the process proceeds to step S503 due to conditional branching in step S502. In step S503, processing is performed on the boundary surface with different lattice spacing. Specifically, the reference value data generated in this step are Y6 and Y5 with a lattice spacing of DIS_A, and the reference value data Y5 and Y6 are generated by calculation of equations (18) and (19), which are interpolation calculations for Y2' and Y1', which are used as temporary reference data to calculate these data.

[0067]

number

[0068]

number

[0069] As shown in Fig. 8, the grid interval between Y2' and Y1' is DIS_B, and the grid interval between Y5 and Y6 is DIS_A, and equations (18) and (19) are interpolation calculations for different grid intervals. Note that the grid interval from the next time onwards will change to DIS_A, so this value is saved. Then, the process moves to step S506 again, which is processing for the same grid interval.

[0070] The above process is repeated until the reference value data for all the interpolation ranges is generated. When the process is completed, the conditional branch in step S504 is exited and the reference value data generated in step S506 is stored in the reference data storage unit 101.

[0071] As described above, in this embodiment, the output data 15 can be a quadratic approximation curve passing through the externally set setting value table data 16. This eliminates the need for an external setter to perform unnecessary calculations, making it possible to reduce the effort required for setting.

[0072] In the first embodiment, the reference point, i.e., the maximum point of the input gradation, is in the interpolation range B4, but the position of the reference point may be in the interpolation range B2 or B3. In that case, the processing is executed in the same procedure as when the maximum point of the input gradation is in the interpolation range B4. Furthermore, the same procedure can be used when the position of the reference point is in the interpolation range B1, which is the boundary surface of the lattice interval, and the boundary surface is processed first.

[0073] The reference point is not limited to the maximum point of the input gradation, and other points may be used. For example, the minimum point of the input gradation may be used as the reference point, in which case the procedure already described is performed from the low gradation side. If the reference point is any one point of the input gradation, two steps may be performed: a step of determining the low gradation side from that point and a step of determining the high gradation side. Furthermore, the reference point may be a point outside the range of the input gradation. For example, if the reference point is a point that exceeds the maximum point of the input gradation, it may be determined from the high gradation side in the same procedure as described above. On the other hand, if the reference point is a point that is smaller than the minimum point of the input gradation, it may be determined from the low gradation side in the same procedure as described above.

[0074] In the above embodiment, the flow for saving the reference value data after the generation of the reference value data for all the interpolation ranges is completed is exemplified, but the timing for saving the reference value data is not limited to this, and the reference value data to be saved may be saved in the reference data saving unit 101 as appropriate. Furthermore, of the initial reference value data Y4', Y5', and Y6' described in this embodiment, only Y4' is used in the next processing step. Therefore, only Y4' may be generated by the reference data generating unit 106. In that case, however, the coefficient calculating unit 103 needs to perform the calculation for generating Y5' and Y6'.

[0075] [Second embodiment] The feature of this embodiment is that the reference data generating unit 106 and the reference data saving unit 101 operate only when a calculation start signal is input. In the following, differences from the previously described embodiment will be mainly described, and descriptions of contents similar to the previously described embodiment will be omitted as appropriate.

[0076] Fig. 6 is a functional block diagram showing functional units corresponding to the processes performed by data conversion device 100 in this embodiment. Fig. 9 is a flowchart showing a series of processes executed by data conversion device 100 in this embodiment.

[0077] In comparison with the first embodiment, the data conversion device 100 in this embodiment adds a calculation start signal 11. The reference data generation unit 106 and the reference data storage unit 101 operate when the calculation start signal 11 is input. That is, in step S901, the CPU 111 determines whether the calculation start signal 11 has been received.

[0078] When the calculation start signal 11 is received, in step S902, processing is executed by the reference data generating unit 106. The processing content of step S902 is the same as that of the first embodiment, specifically, the processing of step S500 (see FIG. 5).

[0079] If the calculation start signal 11 is not received, the reference data generating unit 106 does not operate, and the reference value table data 13 stored in the reference data storage unit 101 is not updated.

[0080] Next, a description will be given of the process executed based on the input of the input data 10. In step S903, the CPU 111 determines whether the input data 10 has been input.

[0081] When the input data 10 is input (YES in S903), the range determination unit 102 performs processing in step S904, the coefficient calculation unit 103 performs processing in step S905, and the interpolation calculation unit 104 performs processing in step S906. The respective processing contents are the same as those described in the first embodiment. In particular, the reference value table data 13 read by the coefficient calculation unit 103 is the reference value table data 13 generated in the above-mentioned step S902.

[0082] If the input data 10 is not input (NO in S903), the range determination unit 102, the coefficient calculation unit 103, and the interpolation calculation unit 104 do not operate.

[0083] In this manner, in the data conversion device 100 of this embodiment, mainly the reference data generation unit 106 and the reference data storage unit 101 operate only when the calculation start signal 11 is input, thereby making it possible to reduce power consumption.

[0084] The calculation start signal 11 may be input at any time other than the period during which the input data 10 is being input. For example, in the case of an image processing device, the calculation start signal 11 may be input at any time other than the image input period. Examples of the input signal 11 include when the data in the reference data storage unit 101 is updated, and during a non-image input period (V blanking) between frames or a non-image input period (H blanking) between horizontal scans during which the input data 10 is not temporarily input. As a result, the reference value table data 13 is determined before the input data 10 is input, and is only read from the reference data storage unit 101 while the input data 10 is being input, thereby improving the processing speed of the data conversion device 100.

[0085] [Other embodiments] The present invention can also be realized by supplying a program for implementing one or more of the 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 the computer of the system or device read and execute the program. It can also be realized by a circuit (e.g., ASIC) that implements one or more of the functions.

[0086] The above-described embodiments are merely illustrative of the methods for carrying out the present invention, and the technical scope of the present invention should not be construed as being limited by them.

[0087] That is, the present invention can be embodied in various forms without departing from its technical concept or main features. Although the embodiments have been described with respect to a single input data, the present invention can also be applied to a case where an interpolation process is performed on three input data such as RGB. In this case, when the RGB interpolation curves are the same in the second embodiment, it is possible to reduce the circuit scale by sharing all or any of the set value data storage unit, the reference data generation unit, and the reference data storage unit for the three input data. Furthermore, since the shared circuit only needs to complete the calculation during a non-image input period, it is possible to further reduce the circuit scale by performing calculations in multiple cycles.

[0088] In the above embodiment, an example having a plurality of lattice intervals, i.e., an example having unequal lattice intervals, has been described, but the above embodiment can also be applied to a case having only a single lattice interval, in which case processing at the boundary between different lattice intervals is omitted. [Explanation of symbols]

[0089] 10 Input Data 13 Reference Value Table Data 14 Quadratic Function Coefficients 15 Output Data 100 Data conversion device 101 Reference Data Storage Unit 102 Range determination section 103 Coefficient calculation section 104 Interpolation calculation section 105 Setting value data storage section 106 Reference Data Generation Unit

Claims

1. A determination means for determining an interpolation range based on input data; a first reference data generating means for generating first reference value data corresponding to a first interpolation range based on first table data in a first table holding a plurality of set value data in which the relationship between the input data and the output data is discretely expressed at a plurality of grid intervals; a second reference data generating means for generating second reference value data corresponding to a second interpolation range adjacent to the first interpolation range, based on the first table data and the first reference value data; a first calculation means for calculating quadratic function coefficients for drawing a quadratic approximation curve passing through two midpoints obtained for two adjacent reference value data out of three reference value data corresponding to each interpolation range and tangent to two line segments obtained for the two adjacent reference value data; a second calculation means for calculating output data corresponding to the input data by a quadratic interpolation calculation using the quadratic function coefficients; An apparatus comprising:

2. a setting value data storage means for storing the plurality of setting value data as the first table data in the first table; a reference data storage means for storing reference value data including the first reference value data and the second reference value data as second table data in a second table different from the first table; 2. The apparatus of claim 1 further comprising:

3. the second reference data generating means generates second reference value data in which, when two lattice intervals corresponding to two adjacent interpolation ranges are different, a midpoint among the midpoints in the two adjacent interpolation ranges that is close to a boundary between the two interpolation ranges is common to the two adjacent interpolation ranges; 3. The apparatus according to claim 2 .

4. the second reference data generating means generates second reference value data in which, when two lattice intervals corresponding to two adjacent interpolation ranges are different from each other, a slope of a line segment in the two adjacent interpolation ranges that is close to a boundary between the two interpolation ranges is common to the two adjacent interpolation ranges.

4. Apparatus according to claim 2 or 3.

5. the first reference data generating means generates the first reference value data based on a predetermined reference point and first setting value data included in the first table data; the second reference data generating means generates the second reference value data based on second setting value data included in the first table data and the first reference value data.

5. Apparatus according to any one of claims 2 to 4.

6. when a calculation start signal given from a higher-level control means is input, the first reference data generating means generates the first reference value data, and the first calculation means calculates the quadratic function coefficients.

6. Apparatus according to any one of claims 2 to 5, characterized in that

7. The operation start signal is input at a timing when the input data is not being input.

7. The apparatus according to claim 6 .

8. The calculation start signal is input at a timing when the second table data stored in the reference data storage means is updated.

7. The apparatus according to claim 6 .

9. When there are a plurality of pieces of input data, the reference data storage means is shared among the plurality of pieces of input data.

9. Apparatus according to any one of claims 2 to 8, characterized in that

10. 10. The apparatus according to claim 2, wherein the ratio of the values ​​of the plurality of lattice intervals is a power of two.

11. The reference value data stored in the reference data storage means includes reference value data with a fine grid interval and reference data with a sparse grid interval. Characterized by 11. Apparatus according to any one of claims 2 to 10.

12. determining an interpolation range based on input data; generating first reference value data corresponding to a first interpolation range based on first table data in a first table that holds a plurality of set value data in which the relationship between the input data and the output data is discretely expressed at a plurality of grid intervals; generating second reference value data corresponding to a second interpolation range adjacent to the first interpolation range based on the first table data and the first reference value data; a step of determining quadratic function coefficients for drawing a quadratic approximation curve that passes through two midpoints obtained for each of two neighboring reference value data out of the three reference value data corresponding to each interpolation range and is tangent to two line segments obtained for each of the two neighboring reference value data; obtaining output data corresponding to the input data by a quadratic interpolation calculation using the quadratic function coefficients; The method according to claim 1, further comprising:

13. A program for causing a computer to execute the method according to claim 12.

Citation Information

Patent Citations

  • Method and apparatus for quadratic interpolation

    JP1997511079A

  • Color / gradation image input / output device and input / output method

    JP1998145590A

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

    JP2011081477A

  • Data interpolation apparatus and data interpolation method

    JP2019016002A

  • Data processing device, data processing method and program

    JP2020135283A