Circuit arrangement and error detection method

By introducing storage and image conversion circuits into the image processing circuit, outputting reference coordinates and performing error detection, the problem of low accuracy in anomaly detection of the image processing circuit is solved, and high-precision image conversion and error detection are achieved.

CN115756942BActive Publication Date: 2026-11-24SEIKO EPSON CORP
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211077413.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2021-09-06
Filing Date
2022-09-05
Publication Date
2026-11-24
Estimated Expiration
2042-09-05

AI Technical Summary

Technical Problem

In the existing technology, the anomaly detection accuracy of image processing circuits is not high, especially when the image is not completely returned to the original image after inverse mapping, which leads to uncertainty in the error detection of the comparison circuit.

Method used

The input image data is stored using a storage circuit. The image conversion circuit outputs reference coordinates for image conversion. An error detection circuit then checks these reference coordinates for errors, including calculating and comparing error code values ​​to confirm the accuracy of the image conversion.

Benefits of technology

This technology enables high-precision anomaly detection in image conversion circuits, improves the error detection accuracy of image processing circuits, and ensures the accuracy of the image conversion process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115756942B_ABST
    Figure CN115756942B_ABST
Patent Text Reader

Abstract

Circuit device and error detection method. The circuit device includes a storage circuit, an image conversion circuit, and an error detection circuit. The storage circuit stores input first image data. The image conversion circuit outputs reference coordinates indicating pixel positions on the first image data, and outputs second image data based on pixel data read from the storage circuit based on the output reference coordinates, thereby performing image conversion based on coordinate conversion on the first image data. The error detection circuit performs error detection on the reference coordinates output by the image conversion circuit.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to circuit devices and error detection methods, etc. Background Technology

[0002] Patent Document 1 discloses a circuit arrangement including an image processing circuit and a comparison circuit. The image processing circuit maps an input first image to a second image, and then converts the second image into a third image through inverse mapping. The comparison circuit performs error detection on the second image by comparing the first image and the third image. Specifically, the comparison circuit compares the first image and the third image by comparing the image values ​​or visibility indices of the edge images.

[0003] Patent Document 1: Japanese Patent Application Publication No. 2019-149760

[0004] While Patent Document 1 mentioned above enables error detection of the second image, it suffers from difficulty in achieving high-precision anomaly detection in detecting abnormalities in the image processing circuit. Specifically, the third image after inverse mapping may not completely return to the first image as the original image, thus introducing uncertainty into the comparison. Although there is no problem in confirming whether the content of the second image is appropriate, uncertainty exists in detecting abnormalities in the image processing circuit. Summary of the Invention

[0005] One aspect of this application relates to a circuit device comprising: a storage circuit that stores input first image data; an image conversion circuit that outputs reference coordinates representing pixel positions on the first image data, and outputs second image data based on pixel data read from the storage circuit based on the output reference coordinates, thereby performing a coordinate-based image conversion on the first image data; and an error detection circuit that detects errors in the reference coordinates output by the image conversion circuit.

[0006] Furthermore, another aspect of this application relates to an error detection method, which includes: storing first image data in a storage circuit; performing a coordinate-based image transformation on the first image data, and outputting the transformed second image data; in the image transformation, outputting reference coordinates representing pixel positions on the first image data, and outputting the second image data based on pixel data read from the storage circuit based on the output reference coordinates; and performing error detection on the output reference coordinates. Attached Figure Description

[0007] Figure 1 This is the first structural example of a circuit device.

[0008] Figure 2This is a diagram illustrating error detection in the first structural example.

[0009] Figure 3 This is the timing diagram for error detection in the first structural example.

[0010] Figure 4 This is a graph showing the correspondence between the correction parameters and the expected values ​​of the error codes.

[0011] Figure 5 This is the timing diagram for error detection in the second structural example.

[0012] Figure 6 This is the third structural example of a circuit device.

[0013] Figure 7 This is a diagram illustrating the error detection in the third structural example.

[0014] Figure 8 This is a diagram illustrating error detection in the fourth structural example.

[0015] Figure 9 This is the fifth structural example of a circuit device.

[0016] Figure 10 This is a diagram illustrating error detection in the fifth structural example.

[0017] Label Explanation

[0018] 100: Circuit device; 110: Input circuit; 120: Storage circuit; 130: Image conversion circuit; 140: Output circuit; 150: Error detection circuit; 151: Calculation circuit; 152: Comparison circuit; 160: Coordinate address conversion circuit; 190: Interface circuit; 200: Processing device; CDEX: Expected value; CDQ: Error code value; IMA: First image data; IMB: Second image data; RADD: Read address; RCRD: Reference coordinates; WADD: Write address; WCRD: Move destination coordinates; WP: Correction parameter. Detailed Implementation

[0019] The preferred embodiments of this application are described in detail below. Furthermore, the embodiments described below are not intended to unduly limit the scope of the claims, and the structures described in these embodiments are not necessarily all essential structural elements.

[0020] 1. Example of the first structure

[0021] Figure 1This is a first structural example of the circuit device 100 in this embodiment. The circuit device 100 is a circuit device that performs image distortion correction, image scaling, or both, for example, a front-end of a display controller provided in a display device. Alternatively, the circuit device 100 may also be a display controller with built-in image distortion correction, image scaling, or both functions.

