Apparatus for geometrical correction of a distorted image

Abstract: In an apparatus for geometrical correction of a distorted image vertical lines in the distorted image, which are curved by distortion are converted to straight vertical lines in a first image period. In the subsequent image period horizontal lines in the distorted image, which are curved by distortion, are converted into straight lines. As the correction is effected in stages, it can be performed in a relatively fast manner, and a corrected image is available after one image period.

Description: The invention relates to an apparatus for geometrical correction of a distorted image, having an input for receiving a digital video signal comprising first and second image periods and comprising image values I(u,v) which belong to image elements, defined by coordinates (u,v), of the distorted image, an output for supplying a digital corrected image signal comprising image values I(x,y) belonging to image elements defined by coordinates (x,y), of a corrected image, an image store connected to the input for storing the digital video signal, the image store comprising a first and a second sub-memory which are connected to a control member and an address generator connected to the image store, The invention also relates to an X-ray examination apparatus including an apparatus for geometrical correction of a distorted image. Such an apparatus is disclosed in the United States Patent US 4,736,399 . When an X-ray image of an object is produced by detection of the X-rays which are locally intensity-modulated by the object by means of an X-ray image intensifier tube, geometrical distortions are produced in the image. An input screen of the X-ray image intensifier tube is usually curved, which results in a barrel or pin-cushion distortion of the X-ray image to be displayed. The television pick-up device coupled to an output window of the X-ray image intensifier tube also introduces image distortion, as a result of which distances in the ultimate X-ray image do not correspond to the actual dimensions. This is particulary disturbing if quantative data on relative positions of objects must be derived from the X-ray image and, in tomographic imaging, disturbs an accurate image reconstruction. To obviate these disadvantageous effects, the X-ray image is subjected to a geometrical correction, for which purpose the video signal received from the television pick-up device is digitized and stored in a memory of an image correction device. Thereafter image values I(u,v) of the digitized video signal are converted into image values I(x,y) of a corrected video signal. Therein u and v are the coordinates of an image element in the distorted X-ray image, and x and y the coordinates associated with this image element in the corrected X-ray image. For each pair of coordinates (x,y) of the corrected X-ray image the image value I(u,v) associated therewith and stored at an address corresponding to coordinates (u,v), is stored again at an address corresponding to coordinates (x,y). Herein the relation between addresses corresponding to (x,y) and (u,v) are recorded as a vector in a RAM. The corrected image values I(x,y) are applied to a television monitor via a DA converter. Such a method of image correction has the disadvantage that before correction can be effected, the entire X-ray image must first be stored in a memory. Consequently the time required for image correction is relatively long. Particularly during operations while using fluoroscopy it is desirable to have the corrected X-ray images available as quickly as possible. A method for correcting an image having a geometrical distortion by means of a test image of a regular grid is known from the French patent application FR 2 633 793 . The invention has i.a. for its object to provide an apparatus with which it is possible to correct an X-ray image of an object within a small number of image periods of a video signal. It is also an object of the invention to provide an apparatus which can effect an image value correction in addition to the image correction for geometrical distortion. To that end, an apparatus as defined by claim 1 is conceived. The image values I(u,v) of the digitized video signal are stored in a first image period at addresses XV in the first sub-memory, whereby the vertical lines which in the distorted image were curved by geometrical distortion, are corrected to straight lines. In the subsequent image period the image values stored at the addresses XV are applied to the output in a sequence determined by the address generator. In this situation, the image values, for example, are applied as a time sequence to the output, consecutive image values being located along image lines in the corrected image. Simultaneous with reading of the first sub-memory and applying of the image values I(x,v) to the output in the correct sequence, the new incoming video signal is stored in the second sub-memory at addresses XV. Because of the phased image correction it is possible to have the corrected images available after one image period (40ms). A preferred embodiment of an apparatus in accordance with the invention, is characterized in that the address generator includes a first Table with x-address values belonging to coordinates (u,v) and a second Table with y-address values belonging to coordinates (x,v). The address generator generates within one image period simultaneously x-address values of addresses XV which correspond to coordinates (x,v) in the partly corrected value and y-address values of addresses XY which correspond to coordinates (x,y) in the undistorted image. As the address generator performs assigning of the pairs of coordinates (x,y) in the undistorted image, belonging to a pair of coordinates (u,v) of the distorted image in two steps, a parallel addressing can be used. During an image period the x-address values for the incoming video signal, and the y-address values for a video signal recorded during a preceding image period are generated simultaneously. This renders it possible for an image correction of an image discretized into 512*512 image elements to be significantly faster than the prior art image correction method. A further preferred embodiment of an apparatus in accordance with the invention, is characterized in that the control member applies at each image values I(u,v) an u-address value and a v-address value, corresponding to the coordinates (u,v) of the associated image elements, of addresses UV to the address generator, the address generator including a first Table with address incrementing values Δu stored at addresses UV, an adder arrangement for assembling the x-address value from the sum of the u-address value and the address incrementing value Δu, a Table with address incrementing values Δv stored at addresses UV and a further adder arrangement for assembling the y-address values from the sum of the v-address value and the address incrementing value Δv. Since the address incrementing values, which are formed by smaller numbers (6 bit) than the overall x- or y-address values (9bit), are stored in the address generator, the required memory space can be reduced by a factor of 1/3. A still further preferred embodiment of an apparatus in accordance with the invention, is characterized, in that the apparatus includes a third memory connected to the control member and to a multiplier for multiplying the video signal I(x,y) by a correction factor stored in the third memory, and for supplying the multiplied video signal to the output. After geometrical image correction the signal values are corrected for, for example, a brightness variation in the X-ray image due to the geometry of an input screen of the X-ray image intensifier tube or inhomogeneities of the X-ray beam. An embodiment of the apparatus in accordance with the invention, is characterized in that the control member includes a counter, the first and second sub-memories being constituted by RAM-memories, the respective read-write selection inputs of the sub-memories being connected to the counter in the inverted mode relative to each other for the supply of a periodical logic-high signal with a period equal to two image periods. The counter, for example a 19-bit binary counter, generates binary numbers at the counter output at, for example, a clock rate of 6.6 MHz. At this frequency 512*512 numerical values are generated within a 40ms image period. The output of the counter at which the most significant bit (the 19th bit) appears, is connected to the read-write selection inputs of the sub-memories, as a result of which during a first number of 512 2 clock pulses of the counter a logic low level is applied to the read-write select input of the first sub-memory and a logic high level to the read-write select output of the second sub-memory. After 512 2 clock pulses, that is after one image period, a logic high level is present at the counter output having the most significant bit, so that the sub-memory which is in the write mode is adjusted to the read mode, and the sub-memory that is in the read mode is adjusted to the write mode. Such a control unit is simple to realise on the basis of prior art logic components. A further embodiment of an apparatus in accordance with the invention, is characterized in that between the input and the output a gate circuit is arranged comprising four three-state buffers each having an activating input connected to the control member, a series arrangement of the first and second buffers being arranged in parallel with a series arrangement of the third and fourth buffers, the inputs of the first and third buffers being connected to the input, the outputs of the second and fourth buffers being connected to the output, the activating inputs of the first and the fourth buffer being inverted relative to the activating inputs of the second and the third buffer, and a node between the first and second buffers being connected to the first sub-memory and a node between the third and the fourth buffer being connected to the second sub-memory. The gate circuit, switching-over per image period, applies image values from the input to one of the sub-memories and corrected image values from the other sub-memory to the output. Some embodiments of an apparatus according to the invention will now be described in greater detail with reference to the accompanying drawings. In the drawing: Figure 1 shows an X-ray examination apparatus provided with an arrangement for image correction; Figure 2 shows possible distortions in an image to be displayed; Figure 3 is a schematic representation of the prior art mode of image correction, Figure 4 shows a manner of image correction using an apparatus in accordance with the invention, and Figure 5 shows an apparatus in accordance with the invention. Figure 1 shows an imaging system, more specifically an X-ray imaging system, in which an X-ray beam 3 emitted by an X-ray source 1 is locally intensity-modulated by an object 5. A modulated X-ray beam 3' is incident on an input screen 7 of an X-ray image intensifier tube 9 and is there converted into a fluorescent image which is displayed on an output screen 11 after its intensity has been amplified in an electron-optical manner via electrons released in a photocathode. A television camera 13 converts the fluorescent image into an electric video signal which can be applied to a display unit 14 for display as a visible image. Via an analog-to-digital converter 15 the video signal is applied to an image correction device 17, in which geometrical distortion is digitally corrected. The device 17 applies the digital image values in a predetermined sequence to a digital-to-analog converter 19 for display by means of the display unit 14. When medical surgery is performed on internal structures of a patient, such as arteries, while performing fluoroscopy, is of importance for a proper recognition of the structures that these are geometrically displayed in as faithful a manner as possible. Also with tomographic imaging, in which a three-dimensional image is reconstructed from a series of two-dimensional absorbtion profiles of an object, it is important for an accurate image reconstruction that the absorbtion profiles are free from geometrical distortions. In the image to be displayed, these distortions are produced by a curvature of the input screen 7, the position of the electronoptic system of the X-ray image intensifier tube 9 relative to the geomagnetic field and by an optical system, if any, arranged between the output screen of the X-ray image intensifier tube 9 and the television camera 13. Figure 2 shows how image elements arranged along straight lines in a rectangular system of coordinates (x,y) (Figure 2a) get located along curved lines due to barrel or pin-cushion distortion (Figure 2b and Figure 2c, respectively). An image of a testobject formed by a rectangular mesh structure of X-ray absorbing material, is displayed in a distorted manner, as shown in Figures 2b and 2c. An image on the output screen 11 of the X-ray image intensifier tube 9 is converted by the television camera 13 into a video signal for display on the display unit 14 in accordance with an interlaced line pattern assembled from two interlaced image fields. Image pick-up can be effected with the aid of a camera pick-up tube in which a charge image corresponding to a fluorescent image on a phot-conductive layer is scanned as two interlaced image fields by an electron beam. The television camera may alternatively include a CCD camera, in which a charge pattern which is formed in a layer of semiconductive material under electrodes, is transferred in accordance with, for example, a frame transfer method in one run to a memory matrix of CCD cells. Thereafter a second charge pattern is formed in the semiconductor material in positions which are shifted relative to the first pattern, while a line-sequential reading of the charge pattern stored in the memory matrix is effected, a video signal which is proportional to the charge then being produced. In synchronism with the operation of reading the charge images in the television camera 13, the video signal thereby generated is displayed on the display unit 14. The video signal, generated by the television camera and digitized thereafter, represents the image values of a distorted image located in an image plane defined by coordinates (u,v). In the prior art image correction arrangement the image values I(u,v) are stored at addresses UV in the memory of the image correction arrangement 17. Then, the addresses UV form a matrix which corresponds to the coordinates (u,v). As is shown in Figure 3, the stored digitized image is corrected image element sequentially. To that end, the image values I(u,v) of the digitized image are again stored at addresses XY arranged in a matrix which correspond to coordinates (x,y) of the undistorted image. The memory in which the image values I(u,v) have been stored is read along, for example, the consecutive lines DD', EE', FF' etc, the points A, B and C then being stored at the addresses A', B' and C' which are located on a horizontal line in the matrix of addresses XY. The relationship between the addresses UV and XY (or between the point (u,v) and (x,y) is determined with the aid of the image of a test object in the shape of an X-ray absorbing mesh. After correction the addresses XY are applied in a sequence which corresponds to interlaced image lines to the display unit 14 via the digital-to-analog converter. In an image correction device in accordance with the invention, the image values I(u,v) belonging to coordinates (u,v) of the distorted image are stored in a first image period at addresses XV in a first sub-memory. To that end the address generator supplies for each image value I(u,v) an address value of the address XV at which the relevant image value is stored. In response thereto, vertical lines in the distorted image which are curved by distortion, are converted into straight lines. Figure 4a shows a picture of a rectangular mesh such as it is distributed over a matrix of addresses XV after the first correction stage. During a subsequent correction stage included in the subsequent image period, the contents of the addresses XV are applied in a sequence to the output of the correction device 17, this sequence corresponding to consecutive image elements arranged along a pattern of image lines. For that purpose, the address generator selects for image elements (x,y) (Figure 4b) located along vertical lines, an y-address value and applies the associated image values stored at addresses XV whose v-address value is equal to the y-address value (V= Y) to the output. Figures 4a and 4b show how in the image plane 4b defined by image elements (x,y) for consecutive image elements (x,y 1 ), (x,y 2 ) and (x,y 3 ) located along a vertical line the associated image values are found at the addresses XV 1 , XV 2 , and XV 3 of the addresses arranged in a matrix, as is shown in Figure 4a. The address generator generates the y-address values of the addresses XV 1 , XV 2 and XV 3 associated with the image elements (x,y 1 ),(x,y 2 ) and (x,y 3 ). The content of the addresses XV, for which it holds that V=Y in the matrix of addresses XV is applied to the output of the image correction device 17 at a predetermined rate, so that a corrected image appears on the display device 14. After an image correction of the type described above, the corrected image is rotated through 90° relative to the distorted image. This can be remedied by using an additional correction step, or by a proper orientation of the recording means or by a proper orientation of the display means 14. Figure 5 shows an embodiment of the image correction device 17 in accordance with the invention. The image correction device 17 includes a gate circuit 23. Connected to the gate circuit 23 are two random access (RAM) sub-memories 25 and 26 for storing image values and applying them to the gate circuit. The contents of the sub-memories 25 and 26 can be applied to the output 28 of the image correction device via the gate circuit. The sub-memories 25 and 26 are connected to an address generator 31 via a data selector 29. A control member 33, constituted by a binary counter, is connected to the address generator 31, the data selector 29, the sub-memories 25 and 26 and the gate circuit 23 for the purpose of synchronous address generation and data storage and data release into and from, respectively, the sub-memories 25 and 26. The control member 33 is also connected to a third memory 35 an output of which is connected to a multiplier 37 for multiplying the image values supplied by the gate circuit 23 by a correction factor supplied by the memory 35. An image which is discretized into 512 2 image elements is applied as a series of time-sequential image values to the input 22 of the correction circuit 17. At an image period of 40ms, a rate at which the image values enter amounts, for example, to 6.6 MHz. The control member 33 is constituted by a 19-bit binary counter which is driven with a clock rate of 6.6 MHz. A logic high or a logic low level appears with a frequency of 12.5 Hz (which corresponds to two image periods) at the 19th output of the control member 33 which represents the most significant bit, Q18. When the output Q18 is at the high level, the logic high signal activates the gate circuit 23 such, that the input 22 is connected to the read-write input 47 of the sub-memory 25 via a buffer 39. The read-write input of the sub-memory 26 is isolated from the input 22 by a buffer 43. The read-write input of the sub-memory 25 is isolated from the output 24 by a buffer 41, whereas the read-write input of the sub-memory 26 is connected to the output 24 via a buffer 45. The buffers 39, 41, 43 and 45 are three-state logics buffers which, in dependence of the activating signal generated by the counter 33 convey a signal at their input to their output or have isolated their input from their output. Simultaneously, a logic high signal is applied to the read-write selection input of the sub-memory 25 and a logic low signal to the read-write selection input of the sub-memory 26. In response thereto the sub-memory 25 is adjusted to a read state and the sub-memory 26 to a write state. The image values incoming via the input 22 are entered into the sub-memory 25 whilst simultaneously the content of the sub-memory 26 is applied to the output 24. After one image period the signal at the output Q18 of the counter 33 changes into a logic low level so that the sub-memory 25 is adjusted to the write state and is connected to the output 24 via a buffer 41, whilst the sub-memory 26 is adjusted to the read state and is connected to the input 22 via the buffer 43. The address generator 31 includes two read-only memories (ROM) 51 and 53 each having 512 2 *9 bits memory locations. At the outputs Q0 to Q8, inclusive, of the counter 33 the 9 least significant bits appear which form a u-address value of image value I(u,v) present at that moment at the input 22, the outputs Q0-Q8 being connected to inputs A0 to A8, inclusive, of the memories 51 and 53. leaving the last bit out of account, there appear at the outputs Q9 to Q17, inclusive, the 9 most significant bits which constitute av-address value of the image value I(u,v) applied at that instant to the input 22. The outputs Q9-Q17 are connected to inputs A9 to A17, inclusive, of the memories 51 and 53. Each memory location in the memories 51 and 53 is represented as a twice 9 bit number which defines the relative position of a memory element within a matrix of 512*512 memory elements. The inputs A0-A8 define a row in the matrix of memory elements and the inputs A9-A17 define a column. Incrementing the binary number at the inputs A0-A17 step-wise, results in the memory elements located consecutively along a row in the matrix of memory elements to be energized sequentially. The number pairs UV forming the addresses of the memory 51, correspond to coordinates (u,v) of the distorted image. At each address UV an x-address value has been stored which corresponds to an x-coordinate of an element (x,y) in the undistorted image, which element is associated with the element (u,v) of the distorted image. In the memory 53 the number pairs UV which form the addresses correspond to positions (x,v) of elements in a partly corrected image, the vertical lines which were curved by distortion having been corrected to straight vertical lines. At the addresses UV of the memory 53 y-address values are stored which correspond to a y-coordinate of elements (x,y) in the undistorted image. The output 54 of the memory 51 and the output 55 of the memory 53 are each connected to two inputs of the data selector 29. The data selector 29 has four pairs of input terminals 56a to 56d, each input terminal being suited to the reception of a 9-bit number. A selection input 57 of the data selector is connected to the output Q18 of the counter 33. For each pair of input terminals the data selector 29 is provided with an output terminal, an input terminal of each pair of input terminals being connected to the output terminal in dependence on the signal on the selection input 57. The output terminals 59 and 61 of the data selector are connected to address inputs A0-A8 and A9-A17 of the sub-memory 25, whilst the output terminals 63 and 65 of the data selector are connected to address inputs A0-A8 and A9-A17 of the sub-memory 26. In response to a logic high signal at the selection input 57, the data selector 29 of the sub-memory 25 connects the address inputs A0-A8 to x-address values, generated by the address generator 31, of the address XV and the address inputs A9-A17 to a v-address value of the address XV,the v-address value being given by the most significant portion of the binary number generated by the counter 33 on the output terminals Q8-Q17. As a result thereof, the image values I(u,v) incoming at the input 22 are entered into the sub-memory 25 at addresses XV. At the same time, the data selector 29 of the sub-memory 26 connects the address inputs A0-A8 to the v-address value and the address inputs A9-A17 to the y-values, so that image values stored at addresses VY (which as a result of the first correction stage correspond to the addresses XY) and originating from the sub-memory 26 are applied to the output 24. When the selection input 57 changes to the low state after one image period, the functions of the sub-memories 25 and 26 are interchanged, so that writing is effected in the now empty sub-memory 26 at addresses XV and reading from the sub-memory 25 is effected at addresses XY. Figure 6 shows an embodiment of the address generator 31, the respective address incrementing values Δu and Δv being stored in the memories 51 and 53. The capacity of the memories 51 and 53 amounts in this case to 512 2 *6 = 1.6 Mbits. For each image value I(u,v) the address generator 33 generates the u-address value at the outputs Q0-Q8 and the v-address value at the outputs Q9-Q17. For each image value I(u,v) an address incrementing value Δu is applied to an adder arrangement 7. The counter 31 applies the u-address value to the adder arrangement 7 which, by adding together the u-address value and the address incrementing value Δu produces the x-address value, X. The x-address value is applied to the data selector 57 via the output 54'. In a similar manner the adder arrangement 69 produces from the v-address value and the address incrementing value Δv the y-address value Y, which is applied to the data selector 57 via the output 55'. It should be noted that in addition to its use in an X-ray imaging system the invention is of general usage in an imaging system in which geometrical distortions occur.

