IMAGE DATA PROCESSING APPARATUS

Abstract: In a digital radiographic technique, a spatial filtering process has been widely intoduced. The image data proces­ sing apparatus comprises first storage means (1) for storing original image data in a digital form which is used for medical diagnosis, filtering means (2) for performing a filtering function to the original image data so as to control spatial frequency characteristics of the original image data, second storage means (3) for storing the filtered image data derived from the filtering means (2), first multiplier means (4) for multiplying the filtered image data which is stored in the second storage means (3), by a first parameter (A) so as to give a first weighted value to the filtered image data, second multiplier means (5) for multiplying the original image data which is stored in the first storage means (1), by a second parameter (B) so as to give a second weighted value to the original image data, parameter input terminal means (8) for producing the two parameters (A;B) and delivering the same (A; B) to the first and second multiplier means (4; 5) respectively, and adder means (6) for performing a linear combination operation between the first and second multi­ plied image data so as to obtain an added image data whose spatial frequency characteristics are cotnrolled to be diffe­ rent from that of the original image data.

Description: The present invention relates to an image data filtering apparatus which performs spatial filtering of image data so as to extract and display image data effective for diagnosis by a physician in a medical image diagnosis apparatus. Digital signal processing techniques are more frequently being used in medical image processing by medical image processing apparatuses such as X-ray CT apparatuses or digital radiography apparatuses. In particular, spatial filtering has an important role as a technique for performing smoothening, or edge enhancement. The document Computer Design, Vol. 18, No. 9, September 1979, pages 93-101, teaches how to add two different image data associated with the same original image. The first image data is obtained by filtering the original image with 3x3 convolution filters and then multiplying the resultant image data by a certain function. The second image data is the original image data multiplied by a different function. This document however does not disclose that even in a low-pass mode of a=b=1, any filter can be obtained by adjusting the adding ratio of the low-pass filtered original image date to unfiltered original image data. In addition in the case of the prior art it is inevitable to carry out the 3x3 convolution every time the filtering characteristic is changed. In view of this prior art it is the object of the present invention to provide an image data processing apparatus capable of high-speed filtering of digital image data which smoothens the data of the original image, and can function as high-pass filter or low-pass filter by adjusting the adding ratio of the original image data to the smoothened image data. This object is accomplished by an image data processing apparatus comprising: first storage means for storing original image data in a digital form; filtering means for performing a filtering function to said original image data so as to control spatial frequency characteristics of said original image data; first multiplier means for multiplying said filtered image data by a first parameter so as to give a first weighted value to said filtered image data; second multiplier means for multiplying said original image data stored in said first storage means, by a second parameter so as to give a second weighted value to said original image data; parameter input terminal means for producing said two parameters and delivering the same to said first and second multiplier means respectively; and adder means for performing a linear combination operation between said first and second multiplied image data so as to obtain an added image data whose spatial frequency characteristics are controlled to be different from that of said original image data, characterized by further comprising: control means for adjusting a first coefficient and a second coefficient to vary characteristics of said filtered image data by the following algebraic expression: G(u,v)=(A2·A1 cos u+A2·B1+B2)F(u,v) where u,v: spatial frequency characteristics of 3x3 filter along x and y axis, F(u,v): input image, G(u,v): output image, A1, A2, B1, B2: weight coefficients of the linear combination, A=A1·A2 and B=A2·B1+B2 and second memory means, connected between said filtering means and said first multiplier means (4), for storing said filtered image data derived from said filtering means, all coefficients of said filtering means (2) are selected to be "1". With an apparatus according to the invention a high-pass or low-pass filter is constituted optionally by controlling the mixing ratio of the smoothened original image data to the original image data: Moreover, the second memory means between said filtering means and said first multiplier means eliminates the need to process the original image data in the filter, even if the parameters (constant) given to the multipliers are changed to vary the filtering characteristic. This permits a faster display of images that are obtained by changing the filtering characteristic. The present invention may be best understood with reference to the accompanying drawings, in which: Fig. 1 shows a schematic diagram of an image data processing apparatus according to one preferred embodiment; Fig. 2A is a representation of a multiplier arrangement of the 3x3 filter, Fig. 2B is a representation of an input pixel of the input image data; Fig. 2B is a partially shown illustration of an input image data in which one input pixel is marked; Fig. 2C is a graphic representation of a spatial frequency characteristic of a filter; Fig. 3 is an illustration for explaining interface circuits with respect to the filter; Figs. 4A and 4B are block diagrams of the internal circuitry of the filter; Fig. 5 is a timing chart of operations of the filter shown in Figs. 4A and 4B; Fig. 6 shows a block diagram of the image data adder device; Fig. 7 is an internal circuit diagram of the parameter input terminal; Fig. 8 Shows an illustration of another embodiment of the parameter input terminal; Fig. 1 is a block diagram of an embodiment of the present invention. Referring to Fig. 1, an original image data storage memory (referred to as "OID" memory) 1 stores digital image data obtained by scanning an object (not shown) by a known digital radiography apparatus of the like. An output from the OID memory 1 is connected to a 3x3 filter 2 and to a multiplier 5 having a multiplication of B. The filter 2 performs a filtering process to be described later. An output from the filter 2 is supplied to a filtered image data storage memory (referred to as "FID" memory) 3 and is stored therein. An output from the FID memory 3 is supplied to a multiplier 4 having a multiplication of A. An output from a parameter input terminal 8 is used for controlling the two multipliers 4 and 5 described above. Outputs from the multipliers 4 and 5 are supplied to an image data adder device (referred to as "adder device") 6 which performs a linear combination to be described later. The sum image data from the adder device 6 is accumulated in a processed image data storage memory (referred to as "PID" memory) 7. The mode of operation of the apparatus described above will now be described. The filter 2 performs the filtering process of smoothening or enhancing the original image data stored in the OID memory 1. The filtered image data from the filter 2 is stored in the FID memory 3. The filtered image data stored in the FID memory 3 is multiplied by A by the first multiplier 4, and the multiplication product is supplied to the image data adder device 6. Meanwhile, the original image data from the OID memory 1 is multiplied by B by the second multiplier 5 and the multiplication product is supplied to the adder device 6. These data are subjected to linear combination such that image data having desired frequency characteristics can be obtained. The mode of operation will be described in further detail. A description will be made with reference to a 3x3 linear non-recursive type two dimensional filter 2 of support size which is adopted in this embodiment. The filter 2 is a basic and important device in image processing and is effective for noise removal, sharpness control, edge enhancement and the like. A 3x3 filter is a filter which performs a convolution given by equation (1) below between a matrix of coefficients a, b and c as shown in Fig. 2A and one input pixel (x, y) as shown in Fig. 2B. cf(x-1, y-1)+bf(x, y-1)+cf(x+1,y-1) +bf(x-1, y)+af(x, y)+bf(x+1, y) +cf(x-1, y+1)+bf(x, y+1)+cf(x+1, y+1) When the spatial frequency characteristics in the x- and y-directions of a 3x3 filter having such filter coefficients a, b and c are designated by u and v, the spatial frequency characteristics of the filter can be given by: H(u, v)=2 cos(u+v)+2b cos v+2c cos(u-v)+2b cos u+a H(u, 0)=(4c+2b)cos u+(a+2b) H(0, v)=(4c+2b)cos v+(a+2b) When the coefficients a, b and c are properly selected, various frequency characteristics can be obtained within a range such that they can be expressed in the form of a function H. As a result, this filter can be used as either a low-pass filter or a high-pass filter. The above-mentioned features will now be described in further detail. The degree of freedom with respect to the u-axis and v-axis is 2, and is determined by parameters A and B (i.e., multiplications A and B of the multipliers 4 and 5, respectively) given by equations (5) and (6) below: 4c+2b=A a+2b=B Using these parameters A and B, equation (3) can be rewritten as equation (7) below: H(u)=A cos u+B The greater the parameter A, the greater the slope of the frequency response curve of the high-pass filter. When the parameter A has a negative value, the filter serves as a low-pass filter. The parameter B defines the ratio of the component of the original image data in the output data. The greater the parameter B, the closer the output image data is to the original image data. The smaller the parameter B, the more significant are the high-pass or low-pass characteristics of the filter. In this manner, the two parameters A and B are significant values in determining the filter characteristics, and can be conveniently used as a measure for determining the spatial frequency characteristics. Assume that the 3x3 filter has the characteristics given by: H(u)=A₁ cos u+B₁ When input image data is designated by F(u, v) and filtered image data is designated by G₁(u, v), we obtain: G₁=HF Taking into account the linear combination between the original image data F and the filtered image data G₁, output image data G₂ is given by: where A₂ and B₂ are weight coefficients of the linear combination. Provided the parameters A and B which determine the filter function are given, we can obtain relation (11) below for the coefficients A₂ and B₂ of the linear combination: Then, the coefficients A₂ and B₂ can be obtained from equation (11) above as Thus, the same filtering result as that of equation (7) above can be obtained from the input parameters A and B. From this, the following conclusion is obtained. That is, if original image data is filtered by a given 3x3 filter and thereafter the original image data and filtered image data are linearly combined with suitable weight coefficients, a desired filtering process as given by equation (7) can be realized. When a 3x3 filter wherein all the coefficients are 1 is considered, the filter does not involve multiplication and only involves nine addition operations, so that high-speed data processing can be performed. The frequency characteristics of such a filter can be given as: H(u, v)=2 cos(u+v)+2 cos v+2 cos(u-v)+2 cos u+1 H(u, 0)=6 cos u+3 H(0, v)=6 cos v+3 The direction dependency of these spatial frequency characteristics can be represented as shown in Fig. 2C using the direction (angle) ϑ as a parameter. When various parameters of the multipliers 4 and 5 are used for a single original image data, the original image data can be filtered once by the 3x3 filter 2. Then, the original image data and the filtered image data stored in the FID memory 3 are multiplied by desired weight coefficients (i.e., parameters) to perform linear combination. Thus, high-speed processing is further facilitated. Fig. 3 shows in detail the interface relationship between the 3x3 filter 2 and the surrounding OID memory 1 and the FID memory 3. When input pixel data is designated by F ij and output pixel data is designated by G ij , a 3x3 filter wherein all the coefficients are 1 is given by: In order to calculate output pixel data G ij corresponding to the x- and y-coordinates of i and j, respectively, input pixel data F i,j and data of the surrounding eight pixels having the pixel F i,j as the center are read out from the OID memory 1 storing the image pixel data F therein. The readout data are added together. Signals X in and Y in produced from the 3x3 filter 2 constitute x- and y-address signals for reading out the input pixel data and surrounding pixel data from the OID memory 1. The readout input pixel data F is sequentially supplied to the filter 2. The output pixel data G ij from the filter 2 is stored in the FID memory 3. Signals X out and Y out are the x- and y-address signals for storing the output pixel data G ij in the memory 3. Figs. 4A and 4B are block diagrams showing the internal circuit of the 3x3 filter 2, and Fig. 5 is a timing chart for explaining the mode of operation of the filter 2. Reference symbols a to I in Figs. 4A and 4B correspond to waveforms a to I in Fig. 5. A signal a is a clock pulse CK and is supplied to a counter 11. The counter 11 frequency-divides the clock pulse a to produce an output signal b. The signal b is supplied to another counter 12. The counter 12 frequency-divides the signal b to obtain an output signal c. The signal c is supplied to a further counter 13. The counter 13 frequency-divides the signal c to obtain an output signal d. The signal d is supplied to a still further counter 14 to be frequency-divided to obtain an output signal e. The signals b and d are added by an adder 32 which produces a signal f. The signals c and e are added by another adder 31 which produces a signal g. The signal f corresponds to the signal X in shown in Fig. 3, while the signal g corresponds to the signal Y in shown in the same figure. Accordingly, the signals X in and Y in are signals for sequentially scanning an area of a 3x3 matrix having the input pixel as the center. The input pixel is then shifted by one pixel in the x-direction and the corresponding 3x3 matrix area is scanned. When scanning of one line is completed in this manner, the input pixel is shifted by one pixel in the y-direction, and a similar scanning operation is repeated. The signals X in and Y in constitute x- and y-addresses for reading out the image data from the OID memory 1. The pixel data from the memory 1 is parallel-supplied to latches 41 to 49 as image data F. The timings at which the data F is latched in these latches 41 to 49 are determined by control signals h₁ to h₉ from a shift register 22. An output timing from the shift register 22 is synchronous with the clock pulse a. Individual image data, i.e., F(0, 0), F(1, 0), F(0, 1), F(2, 0), F(1, 1), F(2, 1), F(0, 2), F(1, 2) and F(2, 2) are latched in the latches 41 to 49, respectively, and appear as outputs i₁ to i₉. The signals i₁ to i₉ are added by adders 51 to 58. A calculation of the term is thus completed. The calculation result is latched in a latch 35 at a timing determined by an output signal k from a shift register 21, which latch then produces a signal I. The signal I constitutes output image data G of the 3x3 filter 2 and is supplied to the FID memory 3 for storing the filtered data- X- and y-address signals X out and Y out for storing the output image data G in the FID memory 3 are obtained by latching the signals X in and Y in by latches 33 and 34 at a timing of the control signal h₅. Fig. 6 is a block diagram for explaining the linear combination of the original image data and the filtered image data from the 3x3 filter. The linear combination circuit comprises an address signal generator 9, the multipliers 4 and 5, and the adder device 6. In the address signal generator 9, a clock pulse a′ is supplied to a counter 61 which frequency-divides the pulse a′ to produce a signal b′. The signal b′ is supplied to another counter 62 to be further frequency-divided to produce a signal c′. The signals c′ and b′ (d′) are used as x- and y-address signals for accessing the memories 1, 3 and 7 shown in Fig. 1. The signals a′ to d′ in Fig. 6 correspond to the signals a to d in Fig. 1, respectively. Readout of the input image data and writing of the processed image data are executed by scanning one line after another from the left to the right of the image shown in Fig. 2B. The readout original image data is supplied as a signal g′ to one input terminal of a multiplier element 65 of the multiplier 5 and the filtered image data is supplied as a signal j′ to one input terminal of a multiplier element 66 of the multiplier 4. Registers 64 and 63 of the respective multipliers 4 and 5 store the parameters A and B supplied from the parameter input terminal 8. The parameters A and B are produced as signals k and k′ in response to shift control signals h′ and e′ and are supplied to the other input terminal of each of the multiplier elements 66 and 65. Then, the multiplier elements 65 and 66 multiply the respective image data by the corresponding weight coefficients, and output data (m′, n′) from the multiplier elements 65 and 66 are supplied to an adder 67 to be added together. In this manner, the linear combination is performed, and processed image data p′ is obtained. The processed image data p′ is stored in a predetermined area of the PID memory 7 which is selected by signals X and Y from the address signal generator 9. Fig. 7 is a block diagram showing an example of the parameter input terminal 8 shown in Fig. 1. The terminal comprises first and second parameter generators 78 and 79. In these generators 78 and 79, variable resistors 71 and 72 are respectively connected between a power supply of +5V and ground. The analog signals obtained from the resistors 71 and 72 are converted into digital signals by A/D converters 73 and 74 and the digital signals are supplied to ALUs 75 and 76, respectively. The ALUs 75 and 76 convert the input signals into parameters and produce the parameters A and B. The ALUs 75 and 76 perform the calculation according to equation (1) such that the analog signals from the resistors correspond to the coefficients of the linear combination. When the parameters supplied from the resistors 71 and 72 are designated by A in and B in and the coefficients of the linear combination are designated by AL in and BL in , we obtain: AL in =A in /6 BL in = B in -A in /2 provided that the 3x3 filter shown in Fig. 1 is a filter wherein all the coefficients are 1. A modification of the parameter input terminal will now be described. In general, in a parameter input terminal, a set of parameters A and B must be designated. This may be said to be equivalent to the selection of one point on the x-y plane. Accordingly, a parameter input terminal 80 as shown in Fig. 8 may be conveniently used, together with an input device such as a digitizer or a light pen device which is capable of designating a single point on the x-y plane. In Fig. 8, parameters A and B are plotted along the two orthogonal axes, that is, the x- and y-axes. Fig. 8 shows the frequency characteristics for 16 typical points. As the parameter A increases (to the right from a central point 82), a sharper high-pass filter frequency response curve is obtained. As the parameter A becomes increasingly negative (to the left from the central point 82), sharper low-pass characteristics are gradually obtained. The parameter B corresponds to the ratio of the original image data component to the processed image data. As the parameter B increases (upward from the central point 82), the processed image data becomes closer to the original image data. It is to be noted that points other than the 16 points indicated in the figure can be designated. In this manner, by designating a point by its coordinates, the spatial frequency characteristics to be obtained can be visually confirmed by the operator, thus improving the operability of the parameter input terminal. According to the present invention, a set of parameters can be selected using a parameter input terminal, so that desired spatial frequency characteristics may be designated. Various types of characteristics can be finely designated. In this case, the frequency characteristics to be obtained can be visually confirmed from the values of the parameters. Accordingly, a spatial filtering apparatus with improved operability can be provided. In accordance with the embodiment using a parameter input terminal which allows designation of the parameters by coordinate points, fine designation can be performed and operability is improved due to easy confirmation of the designated parameters on the x-y plane. In a conventional 3x3 filter, nine multiplication operations are performed for one image data. However, in the present invention, only two multiplication operations are required, so that high-speed operation can be performed. The present invention is not limited to the particular embodiments described above, and various changes and modifications may be made within the scope of the present invention. For example, in the embodiments described above, a 3x3 filter is used for smoothing the image data. However, the present invention is not limited to this. A series of processing steps such as filtering, weighting and addition can be replaced by software to be executed by a computer. In the embodiments described above, the 3x3 filter 2 has a smoothening function. However, a filter having an edge enhancing function can be used.