[0022] The circuit device 100 can be used in various display devices, but as an example, it is used in a head-up display. A head-up display projects an image onto a transparent screen, superimposing a virtual image onto the field of view of the user viewing the screen. At this time, the displayed image is distorted due to distortion of the screen or projection optics, but by using a distortion opposite to this distortion to correct the image, a distortion-free display image is displayed. This correction is distortion correction.

[0023] Scaling is the process of enlarging or reducing all or part of an image. Specifically, scaling is the process of increasing or decreasing the number of horizontal pixels, vertical pixels, or both of an image.

[0024] The circuit device 100 includes an input circuit 110, a storage circuit 120, an image conversion circuit 130, an output circuit 140, an error detection circuit 150, a coordinate address conversion circuit 160, and an interface circuit 190. The circuit device 100 is, for example, an integrated circuit device in which multiple circuit elements are integrated on a semiconductor substrate.

[0025] Input circuit 110 receives first image data (IMA) from processing device 200. Input circuit 110 can be a receiving circuit for various communication interfaces, such as LVDS, DVI, display port, GMSL, or GVIF. LVDS is an abbreviation for Low Voltage Differential Signaling, DVI is an abbreviation for Digital Visual Interface, GMSL is an abbreviation for Gigabit Multimedia Serial Link, and GVIF is an abbreviation for Gigabit Video Interface.

[0026] Storage circuit 120 stores the first image data (IMA) received by input circuit 110. Storage circuit 120 is a line buffer that stores a specified number of lines of image data or a frame memory that stores one frame of image data. Storage circuit 120 is, for example, a line latch circuit, or a semiconductor memory such as SRAM or DRAM.

[0027] Image conversion circuit 130 performs coordinate-based image conversion on first image data IMA, outputting converted second image data IMB. Coordinate-based image conversion generates the second image data IMB by moving the pixel data of the first image data IMA to the pixel positions on the second image data IMB as represented by the coordinate conversion. Specifically, image conversion circuit 130 generates the second image data IMB by performing distortion correction or scaling on the first image data IMA. Alternatively, image conversion circuit 130 can perform both distortion correction and scaling. The meanings of distortion correction and scaling are as described above.

[0028] When the image conversion is distortion correction, the image conversion circuit 130 acts as a reverse warp engine. The reverse warp is performed as follows: the pixel position on the second image data IMB is moved to a reference coordinate corresponding to that pixel position, and the pixel data of the second image data IMB is calculated based on the pixel data of the first image data IMA at that reference coordinate. At this time, the image conversion circuit 130 outputs the reference coordinate RCRD on the first image data IMA corresponding to the pixel position on the second image data IMB, based on the correction parameter WP, which serves as the warp parameter.

[0029] When the image conversion is scaling, the image conversion circuit 130 outputs reference coordinates RCRD on the first image data IMA corresponding to the pixel positions on the second image data IMB, based on the correction parameter WP, which is a scaling parameter. The scaling parameter is, for example, a parameter representing the magnification or reduction rate of the image. Furthermore, the scaling parameter may also include the coordinates of the scaling center. Additionally, when scaling a portion of the image, the scaling parameter may also include a parameter specifying the area to be scaled.

[0030] The coordinate address conversion circuit 160 converts the reference coordinate RCRD into the read address RADD of the storage circuit 120. The read address RADD is the address that stores the pixel data corresponding to the reference coordinate RCRD. When the correction parameter WP is the same and the image conversion circuit 130 is functioning correctly, the same read address RADD is output for the same reference coordinate RCRD in each frame. For example, when the storage circuit 120 is used as a rotation line buffer, the physical address of the initial pixel data of the stored frame differs for each frame. In this case, the coordinate address conversion circuit 160 outputs the same logical address for each frame, and the storage circuit 120 converts the logical address to the appropriate physical address for each frame. Even when the physical address of the initial pixel data of the stored frame is the same for each frame, the read address RADD can also be a physical address.

[0031] The storage circuit 120 reads pixel data PXDT from the read address RADD and outputs it to the image conversion circuit 130. The image conversion circuit 130 constructs the second image data IMB from the pixel data PXDT. As described later, multiple pixel data can be read for a single reference coordinate RCRD, and the image conversion circuit 130 can also calculate the pixel data of the second image data IMB by performing interpolation operations on these multiple pixel data.

[0032] The output circuit 140 sends the second image data IMB to the subsequent display controller, etc. The output circuit 140 can also be a transmitting circuit of various communication interfaces, such as LVDS, DVI, display port, GMSL or GVIF, etc.

[0033] Error detection circuit 150 detects anomalies in image conversion circuit 130 by detecting errors in reference coordinate RCRD. Error detection circuit 150 includes: a calculation circuit 151 that calculates the error code value CDQ based on the reference coordinate RCRD; and a comparison circuit 152 that compares the error code value CDQ with the expected value CDEX of the error code value.

[0034] In each frame, the arithmetic circuit 151 calculates an error code value CDQ based on the reference coordinates RCRD of that frame. The error code value CDQ can be, for example, a CRC code. CRC stands for Cyclic Redundancy Check. Alternatively, the error code value CDQ can also be a checksum, Hamming code, or ECC code. ECC stands for Error Correcting Code.

