The invention pertains to an image processing method and device for reproducing original images that are stored in the form of pixels at a different scale.
Images frequently need to be reproduced on output devices, such as monitors and printers, at a different scale relative to the original image, i.e., in enlarged or reduced form. The original image information is represented by intensity values that are stored at addresses of an electronic storage medium, and the addresses of the image intensity values are assigned to certain area elements of the image that are also referred to as pixels. It is common practice to store the intensity values of the individual pixels point-by-point in a row, with the rows being stored successively, i.e., in the form of a matrix of columns and rows. In a 1:1 reproduction, each pixel of the output device reflects the intensity value of the associated pixel of the original image. In the known Nearest Neighbor Interpolation method, only the intensity values of those area elements which spatially lie closest to the pixels of the output device are respectively utilized. When reproducing a reduced image, for example, at a scale of 1:2, with this interpolation method, only every fourth pixel of the original image would be reproduced, and the originally existing image information would not be utilized in its entirety.
This also applies, in principle, to known image processing methods of higher order, e.g., the bilinear interpolation or bicubic interpolation methods, in which the intensity values of the pixels of the output device are calculated in a distance-weighted fashion relative to the spatial position of the original pixels. One common aspect of all these methods is that the stored intensity values for the pixels of the original image are processed in the form of raster points, and that the two-dimensional size of the pixels that corresponds to their physical reality is not part of the image information utilized. However, it has been recognized that an improved reproduction, by comparison to this known state of the art, can be achieved if the intensity values of the pixels are not processed in a distance-weighted, but rather in an area-weighted fashion.
Consequently, the invention is based on the objective of disclosing a method of the initially mentioned type that makes it possible to easily achieve an optimal and complete utilization of the original image information for any arbitrary two-dimensional configuration of pixels and any conversion scale. This objective is attained with the characteristics disclosed in the independent claim.
When reproducing reduced images, the invention provides the additional advantage that the signal/noise ratio of the respectively assigned pixels of the output image is significantly increased when processing noisy original images.
The invention, as well as other embodiments thereof defined in the dependent claims, are described in greater detail below with reference to the figures, wherein
In the Nearest Neighbor Interpolation method indicated in
The method according to the invention is schematically illustrated in
For example, the area element (pixel) in the upper left corner of the output device is initially discussed, wherein ĩ=1 and {tilde over (j)}=1 apply to this area element. This area element overlaps the honeycomb-shaped areas of the original image that are identified by the reference symbols A1 through A4, with the respective degrees of mutual overlap being defined as g1=1, g2=ΔA2/A2, g3=ΔA3/A3 and g4=ΔA4/A4. Stored intensity values Si are assigned to and correspond to the areas Ai of the original image, and the weighted arithmetic mean is respectively determined for the intensity values {tilde over (S)}ĩ,{tilde over (j)} to be assigned to the individual pixels of the output device from these intensity values Si, wherein the respective degree of overlap of the pixels is used as the weighting factor gi. In the discussed example, this means
The above-described step is analogously repeated for the remaining pixels of the output device. Σigi=v2 always applies with respect to pixels of the output device that do not adjoin the edges, i.e., pixels that are entirely overlapped by area elements of the original image, where v2 corresponds to the area of the output pixels.
If the original image consists of rectangular pixels and the output device also outputs rectangular pixels, the calculation of the signal intensities of the output pixels can be generally formulated in an algorithmic fashion as shown below:
where v is the conversion factor, gĩ,{tilde over (j)},i,j is the area-related fraction of the i, j-th area element of the original image at the ĩ,{tilde over (j)}-th area element of the output device, and nx, ny refer to the number of columns and rows in the original image.
When reproducing a reduced image (v>1), it can be demonstrated that the method according to the invention makes it possible to process noisy original images such that the signal/noise ratio of the output pixels is significantly increased, i.e., improved. If an image is reproduced that is uniformly exposed to a mean N of roentgen photons per area element and in which each area element has a signal intensity Si=N, a statistical noise Ri={square root}{square root over (N)} and consequently a signal/noise ratio Si/Ri={square root}{square root over (N)}, and in which the pixels of the input image are identified by the reference symbol i analogously to
and the corresponding signal/noise ratio, according to Gauss's law of errors propagation, becomes
the value of the parenthetical term is always greater than one, and represents the factor by which the signal/noise ratio of the output image is improved by comparison to the original image. The following table lists these factors for different values of v in accordance with the specific image processing method.
According to this table, only the bilinear interpolation method makes it possible to achieve an improvement of the signal/noise ratio for v=2 that is the equivalent to that of the method according to the invention. In all other instances, the method according to the invention results in a less noisy reduction of the original images. This is of significant importance, e.g., with respect to medical X-ray images, because it enables the physicians to make a more precise diagnosis.
If in the original image and the output device rectangular or square area elements are present in which the widths and heights of the area elements are proportional to one another, the calculation of the signal intensities can be simplified, by comparison to the calculation of the signal intensities according to equation (2), as follows:
In this case, the sum of a smaller number of addends is formed. The function INT conventionally refers to the rounding off of the respective argument to the next integral value, while the function RUND used in the determination according to the invention is defined as RUND(a)=INT(a)+1−INT(1+INT(a)−a), where a represents the respective argument.
The weighting factors shown were calculated by determining the interval limits of the i, j-th area element of the original image indicated on the left and at the top as well as the ĩ, {tilde over (j)}-th area elements of the output device from the reduction scale, respectively calculating the overlap in the row direction and the column direction and forming the product thereof. This is described in greater detail below with reference to the pixel of the output device (ĩ=2, {tilde over (j)}=2) that is bordered by a bold line in
These weighting factors are then used for calculating the reproduced signal intensity {tilde over (S)}ĩ=2,{tilde over (j)}=2 for the corresponding pixel of the output device in accordance with equation (3). The signal intensities of the remaining pixels of the output device are determined analogously.
If the reduction factors consist of fractions of rational numbers, i.e., numbers with v=n/m in which n, m are natural numbers, as is the case with 1.6=8/5 in the example illustrated in
Number | Date | Country | Kind |
---|---|---|---|
103 45 278 8 | Sep 2003 | DE | national |