Claims: An image data processing apparatus comprising: first storage means (1) for storing original image data in a digital form; filtering means (2) for performing a filtering function to said original image data so as to control spatial frequency characteristics of said original image data; first multiplier means (4) for multiplying said filtered image data by a first parameter (A) so as to give a first weighted value to said filtered image data; second multiplier means (5) for multiplying said original image data stored in said first storage means (1), by a second parameter (B) so as to give a second weighted value to said original image data; parameter input terminal means (8) for producing said two parameters (A; B) and delivering the same (A; B) to said first and second multiplier means (4; 5) respectively; and adder means (6) for performing a linear combination operation between said first and second multiplied image data so as to obtain an added image data whose spatial frequency characteristics are controlled to be different from that of said original image data, characterized by further comprising: control means (8) for adjusting a first coefficient (A₂) and a second coefficient (B₂) to vary characteristics of said filtered image data by the following algebraic expression: G(u,v)=(A2·A1 cos u+A2·B1+B2)F(u,v) where u,v: spatial frequency characteristics of 3x3 filter along x and y axis, F(u,v): input image, G(u,v): output image, A1, A2, B1, B2: weight coefficients of the linear combination, A=A1·A2 and B=A2·B1+B2 and second memory means (3), connected between said filtering means (2) and said first multiplier means (4), for storing said filtered image data derived from said filtering means (2), all coefficients of said filtering means (2) are selected to be "1". An apparatus as claimed in claim 1, characterized by further comprising third memory means (7) for storing said filtered image data which is derived from said adder means (6). An apparatus as claimed in claim 1, characterized in that said adder means (6) further includes an address signal generating circuit (9) for frequency-dividing clock pulse signals (CK) so as to generate the address signals which are used to access the first and second storage means (1; 3). An apparatus as claimed in claim 1, characterized in that said control means (8) includes: a first parameter generator (78) comprising a first variable resistor (71 ) for producing a first DC voltage, a first analog-to-digital converter (73) for converting said first DC voltage into a corresponding first digital value, and a first arithmetic logic unit (76) for performing an arithmetic logic operation so as to obtain said first constant from said first digital value, a second parameter generator (79) for producing a second DC voltage, a second analog-to-digital converter (74) for converting said second DC voltage into a corresponding second digital value and a second aritmetic logic unit (76) for performing an arithmetic logic operation so as to obtain said second constant from said second digital value. An apparatus as claimed in claim 4, characterized in that said control means (8) further includes an operation panel (80) on which a plurality of spatial frequency characteristic curves are illustrated and which is electrically coupled to said first and second parameter generators (78; 79), whereby when one of said spatial frequency characteristic curves is designated, said first and second constant generators produce the corresponding first and second constants. An apparatus as claimed in claim 1, characterized in that all coefficients of said filtering means are selected to be "1".

Inventors: UMEMURA, YOSHIYUKI
Applicants: KABUSHIKI KAISHA TOSHIBA
Application year: 1983
Main classification: G06F15
IPC codes: G06T5