[0035] When the error code value CDQ is inconsistent with the expected value CDEX, the comparator circuit 152 outputs an error detection signal ERQ indicating an error; when the error code value CDQ is consistent with the expected value CDEX, it outputs an error detection signal ERQ indicating no error. The expected value CDEX corresponds to the correction parameter WP; when the correction parameter WP is changed, the expected value CDEX is also changed accordingly.

[0036] Interface circuit 190 and processing device 200 exchange setting information or control information. Interface circuit 190 is, for example, a serial communication interface using SPI (Serial Peripheral Interface) or I2C. Processing device 200 stores correction parameters WP and pre-calculated expected values ​​CDEX in non-volatile memory, etc., and sends the correction parameters WP and expected values ​​CDEX to interface circuit 190. Interface circuit 190 receives correction parameters WP and expected error code values ​​CDEX from processing device 200, outputs correction parameters WP to image conversion circuit 130, and outputs expected values ​​CDEX to comparison circuit 152. In addition, interface circuit 190 outputs an error detection signal ERQ from comparison circuit 152 to processing device 200.

[0037] When the processing device 200 receives an error detection signal ERQ indicating that an error has been detected, it performs processing to deal with the error. For example, when the processing device 200 receives the error detection signal ERQ indicating that an error has been detected, it stops transmitting image data to the circuit device 100 or resets the circuit device 100.

[0038] In addition, the image conversion circuit 130, the coordinate address conversion circuit 160, and the error detection circuit 150 are composed of logic circuits. These circuits can also be integrated into a single unit, such as an automatic configuration and routing gate array.

[0039] Figure 2 This diagram illustrates the error detection in the first structural example. Here, an example is shown where the image conversion is distortion correction and a lookup table is used as the correction parameter WP. Furthermore, the pixel count of the second image data IMB is set to 64×48. Alternatively, distortion correction can be performed using a polynomial representing the relationship between the coordinates on the first image data IMA and the coordinates on the second image data IMB; in this case, the correction parameter WP is the coefficient of the polynomial.

[0040] like Figure 2 As shown, the correction parameter WP is a lookup table that associates the coordinates on the output side with the amount of movement from those output-side coordinates to the reference coordinates on the input side. The output-side coordinates represent the coordinates on the second image data IMB, and the input-side reference coordinates represent the coordinates on the first image data IMA. xa1, xa2, ..., xa10 are the coordinates on the output side in the horizontal scanning direction, and ya1, ya2, ..., ya10 are the coordinates on the output side in the vertical scanning direction. ua1, ua2, ..., ua10 are the amounts of movement in the horizontal scanning direction, and va1, va2, ..., va10 are the amounts of movement in the vertical scanning direction. For example, the reference coordinates on the input side corresponding to (xa1, ya1) on the output side are (xa1 + ua1, ya1 + va1).

[0041] The image conversion circuit 130 uses the aforementioned correction parameter WP to determine the reference coordinates (sa1, ta1), (sa2, ta2), (sa3, ta3), ..., (sa3072, ta3072) on the first image data IMA corresponding to the coordinates (1, 1), (2, 1), (3, 1), ..., (64, 48) of each pixel in the second image data IMB. For pixel positions not found in the lookup table of the correction parameter WP, the image conversion circuit 130 determines the reference coordinates, for example, through interpolation.

[0042] The arithmetic circuit 151 calculates the error code value CDQ based on the reference coordinates (sa1, ta1), (sa2, ta2), (sa3, ta3), ..., (sa3072, ta3072) of one frame output by the image conversion circuit 130. If the reference coordinates are correctly calculated, the same reference coordinates should be output for the same correction parameter WP. Therefore, one expected value CDEX is associated with one correction parameter WP. The comparison circuit 152 compares the error code value CDQ calculated by the arithmetic circuit 151 with the expected value CDEX to confirm whether the image conversion circuit 130 has output accurate reference coordinates.

[0043] Figure 3 This is the timing diagram for error detection in the first structural example. Additionally, Figure 3 This shows an outline of the operation timing; the operation timing of the circuit device 100 is not limited to... Figure 3 For example, in Figure 3 In this process, the data enable period TDE is consistent with the output period of the reference coordinate RCRD. However, the relationship between these periods can be appropriately set according to the read and write control of the storage circuit 120.

[0044] like Figure 3 As shown, assume that the first frame F1 and the subsequent second frame F2 are defined by the vertical synchronization signal VSYNC. Each frame contains a data enable period TDE defined by the data enable signal. A vertical blanking period TBL is set between the data enable period TDE and the next data enable period TDE.

[0045] During the data enable period TDE of frame F1, input circuit 110 receives the first image data IMA and writes it to storage circuit 120. Image conversion circuit 130 sequentially outputs reference coordinates RCRD. After outputting the reference coordinates RCRD of frame 1, arithmetic circuit 151 outputs the error code value CDQa calculated based on the reference coordinates RCRD of frame 1. Arithmetic circuit 151 updates the error code value, for example, during vertical blanking period TBL. Comparison circuit 152 compares the error code value CDQa with the expected value CDEX and outputs the error detection signal ERQ. Figure 3 The image shows an example where the error code value CDQa matches the expected value CDEX and a low-level error detection signal ERQ is output. Here, it is assumed that a high level indicates an error.