Claims: An apparatus (17) for correction of a geometrically distorted image signal representing a sequence of geometrically distorted images, having an input (22) for receiving a digital video signal comprising image values l 1,2 ( u,v ) which belong to image elements, defined by coordinates u and v of the geometrically distorted image, an output (28) for supplying a digital corrected image signal comprising image values l 1,2 ( x,y ) belonging to image elements defined by coordinates x and y , of the geometrically corrected image, an image store (25,26) connected to the input (22) for storing the digital video signal, the image store comprising a first (25) and a second sub-memory (26) which are connected to a control member (33) and an address generator (31) connected to the image store, for generating addresses α 1 ( k,l ) and α 2 ( m,n ) for said first and second submemory respectively, the address generator (31) providing said addresses corresponding to elements defined by coordinates x and y in the geometrically corrected images and associated with respective elements defined by coordinates u and v in the geometrically distorted images characterized, in that the control member (33) is arranged to, during a first image period, to write image values l 1 ( u,v ) of a first distorted image of said sequence in the first sub-memory (25) at addresses α 1 ( x,v ) to read image values l 2 ( x,y ) from the second sub-memory (26) from addresses α 2 ( x,v ) stored therein during an image period preceding said first image period, the control member (33) is further arranged to, during a second image period subsequent to said first image period to write image values l 2 ( u,v ) of a second distorted image of said sequence in the second sub-memory (26) at addresses α 2 ( x,v ) to read image values l 1 ( x,y ) from the first sub-memory (25) from addresses α 1 ( x,v ). An apparatus for correction of a geometrically distorted image as claimed in Claim 1, characterized in that the control member is arranged to simultaneously store image values of the distorted image in the first sub-memory (25) and to read image values of the geometrically corrected image from the second sub-memory (26). An apparatus as claimed in Claim 1 or 2, characterized in that the address generator (31) includes a first Table (51) with x-address values (X) associated with coordinates (u,v) and a second Table (53) with y-address values (Y) associated with coordinates (x,v). An apparatus as claimed in Claim 1 or 2, characterized in that the control member (31) is arranged to apply at each image value an u-address value (U) and a v-address value (V), corresponding to the coordinates (u,v) of the associated image elements, of addresses (UV), to the address generator, the address generator (31) including a Table (51) with increment values AU stored at addresses (UV), associated with said coordinates (u,v) an adder arrangement (67) for assembling the x-address value (X) from the sum of the u-address value (U) and the address incrementing value ΔU, a Table (53) with address incrementing values ΔV stored at addresses UV and a further adder arrangement (69) for assembling the y-address value (Y) from the sum of the v-address value (V) and the address incrementing value ΔV. An apparatus as claimed in any one of the preceding Claims, characterized in that the apparatus includes a third memory (35) to contain at least one correction factor, the third memory (35) being connected to the control member (33) and to a multiplier (37) the multiplier (37) being arranged to multiply image values of the geometrically corrected image by a correction factor from the third memory, and to supply the multiplied image values to the output (28). An apparatus as claimed in any one of the preceding Claims, characterized in that the control member (33) includes a counter, the first and second sub-memories (25,26) are constituted by RAM-memories, and the respective read-write selection inputs of the sub-memories are connected to the counter in the inverted mode relative to each other for the supply of a periodical logic-high signal with a period equal to two image periods. An apparatus as claimed in anyone of the preceding Claims, characterized in that between the input (22) and the output (28) a gate circuit (23) is arranged comprising four three-state buffers (39,41,43,45) each having an activating input connected to the control member (33), a series arrangement of the first (39) and second (41) buffers being arranged in parallel with a series arrangement of the third (43) and fourth (45) buffers, the inputs of the first and third buffers being connected to the input (22), the outputs of the second and fourth buffers being connected to the output (28), the activating inputs of the first (39) and the fourth buffer (45) being inverted relative to the activating inputs of the second (41) and the third (43) buffer, and a node arranged between the first and second buffers being connected to the first sub-memory (25) and a node arranged between the third (43) and the fourth (45) buffer being connected to the second sub-memory (26). An X-ray examination apparatus comprising an X-ray source (1), an X-ray image intensifier tube (9) located opposite the X-ray source (1), a television pick-up device (13) coupled to the X-ray image intensifier and an apparatus for correction (17) of a geometrically distorted image as claimed in anyone of the preceding Claims, said apparatus (17) being connected to the television pick-up device.

Inventors: ELENGA CORNELIS WILLEM, ELENGA, CORNELIS WILLEM
Applicants: KONINKL PHILIPS ELECTRONICS NV, KONINKLIJKE PHILIPS ELECTRONICS N.V.
Application year: 1991
Main classification: G06T5
IPC codes: G06T5, G01N23, H04N5