[0046] In frame 2 (F2), similarly, the arithmetic circuit 151 outputs the error code value CDQb calculated based on the reference coordinates RCRD of frame 1. The comparator circuit 152 compares the error code value CDQb with the expected value CDEX and outputs the error detection signal ERQ. Figure 3 The image shows an example where the error code value CDQb is inconsistent with the expected value CDEX and a high-level error detection signal ERQ is output.

[0047] In the above embodiment, the circuit device 100 includes a storage circuit 120, an image conversion circuit 130, and an error detection circuit 150. The storage circuit 120 stores the input first image data IMA. The image conversion circuit 130 outputs reference coordinates RCRD representing the pixel positions on the first image data IMA, and outputs second image data IMB based on pixel data PXDT read from the storage circuit 120 according to the output reference coordinates RCRD, thereby performing coordinate-based image conversion on the first image data IMA. The error detection circuit 150 performs error detection on the reference coordinates RCRD output by the image conversion circuit 130.

[0048] According to this embodiment, by performing error detection on the reference coordinates RCRD output by the image conversion circuit 130, the accuracy of the reference coordinates RCRD output by the image conversion circuit 130 can be confirmed with high precision. Therefore, compared to Patent Document 1 described above, anomalies in the image conversion circuit 130 can be detected with high precision.

[0049] Furthermore, error detection for the reference coordinates only needs to detect whether the reference coordinates are accurate. That is, in the first structural example, the error detection circuit 150 detects errors in the reference coordinates RCRD, but it is not limited to this. The error detection circuit 150 can also perform error detection on the reference coordinates RCRD by detecting errors in data generated based on the reference coordinates RCRD. For example, in the third structural example described later, the error detection circuit 150 detects errors in the read address RADD output based on the reference coordinates RCRD. In this case, the accuracy of the reference coordinates RCRD is confirmed by verifying whether the read address RADD is accurate.

[0050] Furthermore, in this embodiment, the error detection circuit 150 performs error detection by comparing the error code value CDQ obtained from the reference coordinates RCRD output by the image conversion circuit 130 with the expected value CDEX of the error code value.

[0051] According to this embodiment, the accuracy of the reference coordinates RCRD output by the image conversion circuit 130 is confirmed by comparing the error code value CDQ obtained from the reference coordinates RCRD with its expected value CDEX. Since the reference coordinates RCRD are real values, the error detection accuracy can be expected to be higher when error detection is performed using the reference coordinates RCRD compared to the case where error detection is performed after converting to the read address RADD, which is an integer value.

[0052] Furthermore, in this embodiment, coordinate transformation is a coordinate transformation in image distortion correction or image scaling.

[0053] Distortion correction and scaling are image transformations that accompany coordinate transformation. By detecting errors in the reference coordinates RCRD output by the image transformation circuit 130 during this coordinate transformation, anomaly detection of the image transformation circuit 130 can be achieved.

[0054] Furthermore, in this embodiment, the error detection circuit 150 performs error detection via CRC.

[0055] According to this embodiment, the error detection circuit 150 can calculate the CRC code by sequentially encoding the reference coordinates RCRD output by the image conversion circuit 130. Furthermore, high-precision error detection can be achieved by using CRC. For example, when using a 16-bit CRC, the error detection precision is 1 / 65536.

[0056] This embodiment can also be implemented as an error detection method as follows. Specifically, the error detection method includes having the storage circuit 120 store first image data IMA. The error detection method includes performing a coordinate-based image transformation on the first image data IMA and outputting the transformed second image data IMB. The error detection method includes, during the image transformation, outputting reference coordinates RCRD representing the pixel positions on the first image data IMA, and outputting the second image data IMB based on pixel data PXDT read from the storage circuit 120 based on the output reference coordinates RCRD. The error detection method includes performing error detection on the output reference coordinates RCRD.

[0057] 2. Example of the second structure

[0058] The second structural example is an example of coordinate transformation by switching multiple correction parameters. The structure of the circuit device 100 is similar to... Figure 1 same.

[0059] Figure 4 This is a graph showing the correspondence between the correction parameters and the expected values ​​of the error codes. The correction parameters WP1 to WPn are all different. That is, the coordinates using the correction parameters WP1 to WPn are different coordinate transformations. n is an integer greater than 2.

[0060] When the image conversion circuit 130 outputs the reference coordinates RCRD using the correction parameter WP1, the error detection circuit 150 uses the expected value CDEX1 of the error code corresponding to the correction parameter WP1 to perform error detection. Similarly, when the image conversion circuit 130 outputs the reference coordinates RCRD using the correction parameters WP2 to WPn, the error detection circuit 150 uses the expected values ​​CDEX2 to CDEXn of the error code corresponding to the correction parameters WP2 to WPn to perform error detection.

[0061] Interface circuit 190 receives correction parameters WP1 to WPn and desired values ​​CDEX1 to CDEXn from processing device 200. For example, interface circuit 190 may receive the correction parameters and desired values ​​from processing device 200 each time the correction parameters are switched. Alternatively, circuit device 100 may not include registers or memory (not shown), and interface circuit 190 may receive correction parameters WP1 to WPn and desired values ​​CDEX1 to CDEXn from processing device 200 at once and store them in registers or memory.

[0062] Furthermore, the interface circuit 190 does not necessarily need to receive all of the correction parameters WP1 to WPn. For example, the interface circuit 190 may only receive the correction parameter WP1, and the image conversion circuit 130 may generate correction parameters WP2 to WPn based on the correction parameter WP1. In this case, the error detection circuit 150 uses the expected values ​​from CDEX1 to CDEXn received by the interface circuit 190 that correspond to the correction parameters generated by the image conversion circuit 130 to perform error detection.

[0063] Figure 5 This is the timing diagram for error detection in the second structural example. Additionally, Figure 5 This shows an outline of the operation timing; the operation timing of the circuit device 100 is not limited to... Figure 5 .

[0064] During the vertical blanking period TBL before the start of TDE during the data enable period of frame F1, the image conversion circuit 130 sets the correction parameter to WP1. At the same timing, the error detection circuit 150 sets the expected value of the error code to CDEX1. However, the timing of updating the expected value is not limited to this; it can be updated before the comparison. The image conversion circuit 130 outputs reference coordinates RCRD based on the correction parameter WP1, and the arithmetic circuit 151 calculates the error code value CDQ1 based on these reference coordinates RCRD. The comparison circuit 152 compares the error code value CDQ1 with the expected value CDEX1.

[0065] Similarly, during the vertical blanking period TBL before the start of TDE during the data enable period of frame F2, the image conversion circuit 130 sets the correction parameter to WP2. At the same timing, the error detection circuit 150 sets the expected value of the error code to CDEX2. Based on the correction parameter WP2, the image conversion circuit 130 outputs the reference coordinate RCRD, and the arithmetic circuit 151 calculates the error code value CDQ2 based on this reference coordinate RCRD. The comparison circuit 152 compares the error code value CDQ2 with the expected value CDEX2.

[0066] In the above embodiments, the circuit device 100 includes an interface circuit 190 that obtains the desired value CDEX.

[0067] According to this embodiment, a desired value CDEX corresponding to the correction parameter WP can be input to the circuit device 100 from outside the circuit device 100. The correction parameter WP varies depending on the type of coordinate transformation performed, but the desired value CDEX corresponding to the correction parameter WP can be set from outside the circuit device 100.

[0068] Furthermore, in this embodiment, the interface circuit 190 acquires the expected value CDEX corresponding to the correction parameter WP representing the coordinate transformation. The image conversion circuit 130 outputs the reference coordinate RCRD based on the correction parameter WP. The error detection circuit 150 performs error detection using the expected value CDEX corresponding to the correction parameter WP.

[0069] According to this embodiment, the error detection circuit 150 calculates the error code value CDQ based on the reference coordinate RCRD output based on the correction parameter WP, and compares the error code value CDQ with the expected value CDEX corresponding to the correction parameter WP. This allows confirmation of whether the reference coordinate RCRD output based on the correction parameter WP is accurate.

[0070] 3. Example of the third structure

[0071] Figure 6 This is the third structural example of the circuit device 100 in this embodiment. Furthermore, descriptions of structural elements that are identical to those already described are appropriately omitted.

[0072] Error detection circuit 150 detects errors in the read address RADD output by coordinate address conversion circuit 160, thereby detecting anomalies in image conversion circuit 130 and coordinate address conversion circuit 160. Error detection circuit 150 includes: a calculation circuit 151, which calculates the error code value CDQ based on read address RADD; and a comparison circuit 152, which compares the error code value CDQ with the expected value CDEX of the error code value.

[0073] Figure 7 This is a diagram illustrating the error detection in the third structural example. (And...) Figure 2 Similarly, the image conversion circuit 130 outputs reference coordinates (sa1, ta1), (sa2, ta2), (sa3, ta3), ..., (sa3072, ta3072) according to the correction parameters. The coordinate address conversion circuit 160 converts the reference coordinates (sa1, ta1) into a read address RADD1. The read address RADD1 is, for example, the address storing the pixel data located at the coordinates closest to the reference coordinates (sa1, ta1) in the first image data IMA. Similarly, the coordinate address conversion circuit 160 converts the reference coordinates (sa2, ta2), (sa3, ta3), ..., (sa3072, ta3072) into read addresses RADD2, RADD3, ..., RADD3072.

[0074] The arithmetic circuit 151 calculates the error code value CDQ based on the read addresses RADD1, RADD2, RADD3, ..., RADD3072 of one frame output by the coordinate address conversion circuit 160. If the reference coordinates and read addresses are correctly calculated, the same read address should be output for the same correction parameter WP. Therefore, one expected value CDEX corresponds to one correction parameter WP. The comparison circuit 152 compares the error code value CDQ calculated by the arithmetic circuit 151 with the expected value CDEX to confirm whether the coordinate address conversion circuit 160 has output an accurate read address.

[0075] In the above embodiments, the circuit device 100 includes a coordinate address conversion circuit 160. The coordinate address conversion circuit 160 converts the reference coordinates RCRD output by the image conversion circuit 130 into a read address RADD of the storage circuit 120. The error detection circuit 150 performs error detection by comparing the error code value CDQ calculated based on the read address RADD output by the coordinate address conversion circuit 160 with the expected value CDEX of the error code value.

[0076] According to this embodiment, by comparing the error code value CDQ obtained from the read address RADD with its expected value CDEX, it can be confirmed whether the reference coordinate RCRD output by the image conversion circuit 130 is accurate. Since error detection is performed after the coordinate address conversion circuit 160, compared with the case of error detection by the reference coordinate RCRD, not only can abnormalities in the image conversion circuit 130 be detected, but also abnormalities in the coordinate address conversion circuit 160 can be detected.

[0077] 4. Example of the fourth structure

[0078] The fourth structural example is an example of interpolation operations in image conversion. The structure of circuit device 100 is similar to... Figure 6 same.

[0079] Figure 8 This diagram illustrates the error detection in the fourth structural example. Basic actions and... Figure 7 The same applies, but in the fourth structural example, the coordinate address conversion circuit 160 outputs multiple read addresses based on one reference coordinate. Figure 8 The example shown illustrates how the reference coordinates (sa1, ta1) are converted into 4×4 read addresses.

[0080] P1, P2, ..., P16 are 4×4 pixels surrounding the reference coordinates (sa1, ta1) in the first image data IMA. The coordinate address conversion circuit 160 outputs read addresses RADD1_1, RADD1_2, ..., RADD1_16 for reading the pixel data of these pixels P1, P2, ..., P16 from the storage circuit 120. The image conversion circuit 130 performs interpolation based on the pixel data of pixels P1, P2, ..., P16 read from the storage circuit 120 to calculate the pixel data at the output coordinates (xa1, ya1).

[0081] Similarly, the coordinate address conversion circuit 160 outputs 4×4 read addresses for each of the reference coordinates (sa2, ta2), (sa3, ta3), ..., (sa3072, ta3072). The image conversion circuit 130 calculates the pixel data for each of the output coordinates (sa2, ta2), (sa3, ta3), ..., (sa3072, ta3072) through interpolation.

[0082] The arithmetic circuit 151 calculates the error code value CDQ based on all read addresses output by the coordinate address conversion circuit 160 in one frame. Alternatively, the arithmetic circuit 151 can also calculate the error code value CDQ based on the representative read address of one frame. Figure 8 The example shown illustrates setting RADD1_1 in the read addresses RADD1_1 to RADD1_16 as the representative read address.

[0083] In the above embodiment, the coordinate address conversion circuit 160 outputs multiple read addresses RADD1_1 to RADD1_16 corresponding to the multiple pixel data used for interpolation operations in image conversion. The error detection circuit 150 performs error detection by comparing the error code value CDQ obtained from the multiple read addresses RADD1_1 to RADD1_16 with the expected value CDEX.

[0084] According to this embodiment, errors in multiple read addresses RADD1_1 to RADD1_16 corresponding to multiple pixel data used for interpolation can be detected simultaneously by comparing the error code value CDQ with the expected value CDEX.

[0085] In addition, in this embodiment, the error detection circuit 150 can also perform error detection by comparing the error code value CDQ obtained from the representative read addresses among the multiple read addresses RADD1_1 to RADD1_16 with the expected value CDEX.

[0086] According to this embodiment, the error code value CDQ is calculated only based on the representative read address, thus reducing the computational load on the error code value CDQ. Furthermore, error detection can be performed separately for read addresses other than the representative read address. Specifically, since the relative positional relationships between the multiple pixel data used for interpolation are known, the read addresses of the multiple pixel data can be calculated based on the representative read address. By comparing this read address as a desired value with the read address output by the image conversion circuit 130, error detection can also be performed for read addresses other than the representative read address.

[0087] 5. Example of the fifth structure

[0088] Figure 9 This is the fifth structural example of the circuit device 100 in this embodiment. The fifth structural example is an example of distortion correction through forward warp. In addition, descriptions of structural elements that are the same as those already described are appropriately omitted.

[0089] Forward warping is a process of calculating the warping of the pixel data of the second image data IMB at the corresponding motion destination coordinates by moving each pixel data of the first image data IMA to the motion destination coordinates corresponding to each pixel data. Specifically, the image conversion circuit 130 outputs the motion destination coordinates WCRD of the second image data IMB corresponding to each pixel data of the first image data IMA, based on the correction parameter WP, which is a warping parameter. The coordinate address conversion circuit 160 converts the motion destination coordinates WCRD into the write address WADD of the storage circuit 120. The write address WADD is the address corresponding to the motion destination coordinates WCRD. The storage circuit 120 writes the pixel data of the first image data IMA to the write address WADD. The image conversion circuit 130 outputs the second image data IMB by performing interpolation operations based on the pixel data PXDT read from the storage circuit 120.

[0090] Figure 10 This diagram illustrates the error detection in the fifth structural example. Here, an example using a lookup table as the correction parameter WP is shown. Furthermore, the pixel count of the first image data IMA is set to 64×48. Alternatively, distortion correction can be performed using a polynomial representing the relationship between the coordinates on the first image data IMA and the coordinates on the second image data IMB; in this case, the correction parameter WP is the coefficient of the polynomial.

[0091] The correction parameter WP is a lookup table that associates the coordinates on the input side with the amount of movement from those input coordinates to the destination coordinates on the output side. The input coordinates represent the coordinates on the first image data IMA, and the destination coordinates on the output side represent the coordinates on the second image data IMB. xb1, xb2, ..., xb10 are the horizontal scan coordinates on the input side, and yb1, yb2, ..., yb10 are the vertical scan coordinates on the input side. ub1, ub2, ..., ub10 are the amount of movement in the horizontal scan direction, and vb1, vb2, ..., vb10 are the amount of movement in the vertical scan direction. For example, the destination coordinates on the output side corresponding to (xb1, yb1) on the input side are (xb1 + ub1, yb1 + vb1).

[0092] The image conversion circuit 130 uses the aforementioned correction parameter WP to determine the motion destination coordinates (sb1, tb1), (sb2, tb2), (sb3, tb3), ..., (sb3072, tb3072) on the second image data IMB, corresponding to the coordinates (1, 1), (2, 1), (3, 1), ..., (64, 48) of each pixel in the first image data IMA. For pixel positions not found in the lookup table of the correction parameter WP, the image conversion circuit 130 determines the motion destination coordinates, for example, through interpolation.

[0093] The coordinate address conversion circuit 160 converts the destination coordinates (sb1, tb1) into a write address WADD1. The write address WADD1 is, for example, the address storing pixel data located at the coordinates closest to the destination coordinates (sb1, tb1) in the second image data IMB. Similarly, the coordinate address conversion circuit 160 converts reference coordinates (sb2, tb2), (sb3, tb3), ..., (sb3072, tb3072) into write addresses WADD2, WADD3, ..., WADD3072.

[0094] The arithmetic circuit 151 calculates the error code value CDQ based on the write addresses WADD1, WADD2, WADD3, ..., WADD3072 of one frame output by the coordinate address conversion circuit 160. If the destination coordinates and write address are correctly calculated, the same write address should be output for the same correction parameter WP. Therefore, one expected value CDEX corresponds to one correction parameter WP. The comparison circuit 152 compares the error code value CDQ calculated by the arithmetic circuit 151 with the expected value CDEX to confirm whether the coordinate address conversion circuit 160 has output the accurate write address.

[0095] The above illustrates an example of the arithmetic circuit 151 calculating the error code value based on the write address. However, the arithmetic circuit 151 can also calculate the error code value based on the coordinates of the moving destination. Furthermore, similar to the second structural example, the image conversion circuit 130 can switch correction parameters during vertical blanking, and the error detection circuit 150 can use the expected value corresponding to these correction parameters for error detection.

[0096] The circuit arrangement of this embodiment described above includes a storage circuit, an image conversion circuit, and an error detection circuit. The storage circuit stores the input first image data. The image conversion circuit outputs reference coordinates representing the pixel positions on the first image data, and outputs second image data based on the pixel data read from the storage circuit according to the output reference coordinates. Thus, an image conversion based on coordinate transformation is performed on the first image data. The error detection circuit detects errors in the reference coordinates output by the image conversion circuit.

[0097] According to this embodiment, by performing error detection on the reference coordinates output by the image conversion circuit, the accuracy of the reference coordinates output by the image conversion circuit can be confirmed with high precision. Therefore, abnormalities in the image conversion circuit can be detected with high precision.

[0098] Furthermore, in this embodiment, the error detection circuit can also perform error detection by comparing the error code value obtained from the reference coordinates output by the image conversion circuit with the expected value of the error code value.

[0099] According to this embodiment, by comparing the error code value obtained from the reference coordinates with its expected value, it can be confirmed whether the reference coordinates output by the image conversion circuit are accurate. Since the reference coordinates are real values, the error detection accuracy can be expected to be higher when error detection is performed using reference coordinates compared to the case where error detection is performed after converting the reference coordinates to an integer read address.

[0100] Furthermore, in this embodiment, the circuit device may also include a coordinate address conversion circuit. The coordinate address conversion circuit converts the reference coordinates output by the image conversion circuit into a read address for the storage circuit. The error detection circuit performs error detection by comparing the error code value calculated based on the read address output by the coordinate address conversion circuit with the expected value of the error code value.

[0101] According to this embodiment, by comparing the error code value obtained from the read address with its expected value, the accuracy of the reference coordinates output by the image conversion circuit can be reduced. Since error detection is performed after the coordinate address conversion circuit, compared with the case of error detection based on the reference coordinates, not only anomalies in the image conversion circuit but also anomalies in the coordinate address conversion circuit can be detected.

[0102] Furthermore, in this embodiment, the coordinate address conversion circuit can also output multiple read addresses corresponding to the multiple pixel data used for interpolation operations in image conversion. The error detection circuit performs error detection by comparing the error code value obtained from the multiple read addresses with the expected value.

[0103] According to this embodiment, errors in multiple read addresses corresponding to multiple pixel data used for interpolation operations can be detected simultaneously by comparing the error code value with the expected value.

[0104] Furthermore, in this embodiment, the coordinate address conversion circuit can also output multiple read addresses corresponding to the multiple pixel data used for interpolation operations in image conversion. The error detection circuit performs error detection by comparing the error code value obtained from the representative read address among the multiple read addresses with the expected value.

[0105] According to this embodiment, since the error code value is calculated only based on the representative read address, the computational load of the error code value can be reduced.

[0106] Furthermore, in this embodiment, the circuit device may also include an interface circuit that achieves the desired value.

[0107] According to this embodiment, a desired value corresponding to a correction parameter can be input to the circuit device from outside the circuit device. The correction parameter varies depending on the coordinate transformation performed, but the desired value corresponding to the correction parameter can be set from outside the circuit device.

[0108] Furthermore, in this embodiment, the interface circuit obtains the expected value corresponding to the correction parameters representing the coordinate transformation. The image conversion circuit outputs reference coordinates based on the correction parameters. The error detection circuit uses the expected value corresponding to the correction parameters to perform error detection.

[0109] According to this embodiment, the error detection circuit calculates an error code value based on reference coordinates output based on correction parameters, and compares the error code value with the expected value corresponding to the correction parameters. This allows confirmation of whether the reference coordinates output based on the correction parameters are accurate.

[0110] Furthermore, in this embodiment, coordinate transformation can also be coordinate transformation in image distortion correction or image scaling.

[0111] Distortion correction and scaling are image transformations that involve coordinate transformation. Anomaly detection of the image transformation circuit can be achieved by detecting errors in the reference coordinates output by the image transformation circuit during this transformation.

[0112] In addition, in this embodiment, the error detection circuit can also perform error detection using CRC.

[0113] According to this embodiment, the error detection circuit can calculate the CRC code by sequentially encoding the reference coordinates output by the image conversion circuit. Furthermore, high-precision error detection can be achieved using CRC.

[0114] Furthermore, the error detection method of this embodiment includes: storing first image data in a storage circuit. The error detection method also includes: performing a coordinate-based image transformation on the first image data, and outputting the transformed second image data. The error detection method further includes: during the image transformation, outputting reference coordinates representing pixel positions on the first image data, and outputting the second image data based on pixel data read from the storage circuit based on the output reference coordinates. The error detection method also includes: performing error detection on the output reference coordinates.

[0115] Furthermore, although this embodiment has been described in detail above, those skilled in the art should readily understand that various modifications can be made without substantially departing from the present application in terms of new matters and effects. Therefore, all such modifications are included within the scope of this application. For example, in the specification or drawings, any term that is described at least once with a different term that is more general or synonymous can be replaced with that different term anywhere in the specification or drawings. Moreover, all combinations of this embodiment and its modifications are also included within the scope of this application. Furthermore, the structure and operation of error detection circuits, circuit devices, or processing devices are not limited to those described in this embodiment, and various modifications can be implemented.

Claims

1. A circuit device, characterized in that, It includes: A storage circuit that stores the input first image data; An image conversion circuit uses a correction parameter representing the correspondence between "reference coordinates representing pixel positions on the first image data and output coordinates representing pixel positions on the second image data" to output the reference coordinates corresponding to the output coordinates, reads pixel data of the first image data corresponding to the output reference coordinates from the storage circuit, and outputs pixel data of the output coordinates of the second image data based on the read pixel data, thereby performing coordinate-based image conversion on the first image data; as well as An error detection circuit calculates an error code value based on the reference coordinates output by the image conversion circuit or the read address obtained by converting the reference coordinates into a read address of the storage circuit, and compares the error code value with the expected value of the error code value pre-calculated based on the correction parameters, thereby performing error detection for the reference coordinates.

2. The circuit device according to claim 1, characterized in that, The circuit device includes a coordinate address conversion circuit that converts the reference coordinates into the read address. The error detection circuit performs error detection by comparing the error code value obtained from the read address output by the coordinate address conversion circuit with the expected value.

3. The circuit device according to claim 2, characterized in that, The coordinate address conversion circuit outputs multiple read addresses corresponding to multiple pixel data used for interpolation operations in the image conversion. The error detection circuit performs error detection by comparing the error code value obtained from the plurality of read addresses with the expected value.

4. The circuit device according to claim 2, characterized in that, The coordinate address conversion circuit outputs multiple read addresses corresponding to multiple pixel data used for interpolation operations in the image conversion. The error detection circuit performs error detection by comparing the error code value obtained from the representative read address among the plurality of read addresses with the expected value.

5. The circuit device according to any one of claims 1 to 4, characterized in that, The circuit device includes an interface circuit that obtains the desired value.

6. The circuit device according to claim 5, characterized in that, The interface circuit obtains the expected value corresponding to the correction parameter. The error detection circuit uses the expected value corresponding to the correction parameter to perform the error detection.

7. The circuit device according to claim 1 or 2, characterized in that, The coordinate transformation refers to coordinate transformation in image distortion correction or image scaling.

8. The circuit device according to claim 1 or 2, characterized in that, The error detection circuit performs the error detection using CRC, where CRC is Cyclic Redundancy Check.

9. An error detection method, characterized in that, The error detection method includes: The storage circuit stores the first image data; Perform coordinate-based image transformation on the first image data, and output the transformed second image data; In the image conversion, a correction parameter representing the correspondence between "reference coordinates representing pixel positions on the first image data and output coordinates representing pixel positions on the second image data" is used. The reference coordinates corresponding to the output coordinates are output. Pixel data of the first image data corresponding to the output reference coordinates are read from the storage circuit. Based on the read pixel data, pixel data of the output coordinates of the second image data are output. Based on the output reference coordinates or the read address obtained by converting the reference coordinates into the read address of the storage circuit, an error code value is calculated. The error code value is then compared with the expected value of the error code value pre-calculated based on the correction parameters, thereby performing error detection for the reference coordinates.

Citation Information

Patent Citations

  • Circuit device and electronic apparatus

    JP2019149760A

  • Circuit device, electronic device, and mobile body

    CN111861865A