patents.google.com

CN1692629A - Image processing apparatus and method - Google Patents

  • ️Wed Nov 02 2005
Image processing equipment and method

Technical field

The present invention relates to a kind of image processing equipment and method, being particularly related to a kind of wide dynamic range image transitions that will have the pixel value dynamic range wideer than conventional dynamic range that preferably is applicable to is the narrow dynamic image with narrower pixel value dynamic range, and the image processing equipment of enhancing contrast ratio and method.

Background technology

Traditionally, be widely used for such as the Image-forming instrument of video camera and stillcamera and such as the optical measuring device of the element inspection equipment that uses among the FA (factory automation) and such as the optical measuring device of the fujinon electronic video endoscope that uses among the ME (medical electronics) such as the solid-state imaging element of CCD (charge coupled device) and CMOS (complementary metal oxide semiconductors (CMOS)) etc.

In recent years, proposed a large amount of technology, be used to obtain compare image (hereinafter referred to as " wide DR image ") with wide pixel value dynamic range with the optics film photo that uses these solid-state imaging elements.

On the other hand, at present, such as the display device that is used to show moving image and rest image of CRT (cathode ray tube) and LCD (LCD), such as the projector equipment of projecting apparatus and the various printing device dynamic range of its supported pixel value of broadening not as yet, and narrow supported brightness colour code is only arranged.Therefore, current state is: even should successfully take wide DE image, also do not have to show as it obtains, projection or print the equipment of this image.

Therefore, demand to such technology (hereinafter referred to as " gray scale compress technique ") is arranged: utilize this technology, the dynamic range of the pixel value of wide DR image is narrowed down, perhaps in other words, compression brightness colour code makes the image (hereinafter referred to as " narrow DR image ") that produces the dynamic range that is suitable for display device etc.

Following paragraph will be explained the gray scale compress technique that proposes usually.The gray scale compress technique can be by redistributing wide DR image the gray scale of pixel value, make to be suitable for and can to realize simply by the gray scale of the narrower dynamic range of supports such as display device.

Yet, as mentioned above, simply the gray scale of the pixel value of wide DR image is redistributed equably to narrow dynamic range, only cause the brightness of integral image to change and reduce, thereby convert the very poor image of outward appearance that contrast reduces to.Usually, propose some and can suppress the gray scale compress technique of the loss of contrast.Below will explain three kinds of gray scale compress techniques that once proposed.

Can be used as the redistribution rule that the first gray scale compress technique comes illustrative technology to relate to determine gray scale adaptively based on the histogram of the brightness of the wide DR image of input (more particularly, calculating the gray scale transformation curve) based on the histogram of input picture.The first gray scale compress technique is a prerequisite with the area occupied that the main object in the image has big ratio, and be used for determining the gray scale transformation curve, make the brightness value of gray scale as much as possible being distributed to the peak value periphery in the histogram, thereby the contrast that suppresses main at least object reduces.

Yet, only be difficult in every kind of situation, all obtain satisfied result with the effort that distributes based on gray scale.Have a plurality of main objects at image, and have in the background and the sample situation (for example blue sky) than the area of broad of same brightness, described object usually can't obtain enough gray scales that is assigned to this place.

Can be used as the second gray scale compress technique comes illustrative technology to relate to the radio-frequency component of strengthening image before or after the gray scale conversion.The second gray scale compress technique is used for estimating to lose by the gray scale conversion part of the contrast of (or being considered to loss), and uses and for example be used for the fuzzy high frequency filter that hides and compensate the part of being lost.

The advantage of the second gray scale compress technique is: it produces the problem of the formation that depends on image unlike the first gray scale compress technique.Yet high frequency filter causes that the overshoot (overshoot) that contours of objects is partly located and the noise at flat place increase the weight of, and therefore are understood that always to guarantee desired image.

Can be used as the 3rd gray scale compress technique comes illustrative technology to relate to wide DR image is divided into low-frequency component image and radio-frequency component image, wherein only the low-frequency component image is subjected to suitable gray scale conversion process and reserved high-frequency component-part diagram picture is not changed, and both are produced a composograph mutually at last.

Because reserved high-frequency component-part diagram picture is not changed in the 3rd gray scale switch technology, so successfully avoided because the contrast that the gray scale conversion causes reduces.Yet, similar with the second gray scale switch technology, the 3rd gray scale switch technology still meets with such problem: partly locate overshoot in contours of objects, and the noise in the office, par increases the weight of, so also proposed a kind of by using nonlinear filter (for example median filter) to solve the method for this problem in the process that is divided into low-frequency component image and radio-frequency component image.

Sum up first to the 3rd above-mentioned gray scale compress technique below, the local relatively processing that they can be classified as by using neighbor realizes the technology (the first and second gray scale compress techniques) of gray scale compression, and uses the whole or big relatively area of image to realize the technology (the 3rd gray scale compress technique) that gray scale compresses.The factitious image that the former has caused its radio-frequency component only to be enhanced, and successfully do not obtain effective gray scale compression result fully.The latter so successfully obtained than the more natural image by the former acquisition, we can say that the gray scale compression is more effective because it can adjust relative low frequency content simultaneously with the reinforcement radio-frequency component.

Yet the problem that the latter meets with is: therefore this process need be mainly used in the mass storage of delay line or frame memory, makes it be unsuitable for hardware construction.For example, the 3rd gray scale compress technique needs spatial filter, be used for brightness is divided into a plurality of frequency contents, wherein can provide unartificial, effective gray scale to compress because have only when using with respect to the bigger spatial filter of image, so, be necessary a large amount of delay lines is integrated with circuit in order to allow that big spatial filter is installed.

Simultaneously, be used to make wide DR image to be subjected to the sample situation of the function that the gray scale compression handles for being intended to install on such as the output block of the imaging device of digital camera and digital stillcamera, because essential high speed signal is handled when guaranteeing pre-determined frame rate output image signal, so the function of handling for the gray scale compression of the digital stillcamera that for example will be integrated with hardware has big demand.Even,, pair demand that the compression of high speed gray scale is handled is arranged because be necessary that the image that will be monitored outputs to view finder so that determine the formation of image for the digital stillcamera that for example is used to take rest image.

As mentioned above, the tight demand to such gray scale compress technique is arranged: it only needs little of the memory span that consumes and light amount of calculation, allows to be easy to hardware construction, and guarantees big gray scale compression effectiveness.Yet, this gray scale compress technique is not proposed as yet.

In first to the 3rd above-mentioned gray scale compress technique, also there is other problem as described below jointly.

First problem relates to and the reinforcement radio-frequency component produces overshoot simultaneously in the brightness that contours of objects is partly located.

In order to suppress this overshoot, be necessary to use the two-dimension non linearity filter of relative large scale (20 * 20 pixels), yet, the two-dimension non linearity filter that is desirably in this size that realizes on the basis of software has caused the problem that the expense that is used to calculate will become high, and the two-dimension non linearity filter that is desirably in this size that realizes on the hardware foundation then causes that owing to delay line in a large number circuit scale will become big problem.

Second problem relates to the control of the contrast reinforcement amount of high luminance area and low-light level district medium-high frequency composition.The above-mentioned second and the 3rd gray scale compress technique something in common is that brightness is divided into low-frequency component and radio-frequency component, and realizes the gray scale compression by strengthen radio-frequency component when keeping suppressing low-frequency component relatively.

Yet, strengthening radio-frequency component causes producing brightness amplitude limit (clipping) at the periphery of acceptable high-high brightness such as display device and minimum brightness, thereby cause the image detail loss, it is suitable to make the gray scale conversion not say so, this has produced the needs to some countermeasure: by these countermeasures, the brightness amplitude limit is avoidable.

Another problem is: even under the situation that does not cause the brightness amplitude limit, too strengthen the image that contrast has caused having the contours of objects part that is strengthened artificially.

Summary of the invention

The present invention considers status and conceives, and its objective is and realize such gray scale compress technique: its needs little with the memory span that consumes and less amount of calculation, allow to be easy to hardware construction, and guarantee big gray scale compression effectiveness.

Another purpose be make might use less memory span, based on less amount of calculation and the contrast that suitably strengthens image based on simple hardware construction.

Image processing equipment of the present invention is characterised in that: it comprises the downscaled images generating apparatus, is used for generating downscaled images from input picture; The control information deriving means is used for obtaining based on downscaled images the control information of input picture; And the gray scale conversion equipment, be used to change the gray scale of input picture; Wherein, the contrast that the gray scale conversion equipment uses control information to proofread and correct input picture is as will be before the conversion gray scale and/or the processing of carrying out afterwards.

This image processing equipment can also comprise smoothing apparatus, is used for generating having pixel intensity L cLevel and smooth after image, described pixel constitutes based on the interpolation of using the pixel that constitutes downscaled images to be calculated and the input picture of smoothing wherein can dispose the gray scale conversion equipment, makes brightness L based on the pixel of composing images c, constitute the brightness L of the pixel of the image after level and smooth 1And predetermined gain value g and image after generating contrast correction.

Can dispose the gray scale conversion equipment, make the brightness L that calculates the pixel that constitutes the image after the contrast correction according to following formula u:

L u=g·(L c-L 1)+L 1

Can dispose reduction means, make will input image be divided into a plurality of, calculate the mean value of the brightness of the pixel that belongs to single, and produce by with the piece equal number and have a downscaled images that described mean value constitutes as the pixel of pixel intensity.

Can dispose smoothing apparatus, make and accurately to make position, and use near the pixel that is present in the position of being made, thereby calculate the pixel intensity L of the image after level and smooth corresponding on the downscaled images of interpolation position (its for the locations of pixels that is interpolated) 1

Can also dispose smoothing apparatus, feasible accurately making corresponding to the position on the downscaled images of interpolation position (it is with the locations of pixels that is interpolated), and use near be present in the position of being made 4 * 4 pixels, thereby calculate the pixel intensity L of the image after level and smooth based on the bicubic interpolation 1

Image processing equipment of the present invention can also comprise: to analog-to-digital conversion apparatus, be used to make formation to be input to the pixel intensity L of smoothing apparatus image before cBe subjected to number conversion; And logarithm inverse conversion device, be used to arrange the brightness of the pixel that constitutes the image after the contrast correction.

Image processing equipment of the present invention can also comprise: smoothing apparatus is used for generation and has pixel intensity L cLevel and smooth after image, described pixel constitutes based on the interpolation of using the pixel that constitutes downscaled images to be calculated and the input picture of smoothing; And the yield value setting device, be used to be provided with and be used for the yield value g of contrast correction; Wherein, can dispose the gray scale conversion equipment, feasible brightness L based on the pixel that constitutes input picture c, constitute the brightness L of the pixel of the image after level and smooth 1And predetermined gain value g generates the image after the contrast correction; And, can dispose the yield value setting device, make based on input initial yield value g 0,

benchmark yield value

1 and use the first luminance threshold Th 1, the second luminance threshold Th 2Brightness L with the pixel that constitutes input picture cPad value attn (the Th that calculates 1, Th 2, L c) yield value g is set.

Image processing equipment of the present invention can also comprise conversion equipment, is used for generating image after the tone conversion by the brightness L that constitutes the pixel of input picture based on transfer function conversion; Smoothing apparatus is used for by making the brightness L of the pixel that constitutes the image after tone is changed cSmoothing and generate image after level and smooth; And the yield value setting device, be used for initial yield value g based on inverse 1/ γ of the slope γ that represents transfer function 0Be used for the yield value g of contrast correction and be provided with; Wherein, can dispose the contrast correction device, feasible brightness L based on the pixel that constitutes the image after tone is changed c, constitute the brightness L of the pixel of the image after level and smooth 1Generate the image after the contrast correction with yield value g; And, can dispose the yield value setting device, make based on input initial yield value g 0,

benchmark yield value

1 and use the first luminance threshold Th 1, the second luminance threshold Th 2Brightness L with the pixel that constitutes the image after tone is changed cPad value attn (the Th that calculates 1, Th 2, L c) and yield value g is set.

Can dispose the yield value setting device, make yield value g to be set according to following formula:

g=1+(g 0-1)·attn(Th 1,Th 2,L c)

Can dispose the yield value setting device, make and calculate pad value attn (Th according to following formula 1, Th 2, L c):

attn(Th 1,Th 2,L c)=|(L c-Th 1)/(Th 2-Th 1)| (2Th 1-Th 2≤L c≤Th 2)

attn(Th 1,Th 2,L c)=1 (L c<2Th 1-Th 2,Th 2<L c)

Can dispose the gray scale conversion equipment, make the brightness L that calculates the pixel that constitutes the image after the contrast correction according to following formula u:

L u=g·(L c-L 1)+L 1

The first luminance threshold Th 1May be defined as medium grey level (level), and the second luminance threshold Th 2May be defined as maximum white level.

Can dispose the downscaled images generating apparatus, make by converting input picture to after the tone conversion image based on transfer function, size of images after contractive color is turned and changed then, generate downscaled images, and can the arrangement corrects information acquisition device, so that obtain the control information of the slope that comprises transfer function, and, can dispose the gray scale conversion equipment, the contrast of the image after making slope based on downscaled images and transfer function come correcting colour to turn to change.

Image processing equipment of the present invention can also comprise holding device, is used to keep corresponding to the downscaled images of the image of previous frame and is applied to the slope of the transfer function on the image of this previous frame.

Can dispose the downscaled images generating apparatus, make and use one or more transfer functions progressively to change the pixel value of the image of present frame, and can dispose the gray scale conversion equipment, make by based on the downscaled images that keeps by holding device and the contrast of proofreading and correct the image after the tint correction separately corresponding to the product of the slope of one or more transfer functions, generate the image after the contrast correction.

In one or more transfer functions, at least a transfer function can be configured to monotone increasing function.

Image processing equipment of the present invention can also comprise average computing device, be used to calculate the mean value of the pixel value of the image after tone is changed, and, in one or more transfer functions, can dispose at least a transfer function, make to have reciprocal proportional slope with the mean value that calculates by average computing device.

Can dispose average computing device, make the image after the tint correction is divided into a plurality of, and the pixel value by single of weighting summation average and calculated value, as mean value.

Can dispose the downscaled images generating apparatus, make the size of turning the image after changing generate first downscaled images by contractive color, and the single pixel value of first downscaled images be multiply by reciprocal proportional value with the mean value of the pixel value of first downscaled images, thereby generate second downscaled images.

Image processing equipment of the present invention can also comprise analog-to-digital conversion apparatus, is used for making the pixel value of the image of present frame to be subjected to number conversion, and logarithm inverse conversion device, is used to make the pixel value of the image after the contrast correction to be subjected to the logarithm inverse conversion.

Image processing equipment of the present invention can also comprise: the γ conversion equipment is used to make the pixel value of the image after the contrast correction to be subjected to the γ conversion; Brightness range information calculations device is used to calculate brightness range information, the distribution of the brightness composition of the image after the contrast correction after this brightness range information indication is changed through γ conversion equipment γ; And normalization (normalization) device, being used for based on brightness range information by the calculating of brightness range information calculations device, the distribution normalization of the pixel value of the image after the contrast correction after will changing through γ conversion equipment γ is to preset range.

Can dispose the brightness range calculation element, the higher limit of the brightness composition of the image after making calculating through the contrast correction after the γ conversion equipment γ conversion and lower limit are as brightness range information, and can dispose regular device, so that the pixel value of the image after the conversion contrast correction, higher limit and the lower limit with the scope of the reproducible brightness composition of reproducer of hypothesis is consistent respectively to make higher limit and the lower limit of brightness composition of the image after the contrast correction of being calculated by brightness range information calculations device.

Can dispose holding device, the feasible brightness range information that keeps by the previous frame of brightness range information calculations device calculating.

Described image can be the monochrome image that is made of the pixel with brightness composition.

Described image can be the coloured image that is made of the pixel with a plurality of color components.

Can dispose the downscaled images generating apparatus, make and generate first luminance picture that constitutes by pixel with brightness composition based on coloured image, first luminance picture is converted to luminance picture after the tone conversion, and generates the image after the tone conversion of the colour that constitutes by pixel based on the luminance picture after the tone conversion with a plurality of color components.

Can dispose the downscaled images generating apparatus, make difference between the value of the value of the single color component by calculating coloured image and brightness composition, calculate the product of the slope of this difference and transfer function then, and this product is added on the value of single color component of the luminance picture after the tone conversion, calculate the single color component of the image after the tone conversion.

Can dispose the downscaled images generating apparatus, the feasible mean value that passes through the brightness composition of calculating first luminance picture, calculate reciprocal proportional coefficient then with mean value, and on duty with this coefficient with the single color component of coloured image, calculate the single color component of the image after the tone conversion.

Can dispose the gray scale conversion equipment, make by generating second luminance picture that constitutes by pixel with brightness composition based on the image after the tone conversion of colour, the slope of downscaled images that keeps based on second luminance picture, by holding device and transfer function and the contrast of proofreading and correct the image after the tone conversion of the colour that is generated by conversion equipment then generate the image after the colored contrast correction.

Image processing equipment of the present invention can also comprise the γ conversion equipment, is used to make the pixel value of the image after the colored contrast correction to be subjected to the γ conversion; Brightness range information calculations device, be used for based on generating the 3rd luminance picture that constitutes by pixel, and be used to calculate the brightness range information of distribution of the brightness composition of indication the 3rd luminance picture with brightness composition through the image after the contrast correction of the colour after the γ conversion equipment γ conversion; And regular device, being used for based on brightness range information by the calculating of brightness range information calculations device, the distribution normalization of the pixel value of the image after the contrast correction of the colour after will changing through γ conversion equipment γ is to preset range.

Image processing method of the present invention is made of following steps: downscaled images generates step, is used for generating downscaled images from input picture; The control information obtaining step is used for obtaining based on downscaled images the control information of input picture; And the gray scale switch process, be used to change the gray scale of input picture; Wherein, the contrast that the gray scale switch process uses control information to proofread and correct input picture is as will be before the conversion of conversion gray scale and/or the processing of carrying out afterwards.

According to image processing equipment of the present invention and method, make and might generate downscaled images from input picture, obtain control information based on the downscaled images that is generated, and the gray scale of conversion input picture.In the processing of gray scale conversion, the contrast of using control information to proofread and correct input picture is as will be before the gray scale conversion and/or the processing of carrying out afterwards.

Description of drawings

Fig. 1 shows the block diagram of the example structure of digital camera according to an embodiment of the invention;

Fig. 2 shows the block diagram of first example structure of the DSP shown in Fig. 1;

Fig. 3 shows the block diagram of first example structure of the tint ramp correcting unit shown in Fig. 2;

Fig. 4 shows the figure of example tint ramp;

Fig. 5 shows the block diagram of second example structure of the tint ramp correcting unit shown in Fig. 2;

Fig. 6 shows the block diagram of the 3rd example structure of the tint ramp correcting unit shown in Fig. 2;

Fig. 7 shows the block diagram that the downscaled images shown in Fig. 2 generates the example structure of parts;

Fig. 8 shows the block diagram of the example structure of the mean value calculation parts shown in Fig. 7;

Fig. 9 shows the block diagram of the example structure of the contrast correction parts shown in Fig. 2;

Figure 10 shows the block diagram of the example structure of the interpolation parts shown in Fig. 9;

Figure 11 is the figure that is used for the processing of the interpolation parts shown in the key-drawing 9;

Figure 12 shows the block diagram that the yield value shown in Fig. 9 is provided with the example structure of parts;

Figure 13 shows the block diagram of the example structure of the contrast strengthening part shown in Fig. 9;

Figure 14 is the figure that is used for the processing of the brightness range normalization parts shown in the key-drawing 2;

Figure 15 shows the block diagram of the example structure of the brightness range information calculations parts shown in Fig. 2;

Figure 16 shows the block diagram of the example structure of the brightness range normalization parts shown in Fig. 2;

Figure 17 shows and can replace the block diagram of the scope shown in Fig. 2 for the example structure of the composite component of the part from the tint ramp correcting unit to the contrast correction parts;

Figure 18 is the flow chart that is used to explain the gray scale compression processing of being undertaken by first example structure of DSP;

Figure 19 is the flow chart that is used for explaining the processing details of the step S1 shown in Figure 18;

Figure 20 is the flow chart that is used for explaining the processing details of the step S2 shown in Figure 18;

Figure 21 shows the block diagram of second example structure of the DSP shown in Fig. 1;

Figure 22 shows the block diagram of first example structure of the tint ramp correcting unit shown in Figure 21;

Figure 23 shows the block diagram of second example structure of the tint ramp correcting unit shown in Figure 21;

Figure 24 shows the block diagram of the 3rd example structure of the tint ramp correcting unit shown in Figure 21;

Figure 25 shows the block diagram that the downscaled images shown in Figure 21 generates the example structure of parts;

Figure 26 shows the block diagram of the example structure of the contrast correction parts shown in Figure 21;

Figure 27 shows and can replace the block diagram of the scope shown in Figure 21 for the example structure of the composite component of the part from the tint ramp correcting unit to the contrast correction parts;

Figure 28 shows the block diagram of the example structure of the brightness range information calculations parts shown in Figure 21;

Figure 29 is the flow chart that is used to explain the gray scale compression processing of being undertaken by second example structure of DSP;

Figure 30 is the flow chart that is used for explaining the processing details of the step S43 shown in Figure 29;

Figure 31 is the flow chart that is used for explaining the processing details of the step S44 shown in Figure 29;

Figure 32 shows the block diagram of the example structure that has applied image processing system of the present invention;

Figure 33 is the flow chart that is used to explain the operation of the image processing system shown in Figure 32;

Figure 34 shows the block diagram of first example structure of the image processing equipment shown in Figure 32;

Figure 35 shows the block diagram of the example structure of the tint ramp correcting unit shown in Figure 34;

Figure 36 shows the figure of the example tint ramp that uses in first example structure of image processing equipment;

Figure 37 shows the block diagram that the level and smooth brightness shown in Figure 34 generates the example structure of parts;

Figure 38 shows the block diagram that the downscaled images shown in Figure 37 generates the example structure of parts;

Figure 39 shows the block diagram of the example structure of the mean value calculation parts shown in Figure 38;

Figure 40 shows the block diagram of the example structure of the interpolation parts shown in Figure 37;

Figure 41 shows the block diagram that the yield value shown in Figure 34 is provided with the example structure of parts;

Figure 42 shows the block diagram of the example structure of the contrast correction parts shown in Figure 34;

Figure 43 is used to explain that the gray scale compressed image that is undertaken by first example structure of image processing equipment generates the flow chart of handling;

Figure 44 shows the block diagram of second example structure of the image processing equipment shown in Figure 32;

Figure 45 is used to explain that the gray scale compressed image that is undertaken by second example structure of image processing equipment generates the flow chart of handling; And

Figure 46 shows the block diagram of the example structure of general purpose personal computer.

Embodiment

Explain digital camera below with reference to the accompanying drawings as one embodiment of the present of invention.

Fig. 1 shows the example structure as the digital camera of one embodiment of the present of invention.The picture of

digital camera

1 reference object, generation has the wide DR image than common wide pixel value dynamic range, this image is preserved into predetermined storage medium, and after will this wide DR image transitions being the narrow DR image that has than common narrow pixel value dynamic range, it is outputed to built-in display or the external equipment of also determining view finder or picture monitor as composition.

Digital camera

1 roughly is made of optical system, signal processing system, register system, display system and control system.

Optical system by the

lens

2 of the light image that is used to assemble object, the

aperture

3 and being used for that is used to control the light energy of the light image

ccd image sensor

4 that generates wide DR image with the opto-electronic conversion that predetermined frame rate is passed through the light image assembled constitutes.It should be noted that following description will be referred to be the monochrome image that is made of one tunnel luminance signal and be the two kinds of situations of coloured image that are made of multichannel (for example 3 tunnel) luminance signal by the wide DR image that

ccd image sensor

4 generates.

Signal processing system is made of following parts: the dual sample circuit (CDS) 5 that is mutually related is used for reducing noise by the wide DR image that sampling is exported from

ccd image sensor

4; A/

D converter

6 is used for the utilization

dual sample circuit

5 that is mutually related has been removed the wide DR fulfillment AD conversion of noise, thereby obtains to have for example value of the bit wide about 14 to 16; And DSP (digital signal processor) 7, be used for handling by the wide DR fulfillment gray scale compression of A/

D converter

6 outputs.

As from A/

D converter

6 output and have 14 to 16 the wide DR image of bit wide, picture signal with a large amount of gray scales can not be reproduced by the general vision signal that comprises brightness Y and color difference signal Cr, Cb fully, but by the gray scale compression processing that DSP 7 carries out its gray scale is compressed in the scope of permission by the general vision signal reproduction that comprises brightness Y and color difference signal Cr, Cb.Will be with reference to figure 2 and subsequent drawings and DSP 7 is described in detail in detail.

The register system of

digital camera

1 is made of following parts: CODEC (compression/de-compression) 12, it participates in the wide DR image that receives from DSP 7 or narrow DR image are encoded and it is recorded in the

memory

13, and read and the code data of code storage in

memory

13, and provide it to DSP 7; And

memory

13, be used for wide DR image or narrow DR image behind the memory encoding, constitute by disk, CD, magneto optical disk, semiconductor etc.

Display system is made of following parts: D/

A converter

9, and its participation is changed from the DA of the narrow DR image that DSP 7 provides; Video Decoder is used for brightness Y and color difference signal Cr after the general vision signal of Cb, they being outputed to display 11 will becoming comprise from the narrow DR image transitions of simulation of D/

A converter

9 output; And

display

11, it is usually by the LCD formations such as (LCD) of serving as view finder or video-frequency monitor corresponding to the image of vision signal by demonstration.

Control system is by being used to control timing generator (TG) 8 from the operation timing of the element of

ccd image sensor

4 to DSP 7, being used to accept user's the

input equipment

15 of various operations and the whole CPU (CPU) 14 that is used for control

figure video camera

1 constitutes.

Next, the operation summary of digital camera will be explained.The optical imagery of object (incident light) arrives

ccd image sensor

4 through

lens

2 and

aperture

3, be subjected to the opto-electronic conversion of

ccd image sensor

4, and the signal of telecommunication of the pixel of the wide DR image of the expression that is obtained removes denoising by the

dual sample circuit

5 that is mutually related, by A/

D converter

6 digitlizations, and be provided for DSP 7.

DSP 7 participates in the gray scale compression of the wide DR image that receives from A/

D converter

6 and handles, thereby generates narrow DR image, and it is outputed to D/

A converter

9 or

CODEC

12 or the two.The narrow DR image that offers D/

A converter

9 is subjected to the DA conversion, is converted to conventional vision signal by

video encoder

10 then, and shows resulting image on display 11.On the other hand, the narrow DR image that offers

CODEC

12 is encoded and is recorded in the

memory

13.

It is ending about the description of whole operation summaries of

digital camera

1 herein.

Next, will describe DSP 7, it is a key of the present invention.

Fig. 2 shows first example structure of the DSP 7 that is suitable for wide DR image, and this wide DR image is a monochrome image.The monochromatic wide DR image that below will be input to DSP 7 is called wide DR luminance picture L.The pixel value of wide DR luminance picture (being brightness value) is expressed as L (p).In this context, p is the vector or the coordinate of the location of pixels on the presentation video, for example p=(x, y).Therefore, determine to use L (p), it comprises the information of location of pixels and brightness value, distinguishes with the L that represents wide DR luminance picture.Identical content also will be applied on other image and pixel value thereof of describing after a while.

Design DSP 7 makes to be input on it according to the order of the grating brightness L (p) with wide DR luminance picture L.

In first example structure of DSP 7, logarithm converting member 21 is subjected to number conversion the brightness L (p) of input, and the logarithm brightness logL (p) that is obtained is outputed to tint ramp correcting unit 22.The tint ramp that tint

ramp correcting unit

22 will obtain in advance is applied to the logarithm brightness logL (p) of input, with its direction conversion towards the compression gray scale, and with the logarithm brightness logL that is obtained c(p) output to downscaled images and generate parts 23 and contrast correction parts 25.Tint

ramp correcting unit

22 will represent that the typical value γ of the slope of the tint ramp that applied outputs to contrast correction parts 25.The typical value γ that below will represent the slope of the tint ramp that applied abbreviates typical value γ as.

Downscaled images generate parts 23 based on 22 that receive from the tint ramp correcting unit, corresponding to the logarithm brightness logL of single frame c(p), generate downscaled

images logL

c1, and make downscaled images memory 24 preservations.

Contrast correction parts 25 are based on the downscaled images logL of the previous frame that keeps in typical value γ and the downscaled images memory 24 C1, proofread and correct from the logarithm brightness logL of the present frame of tint

ramp correcting unit

22 receptions c(p), proofreaied and correct the contrast weaken by tint ramp, and with the logarithm brightness logL that is obtained u(p) output to logarithm inverse conversion parts 26.Logarithm inverse conversion parts 26 make the logarithm brightness logL with the contrast after the correction u(p) be subjected to the logarithm inverse conversion, and with the brightness L by conventional axle expression that is obtained u(p) output to γ correcting unit 27.

γ correcting unit 27 makes the brightness L that receives from logarithm inverse conversion parts 26 u(p) γ that is subjected to considering the γ characteristic of reproducer (for example display 11) proofreaies and correct, and the brightness Y (p) that is obtained is outputed to the

regular parts

30 of monochrome

information calculating unit

28 and brightness range then after γ proofreaies and correct.Monochrome

information calculating unit

28 for receive from γ correcting unit 27, corresponding to each brightness Y (p) of single frame, calculate the brightness range information of indication Luminance Distribution, and allow it to keep by brightness range information-storing device 29.It should be noted that at this brightness range information is meant the information of indication lightness distribution scope in a frame, use it to calculate the brightness Y of approaching dark dThe most approaching bright brightness Y b, as brightness range information [Y d, Y b].

Brightness

range normalization parts

30 are based on the brightness range information [Y of the previous frame that is kept by brightness range information-storing device 29 d, Y b], the brightness Y (b) of the present frame that conversion receives from γ correcting unit 27, making that its distribution meets can be by the scope of reproducer (for example display 11) expression, and with the brightness Y that is obtained n(p) pixel value as narrow DR image outputs to subsequent step.

As described above, in the process of handling according to the gray scale compression of first example structure of DSP 7, generate parts 23 by downscaled images and generate downscaled images logL C1, and by brightness range

information calculations parts

28 calculating brightness range information [Y d, Y b].Hereinafter with downscaled images logL C1With brightness range information [Y d, Y b] be called average information.

Utilize DSP 7, the single frame of the wide DR image of input is calculated average information, and the average information of being calculated is used to handle the wide DR image that a frame arrives later on.

Although in order to carry out the compression of effective gray scale, be necessary to use the information of calculating based on the brightness value of the whole or wide region of image usually, in installation, produced before this information of calculating time delay with the problem of increase.Therefore, DSP 7 by select minimum may time dependent information, the average information of previous frame is used for gray scale compression to present frame.Even the feasible expansion that after installing, also might avoid memory consumption and circuit scale of this structure.

Next, the details of first example structure of DSP 7 will be described with reference to the drawings.

Fig. 3 shows first example structure of tint ramp correcting unit 22.In first example structure,

lut memory

41 keeps the corresponding look-up table (hereinafter referred to as LUT) of tint ramp that increases with as shown in Figure 4 dullness and the typical value γ of expression tint ramp slope in advance.The function that may replace LUT and keep being equal to tint ramp also allows.

Table reference part

42 is proofreaied and correct based on the LUT that keeps in

lut memory

41 and with logarithm brightness logL (p) and is logarithm brightness logL c(p).

Fig. 4 shows the example of tint ramp, wherein on the normalized logarithmic axis, imports brightness L (p) by abscissa plots respectively in [0,1] scope, the brightness L after the ordinate plots tint ramp is proofreaied and correct c(p).The application of the anti-sigmoid curve that increase, mild of dullness as shown in this example will can not cause very strong gray scale compression effectiveness in high luminance area and low-light level district, might obtain desirable have blind in vain (whiteout) of less degree or the tone of black blind (blackout) even make after the gray scale compression yet.Otherwise, the gray scale compression will influence the intermediate luminance district strongly, and this means that the contrast correction of describing after a while can be applied in the intermediate luminance district fully, and cause the desirable narrow DR image that in the intermediate luminance scope, also has the contrast correction of less degree.

It should be noted, usually can be by in the full luminance scope, seeking slope value, and the mean value of these values is defined as the typical value γ that typical value γ determines expression tint ramp slope.It is 0.67 typical value γ that tint ramp shown in Fig. 4 has value.

Fig. 5 shows second example structure of tint ramp correcting unit 22.Unlike first example structure, second example structure is not used the LUT that obtains in advance, but each frame is calculated typical value γ, and logarithm brightness logL (p) correction is logarithm brightness logL c(p).In second example structure, mean flow

rate calculating unit

51 calculates the average value mu of the logarithm brightness logL (p) of a

frame.Divider

52 is with predetermined constant logL TDivided by average value mu, thereby calculate typical value

γ.γ memory

53 keeps from the typical value of

divider

52

receptions.Multiplier

54 multiply by the typical value γ of the previous frame that is kept by

γ memory

53 with the logarithm brightness logL (p) of present frame, proofreaies and correct logarithm brightness logL afterwards thereby calculate tint ramp c(p).

Suppose predetermined constant logL below TBe defined as other logarithm brightness of middle grade, then the mean value of the logarithm brightness logL (p) of a frame is converted into and has and logL TLogarithm brightness logL after the tint ramp of identical value is proofreaied and correct c(p).

Although typical value γ calculates each frame, the average value mu that in fact is based on logarithm brightness logL (p) because of this value is calculated, so this value formerly is more or less the same between frame and the subsequent frame.Therefore, with above-mentioned downscaled images logL C1With brightness range information [Y d, Y b] similar, go back design liaison value γ, proofread and correct with the tint ramp that former frame is used for present frame.Therefore, define and represent value γ is also included within the average information.

Fig. 6 is the 3rd example structure of tint ramp correcting unit 22.The 3rd example structure can be described as the combination of first example structure and second example structure.In the 3rd example structure, lut memory 61 keeps and as shown in Figure 4 the corresponding LUT of tint ramp in advance, and the typical value γ of expression tint ramp slope 1Table reference part 62 is proofreaied and correct based on the LUT that keeps among the lut memory 61k and with logarithm brightness logL (p) and is logarithm brightness logL C '(p), and with it output to mean flow rate calculating unit 63 and

multiplier

66.

Mean flow rate calculating unit 63 calculates the logarithm brightness logL of a frame C '(p) average value mu, and it is outputed to divider 64.Divider 64 is with predetermined constant logL TDivided by average value mu, thereby calculate typical value γ 2, and allow γ 2Memory 65

preservations.Multiplier

66 is with the logarithm brightness logL of present frame C '(p) multiply by the typical value γ of the previous frame that keeps by

γ memory

65 2Thereby, calculate the logarithm brightness logL after tint ramp is proofreaied and correct c(p).Multiplier 67 is with typical value γ 1, γ 2Product as typical value γ (=γ 1γ 2) output to the contrast correction parts 25 in the back level.

Ensuing Fig. 7 shows the example structure that downscaled images generates parts 23.The classification element 71 that downscaled images generates parts 23 according to be divided into m * n piece when entire image, (the affiliated piece of brightness during=m * n) is to the logarithm brightness logL of a frame of 22 receptions of the tint ramp correcting unit from prime to be provided for mean value calculation parts 72-1 to 72-N then c(p) classification.For example, those that are classified into first are provided for mean value calculation parts 72-1, are provided for mean value calculation parts 72-2 and be classified into those of second.Identical way also will be applied on the subsequent block, and be categorized into the N piece those be provided for mean value calculation parts 72-N.When there is no need to distinguish single mean value calculation parts 72-1 to 72-N, the simple mark of mean

value calculation parts

72 is adopted in following description.

Mean value calculation parts 72-i (i=1,2 ..., N) from the logarithm brightness value logL of a frame c(p) the logarithm brightness logL that is classified into the i piece is calculated in the inside c(p) mean value, and it is outputed to composite component 73.Composite component 73 generates the downscaled images logL of m * n pixel C1, and downscaled images memory 24 storages in the level of feasible back, wherein said downscaled images logL C1Has the logarithm brightness logL that receives from average computing device 72-i respectively c(p) mean value is as pixel value.

Fig. 8 shows the example structure of mean value calculation parts 72.The

adder

81 of mean

value calculation parts

72 will be added to the logarithm brightness logL that the classification element 71 from prime receives by the value that register (r) 82 keeps c(p), thus upgrade the value that keeps by register (r) 82.

Divider

83 will be by the number Q of the final values that keep of

register

82 divided by the pixel that constitutes a piece, thereby calculate Q the logarithm brightness logL that is classified into a piece c(p) mean value.

Ensuing Fig. 9 shows the example structure of contrast correction parts 25.Interpolation position specifying part part 91 obtains the logarithm brightness logL that the tint

ramp correcting unit

22 from prime receives c(p) location of pixels p (below be also referred to as interpolation position p), and it is outputed to interpolation parts 92.

Interpolation parts

92 use the downscaled images logL of the previous frame that is kept by downscaled images memory 24 C1, calculate pixel logL corresponding to interpolation position p by interpolation C1(p), and with it output to contrast reinforcing member 94.

Yield value is provided with parts 93 based on the typical value γ of the previous frame that receives from tint

ramp correcting unit

22 and based on the logarithm brightness logL of present frame c(p), calculate the logarithm brightness logL that determines present frame cThe yield value g (p) of contrast enhancing amount (p).Contrast reinforcing member 94 is based on the logarithm brightness logL of present frame c(p), the interpolate value logL of yield value g (p) and downscaled images C1(p), calculate the logarithm brightness logL of the contrast of enhancing with the frequency content except low-frequency component u(p).

Figure 10 shows the example structure of interpolation parts 92.

Interpolation parts

92 use the downscaled images logL of previous frame based on the bicubic interpolation C1Interpolation position p near 4 * 4 pixels, come the pixel logL of interpolation corresponding to interpolation position p C1(p).

Near

alternative pack

101 when receiving interpolation position p, based on the downscaled images logL of m * n pixel of the previous frame that keeps by downscaled images memory 24 C1And obtain near the pixel value a[4 of 4 * 4 pixels the p of interpolation position] [4], and it is outputed to product summation component 104.Here a[i] the mark meaning of [j] is that pixel value a is the two-dimensional arrangements data of i * j.Near

alternative pack

101 with the pixel value a[4 that is obtained] horizontal displacement dx and vertical displacement dy between [4] and the interpolation position p output to horizontal

coefficients calculating unit

102 or Vertical

factor calculating unit

103 respectively.

To be described with reference to Figure 11 interpolation position p, adjacent pixels value a[4 at this] relation of [4] and displacement dx, dy.

M * n shown in Figure 11 grid is represented the downscaled images logL of m * n pixel C1Below hypothesis provide interpolation position p=(px, py), then corresponding to the downscaled images logL of interpolation position p C1On position q be given q=(qx, qy)=(px/bx-0.5, py/by-0.5), wherein (bx, by)=(image logL cHorizontal number of pixels/m, image logL cVertical number of pixels/n).

In order to obtain neighbor, recommend to obtain the qx-2<x<qx+2 and the interior downscaled images logL of qy-2<y<qy+2 scope that fall into shown in the shade of Figure 11 corresponding to the position q periphery on the downscaled images of interpolation position p C1Pixel.In by the zone shown in the shade, 4 * 4 positions that are marked with "+" are the locations of pixels that will obtain.(dx dy) is defined as poor with respect to the nearest pixel of lower left in displacement between neighbor and the interpolation position p.That is to say, displacement can be given (dx, dy)=(fractional part of qx, the fractional part of qy).

Below with reference to returning Figure 10, horizontal

coefficients calculating unit

102 is based on the horizontal displacement dx that receives near

alternative pack

101 and three interpolation coefficient k of calculated level x[4].Similarly, Vertical

factor calculating unit

103 is that vertical three interpolation coefficient k are calculated on the basis with the Vertical factor based on the vertical displacement dy that receives near alternative pack 101 y[4].

For example, three interpolation coefficient k of level x[4] can use following formula (1) to calculate:

z=|dx-i+2|

In addition, vertical three interpolation coefficient k y[4] can use following formula (2) to calculate usually:

z=|dy-j+2|

Figure A20038010040100192

It should be noted,, can use except the formula (1) that illustrates above, any any computing formula (2) and calculate interpolation coefficient k three times as long as can obtain enough level and smooth interpolation x[4] and k y[4].

Product summation component

104 is by using adjacent pixel values a[4] [4], horizontal interpolation coefficient k x[4] and the vertical interpolation coefficient k y[4] product read group total uses following formula (3) to calculate downscaled images logL C1The interpolate value L of interpolation position p C1(p).

log L c 1 ( p ) = Σ i = 1 4 Σ j = 1 4 a [ i ] [ j ] · k x [ i ] · k y [ j ] . . . ( 3 )

Next will explain that yield value is provided with parts 93.As mentioned above, yield value is provided with parts 93 and is used to be provided with yield value g (p), and yield value g (p) is used for adjusting by the contrast reinforcing member 94 of back level the enhancing degree in the zone except that low frequency range.For the yield value of g (p)=1, contrast reinforcing member 94 neither strengthens and does not also suppress contrast.For the yield value of g (p)>1, the enhancing contrast ratio corresponding to this value.For the yield value of g (p)<1, suppress contrast corresponding to this value.

To the setting of yield value be described.The contrast of image suppresses by the gray scale compression, and wherein amount of suppression depends on the slope of tint ramp.For example, consider and realize the compression of strong lime degree colour code and use tint ramp and mean the strong inhibition contrast with little slope.On the other hand, use that to have slope be that 1 straight line means that as tint ramp image does not change, perhaps do not suppress contrast.

Therefore, less than 1 situation, yield value is provided with

inverse

1/ γ that parts 93 adopt the typical value γ of tint ramps, makes yield value surpass 1 for the typical value γ of tint ramp.

Logarithm brightness logL in input c(p) in approaching rank in vain or black other another situation of level, be similar to the contrast enhancing possibility that is applied to the intermediate luminance district and undesirably cause the image detail loss owing to amplitude limit, therefore work as the logarithm brightness logL that imports cWhen (p) more approaching white rank or black rank, the adjustment yield value makes and more approaches 1.

That is to say, suppose that the inverse of the γ of representative is 1/ γ=g 0, use following formula (4) to come calculated gains value g (p):

g(p)=1+(g 0-1)×attn(p) ...(4)

Wherein, attn (p) is an attenuation coefficient, and is calculated by following formula (5):

attn(p)=attn(logL gray,logL white,logL c(p))

Figure A20038010040100203

It should be noted, in formula (5), logL GrayOther logarithm brightness of representative expression intermediate gray-scale level, and logL WhiteThe logarithm brightness of the white amplitude limit rank of representative expression (maximum white rank), wherein, the both is the constant that sets in advance.

Figure 12 shows the example structure that yield value is provided with parts 93.Divider 111 calculates from

inverse

1/ γ=g of the typical value γ of prime reception 0, and it is outputed to subtracter 112.Subtracter 112 calculates (g 0-1) and with it outputs to multiplier 118.

Subtracter 113 calculates logarithm brightness logL c(p) and have other logarithm brightness of intermediate gray-scale level logL GrayBetween poor (logL c(p)-logL Gray), and it is outputed to divider 115.Subtracter 114 calculates has other logarithm brightness of white limiting stage logL WhiteWith logarithm brightness logL GrayBetween poor (logL White-logL Gray), and it is outputed to divider 115.Divider 115 is with the output (logL of subtracter 113 c(p)-logL Gray) divided by the output (logL of subtracter 114 White-logL Gray), and the merchant outputed to absolute calculators 116.Absolute calculators 116 is calculated the absolute value of the output of divider 115, and it is outputed to amplitude limiter (clipper) 117.Amplitude limit is carried out in the output of 117 pairs of absolute calculators 116 of amplitude limiter, makes it to be adjusted to 1 when output above 1 the time, keeps then when this output is no more than 1 that it is constant, and the result is outputed to multiplier 118 as attn (p).

The output that multiplier 118 multiply by amplitude limiter 117 with the output of subtracter 112, and product outputed to adder 119.Adder 119 adds 1 with the output of multiplier 118, and the result is outputed to the back level as yield value g (p).

Ensuing Figure 13 shows the example structure of contrast reinforcing member 94.Subtracter 121 calculates logarithm brightness logL c(p) and the interpolate value logL of downscaled images C1(p) poor between, and it is outputed to multiplier 122.Multiplier 122 calculates the output of subtracter 121 and the product of yield value g (p), and it is outputed to adder 123.Adder 123 is with the interpolate value logL of downscaled images C1(p) be added in the output of multiplier 122, and with the logarithm brightness logL after the contrast correction like this u(p) output to the back level.

It should be noted the interpolate value logL of downscaled images below C1(p) be based on value after the interpolation of downscaled images of m * n pixel, therefore only have the image logL before dwindling cThe extremely low frequency composition.

That is to say the output (logL of subtracter 121 c(p)-logL C1(p)) be equal to by from former logarithm brightness logL c(p) only deduct extremely low frequency and become the poor of branch acquisition.As mentioned above, the logarithm brightness logL after the contrast correction u(p) by such acquisition: luminance signal is divided into extremely low frequency composition and other composition two classes, and in these compositions, strengthens composition except low-frequency component by multiply by yield value g (p), and use adder 123 that both are synthesized once again.

As known to top, design contrast reinforcing member 94 makes when getting rid of the extremely low frequency district, uses identical yield value g (p) to strengthen composition from the Low Medium Frequency district to high frequency region.Therefore, the logarithm brightness logL after the contrast correction u(p) can not occur in when only strengthening high frequency region in the edge part office may be clearly local overshoot, and design it to obtain to have the image of the contrast that concerning eyes, strengthens very naturally.

Next, will explain brightness range

information calculations parts

28 and brightness

range normalization parts

30.

At first, the summary of brightness range normalization process will be explained.The purpose of the gray scale compression of being undertaken by DSP 7 is wide DR luminance picture is converted to the narrow DR image that is suitable for such as the dynamic range of the reproducer of

display

11, for this purpose, in tint

ramp correcting unit

22, prepared the tint ramp of the dynamic range that is suitable for reproducer in advance.This makes and might make most of captured wide DR luminance pictures suitably be subjected to the gray scale compression.

Yet, the dynamic range of incident light may not depend on the object that will take in essence so bigly, and the gray scale of such image compression is handled and may be caused excessive gray scale compression, thereby brightness is limited in than in the dynamic range narrower range that can be reproduced by reproducer.

For fear of this point, brightness signal Y (p) normalization after brightness

range normalization parts

30 are proofreaied and correct γ, processing in the final stage of handling as gray scale compression, the dynamic range of the brightness signal Y (p) after making γ proofread and correct meet the dynamic range that can be reproduced by reproducer.

Figure 14 shows the pattern of the brightness range normalization process of being undertaken by brightness range normalization parts 30.In the line chart of this figure, the brightness Y after γ proofreaies and correct before the normalization of abscissa plots brightness range, the brightness Y after the normalization of ordinate plots brightness range n, and gray scale transformation curve α represents to be used for brightness Y is converted to Y nConversion table.

The method of determining gray scale transformation curve α will be described below.The

shadow pattern

131 that illustrates under line chart is the example histogram of luminance picture Y before the brightness range normalization.In this example, in the stage after γ proofreaies and correct and before brightness range normalization, obtained such luminance picture: its gray scale has been compressed, and makes to have the minimum brightness Y that may generate than from

digital camera

1 MinTo high-high brightness Y MaxThe narrower dynamic range of dynamic range.

Because when its dynamic range of reservation is constant, the dynamic range that the output that outputs to the luminance picture of reproducer causes only poor efficiency utilization to be reproduced by reproducer, so carry out normalization subsequently, make the Luminance Distribution of the luminance picture Y before the brightness range normalization expand to dynamic range whole of reproducer.

For this purpose, at first, calculate the scope [Y of Nogata Figure 131 distribution of the preceding luminance picture Y of brightness range normalization d, Y b], as the brightness range information of the luminance picture Y before the brightness range normalization.Then, the brightness range [Y that drops on from reproducer is set Nb, Y Nc] top and the inside slightly brightness value Y of low side NaAnd Y Ns, and, determine gray scale transformation curve α, make the brightness { Y on the abscissa Min, Y d, Y b, Y MaxWith ordinate on brightness value { Y Nb, Y Na, Y Ns, Y NcCorresponding.

Use the gray scale conversion of this gray scale transformation curve α successfully to obtain luminance picture Y n, it has the represented as histograms of the

shadow pattern

132 shown in the line chart left-hand side.

Determine gray scale transformation curve α, make brightness range [Y before the brightness range normalization d, Y b] be mapped to brightness range [Y than reproducer Nb, Y Nc] slightly narrow brightness range [Y Na, Y Ns] reason be: prevent brightness Y NbAnd Y NcSharp-pointed brightness amplitude limit on every side appears on the image.

It should be noted brightness value Y here NaAnd Y NsBe based on brightness value Y NbAnd Y NcAnd set in advance with suitable value.

Brightness range [Y before the brightness range normalization d, Y b] obtain by brightness range

information calculations parts

28 and undertaken, and gray scale transformation curve α and brightness Y n(p) calculating is carried out by brightness

range normalization parts

30.

Figure 15 shows the example structure of brightness range information calculations parts 28.In brightness range

information calculations parts

28,

select parts

141 and select based on location of pixels p from the brightness Y (p) of γ correcting unit 27 receptions.That is to say, only the brightness value of the image of the pixel position that sets in advance is offered

MIN classification element

142 and

MAX classification element

145 in the level of back.

Configuration

MIN classification element

142 makes k to the relatively combined serial arrangement of

parts

143 and register 144, and feasible brightness Y (p) value that is kept input by register 144-1 to 144-k with the order that increases progressively.

For example, comparing unit 143-1 is relatively from the value among brightness Y (p) that selects

parts

141 and the register 144-1, and when from the brightness Y (p) that selects

parts

141 during, use from the brightness Y (p) that selects

parts

141 and upgrade value among the register 144-1 less than the value among the register 144-1.Otherwise, when the value that is not less than from the brightness Y (p) that selects

parts

141 among the register 144-1, will offer comparing unit 143-2 in the level of back from the brightness Y (p) that selects

parts

141.

Comparing unit 143-2 is relatively from the brightness Y (p) of comparing unit 143-1 and the value among the register 144-2, and when from the brightness Y (p) of comparing unit 143-1 during, use brightness Y (p) from comparing unit 143-1 to upgrade value among the register 144-2 less than the value among the register 144-2.Otherwise, when the brightness Y (p) from comparing unit 143-1 is not less than value among the register 144-2, will offer the comparing unit 143-3 in the level of back from the brightness Y (p) of comparing unit 143-1.

Identical content also will be applied to comparing unit 143-3 and thereafter, and wherein, after the brightness Y of a frame (p) input is finished, register 144-1 will have the minimum value Y of the brightness Y (p) that remains on wherein Min, and register 144-2 to 144-k will have with the order that increases progressively and remain on wherein brightness Y (p) value, and will remain on brightness Y (p) among the register 144-k as the brightness Y of brightness range information dOutput to the back level.

Configuration

MAX classification element

145 makes k to the relatively combined serial arrangement of

parts

146 and register 147, and feasible brightness Y (p) value that is kept input by register 147-1 to 144-k with the order of successively decreasing.

For example, comparing unit 146-1 is relatively from the value among brightness Y (p) that selects

parts

141 and the register 147-1, and when from the brightness Y (p) that selects

parts

141 during, use from the brightness Y (p) that selects

parts

141 and upgrade value among the register 147-1 greater than the value among the register 144-1.Otherwise, when the value that is not more than from the brightness Y (p) that selects

parts

141 among the register 147-1, will offer comparing unit 146-2 in the level of back from the brightness Y (p) that selects

parts

141.

Comparing unit 146-2 is relatively from the brightness Y (p) of comparing unit 146-1 and the value among the register 147-2, and when from the brightness Y (p) of comparing unit 146-1 during, use brightness Y (p) from comparing unit 146-1 to upgrade value among the register 147-2 greater than the value among the register 147-2.Otherwise, when the brightness Y (p) from comparing unit 146-1 is not more than value among the register 147-2, will offer the comparing unit 146-3 in the level of back from the brightness Y (p) of comparing unit 146-1.

Identical content also will be applied to comparing unit 146-3 and thereafter, and wherein, after the brightness Y of a frame (p) input is finished, register 147-1 will have the maximum Y of the brightness Y (p) that remains on wherein Max, and register 147-2 to 147-k will have with the order of successively decreasing and remain on wherein brightness Y (p), and will remain on brightness y (p) among the register 147-k as the brightness Y of brightness range information bOutput to the back level.

Because select the brightness Y (p) that is input to

MIN classification element

142 and

MAX classification element

145 by selecting

parts

141, select at interval and the progression k of

MIN classification element

142 and

MAX classification element

145 so suitably adjust, make might obtain respectively with a frame for example in the 1% corresponding brightness value Y of top and bottom of whole pixels d, Y b

Figure 16 shows the example structure of brightness range normalization parts 30.As mentioned above, brightness

range normalization parts

30 are determined gray scale transformation curve α, and use the brightness Y after brightness Y (p) after gray scale transformation curve α proofreaies and correct γ is converted to brightness range normalization n(p).

Because gray scale transformation curve α as shown in figure 14 is made of 5 line segments, so which bar line segment the brightness Y (p) that brightness

range normalization parts

30 are differentiated input belongs to, and one of 5 line segments that will constitute gray scale transformation curve α are applied on the brightness Y (p) of input, thereby are converted into the brightness Y after the brightness range normalization n(p).

The

selector

151 of brightness

range normalization parts

30 will be input to the brightness value Y of input a to h respectively based on the brightness Y (p) that is input to input i Max, Y b, Y d, Y Min, Y Nc, Y Ns, Y NaAnd Y NbIn four brightness values export from output j to m.Correlation is wherein represented by following formula (6):

[ j , k , l , m ] = [ h , h , c , d ] i < d [ h , g , c , d ] d &le; i < c [ g , f , b , c ] c &le; i < b [ f , e , a , b ] b &le; i < a [ e , e , a , b ] a &le; i - - - ( 6 )

Subtracter

152 calculates poor between the output of the output of output k and output j, and the result is outputed to divider 155.

Subtracter

153 calculates poor between the output of the output of

outputs

1 and

subtracter

154, and the result is outputed to divider 155.

Subtracter

154 calculates poor between the output of brightness Y (p) and output m, and the result is outputed to multiplier 156.

Divider

155 calculates the ratio of the output of the output of

subtracters

152 and

subtracter

153, and the result is outputed to multiplier 156.

Multiplier

156 calculates the product of the output of the output of

dividers

155 and

subtracter

154, and the result is outputed to adder 157.

Adder

157 is with the output of output j and the output addition of

multiplier

156, and the output result.

The output Y of adder 157 n(p) by following formula (7) expression, it indicates the line segment of the gray scale transformation curve α that differentiates based on the brightness Y (p) after the γ correction.

Y n ( p ) = k - j l - m ( Y ( p ) - m ) + j . . . ( 7 )

It is ending about the description of the single part of the DSP 7 shown in the

pie graph

2 herein.

Simultaneously, notice that the mean flow

rate calculating unit

72 that the mean flow rate calculating unit 63 of the tint

ramp correcting unit

22 shown in Fig. 6 and downscaled images generate parts 23 carries out similar calculating, also may reduce amount of calculation by simple circuit configuration more.More particularly, can be combined in the tint

ramp correcting unit

22 that all illustrates among Fig. 2, downscaled images generates parts 23, downscaled images memory 24 and contrast correction parts 25, to provide as shown in figure 17 composite component.

Composite component

160 can replace the tint

ramp correcting unit

22 shown in Fig. 2, downscaled images generates parts 23, downscaled images memory 24 and contrast correction parts 25.

The

lut memory

161 of

composite component

160 has the LUT corresponding to as shown in Figure 4 tint ramp, and expression remains on the typical value γ of the slope of tint ramp wherein in advance 1

Table reference part

162 is proofreaied and correct the logarithm brightness logL (p) that receives from prime based on the LUT that is kept by

lut memory

161, thereby provides logarithm brightness logL C '(p), and with it output to downscaled

images generation parts

163 and

multiplier

172.

Downscaled images generates

parts

163 with logarithm luminance picture logL C 'Be divided into m * n piece, calculate the logarithm brightness logL of the pixel that belongs to single C '(p) mean value, thus first downscaled images of m * n pixel generated, and make 164 preservations of the first downscaled images memory.

Mean flow rate calculating unit 63 calculates the average value mu by the pixel value of first downscaled images of the previous frame of the first downscaled images memory, 164 maintenances, and it is outputed to divider 166.

Divider

166 is with predetermined constant logL TDivided by average value mu, thereby calculate typical value γ 2, and make γ 2Memory 167 preservations.The single pixel of first downscaled images that

multiplier

168 will be kept by the first downscaled

images memory

164 multiply by by γ 2The typical value γ that

memory

65 keeps 2Thereby, generate the second downscaled images logL C1, and make the second downscaled

images memory

169 preservations.

The logarithm brightness logL of the present frame that multiplier 170 will receive from table reference part 162 C '(p) multiply by by γ 2The typical value γ of the previous frame that

memory

167 keeps 2Thereby, calculate the logarithm brightness logL after tint ramp is proofreaied and correct c(p).

Multiplier

171 is with typical value γ 1And γ 2Product as typical value γ (=γ 1γ 2) output to yield

value parts

172 are set.

Yield value is provided with the logarithm brightness logL of the present frame that

parts

172 receive based on the typical value γ of the previous frame that receives from

multiplier

171 with from multiplier 170 c(p), calculated gains value g (p), this yield value g (p) determine the logarithm brightness logL of present frame c(p) contrast enhancing amount.

Interpolation position specifying

part part

173 obtains from the logarithm brightness logL of the present frame of multiplier 170 receptions c(p) location of pixels p (below be also referred to as interpolation position p), and it is outputed to interpolation parts 174.Interpolation parts 174 use the second downscaled images logL of the previous frame that is kept by the second downscaled

images memory

169 C1Calculate pixel logL by interpolation corresponding to interpolation position p C1(p), and with it output to contrast reinforcing member 175.

Contrast reinforcing member 175 is based on the interpolate value logL of yield value g (p) and downscaled images C1(p), for the logarithm brightness logL of the present frame that receives from multiplier 170 c(p), calculate the logarithm brightness logL of the contrast of enhancing with the composition except that low-frequency component u(p).

The use of

composite component

160 allows mean flow

rate calculating unit

165 to calculate the mean value of first downscaled images of m * n pixel, calculate the mean flow rate calculating unit 63 of mean value of pixel of the logarithm luminance picture of original size with using it to shown in Fig. 6 and compare, this has successfully reduced amount of calculation.Therefore, might reduce owing to calculate the time of delay that causes.

Next, the general gray scale compression processing of first example structure of using the DSP 7 that has applied the

composite component

160 shown in Figure 17 will be described with reference to the flow chart of Figure 18.

In step S1, DSP 7 based on about the wide DR luminance picture of previous frame as calculated and average information (the second downscaled images logL that keeps c(p), typical value γ, brightness range information [Y d, Y b]), the wide DR luminance picture L of present frame of input is converted to narrow DR luminance picture Y nDSP 7 also calculates the average information about the wide DR luminance picture L of present frame.

In step S2, DSP 7 uses about the average information of the wide DR luminance picture L of the present frame that is calculated and upgrades average information about the wide DR luminance picture of the previous frame stored.

In step S3, DSP 7 differentiates after the wide DR luminance picture of the present frame of input whether have subsequent frame, and when judgement exists, and this process is returned step S1 and repeated thereafter process.Otherwise when there was not any subsequent frame in judgement, gray scale compression processing finished.

To come details among the interpretation procedure S1, the processing on pixel basis with reference to the flow chart of Figure 19.The processing of the single step that describes below is with respect to carrying out according to the object pixel (location of pixels p) of raster order input.

In step S11, the brightness L (p) of object pixel (location of pixels p) is input to DSP 7.In step S12, logarithm converting member 21 is subjected to number conversion the brightness L (p) of input, and the logarithm brightness logL (p) that is obtained is outputed to composite component 160.In step S13, the

table reference part

162 of

composite component

160 is proofreaied and correct the logarithm brightness logL (p) that receives from logarithm converting member 21 based on the LUT that is kept by

lut memory

161, thereby obtains logarithm brightness logL C '(p), and with it output to downscaled

images generation parts

163 and multiplier 172.Meanwhile,

lut memory

161 is with the typical value γ of tint ramp 1Output to multiplier 171.

Multiplier

171 is with typical value γ 1With based on by γ 2The γ that first downscaled images of the previous frame that

memory

167 keeps calculates 2Product output to yield value as typical

value γ parts

172 be set.

In step S14, downscaled images generates the logarithm brightness logL of the frame after

parts

163 are proofreaied and correct based on tint ramp C '(p) generate first downscaled images.Based on first downscaled images, calculate typical value γ in this generation 2First downscaled images that also will generate multiply by the typical value γ that is calculated 2Thereby, generate the second downscaled images logL C1

In step S15, the logarithm brightness logL of the present frame that multiplier 170 will receive from table reference part 162 C '(p) multiply by by γ 2The typical value γ of the previous frame that

memory

167 keeps 2Thereby, calculate the logarithm brightness logL after tint ramp is proofreaied and correct c(p).

In step S16, yield value is provided with the logarithm brightness logL of

parts

172 based on the present frame that receives about the typical value γ of the previous frame that receives from

multiplier

171 with from multiplier 170 c(p), calculated gains value g (p), it determines the logarithm brightness logL of present frame c(p) contrast enhancing amount.

In step S17, interpolation parts 174 use the second downscaled images logL of the previous frame that is kept by the second downscaled

images memory

169 C1, calculate pixel logL corresponding to interpolation position p by interpolation C1(p), and with it output to contrast reinforcing member 175.In step S18, contrast reinforcing member 175 is based on the interpolate value logL of second downscaled images C1(p) and yield value g (p), strengthen except the logarithm brightness logL of tint ramp after proofreading and correct c(p) composition beyond the low-frequency component, and with the logarithm brightness logL after the contrast correction that is obtained u(p) output to logarithm inverse conversion parts 26 in the back level.

In step S19, logarithm inverse conversion parts 26 are with the logarithm brightness logL after the contrast correction u(p) convert the brightness L that represents with conventional axle to u(p), and with it output to γ correcting unit 27.In step S20, the γ that γ correcting unit 27 is scheduled to proofreaies and correct, and the brightness Y (p) that is obtained is outputed to brightness range

information calculations parts

28 and brightness

range normalization parts

30.

In step S21, brightness range

information calculations parts

28 generate brightness range information [Y based on the brightness Y (p) of a frame d, Y b].In step S22, brightness

range normalization parts

30 are based on the brightness range information [Y of the previous frame that is kept by brightness range information-storing device 29 d, Y b] and brightness Y (p) normalization that will receive from γ correcting unit 27, thereby calculate brightness Y n(p).In step S23, brightness

range normalization parts

30 are with brightness Y n(p) export as the pixel value of the narrow DR luminance picture after the gray scale compression.It is the ending of the detailed explanation of the processing among the step S1 shown in Figure 18 herein.

Next, will explain processing details among the step S2 among Figure 18 with reference to the flow chart among Figure 20.In step S31, downscaled images generates the logarithm brightness logL of the frame after

parts

163 uses are proofreaied and correct based on tint ramp C '(p) first downscaled images that generates is upgraded first downscaled images that is kept by the first downscaled

images memory

164.

In step S32,

divider

166 is with predetermined constant logL TDivided by the average value mu that receives from mean flow

rate calculating unit

165, thereby calculate typical value γ 2, and use the typical value γ that is calculated 2Upgrade by γ 2The typical value γ that

memory

167 keeps 2

In step S33, the single pixel of first downscaled images that

multiplier

168 will be upgraded by the processing among the step S31 and that keep by the first downscaled

images memory

164 multiply by upgrade by the processing among the step S32 and by γ 2The typical value γ that

memory

65 keeps 2Thereby, generate the second downscaled images logL C1, and upgrade the second downscaled images logL that keeps by the first downscaled

images memory

169 C1

In step S34, brightness range

information calculations parts

28 use the brightness range information [Y that calculates based on the brightness Y (p) of a frame d, Y b], upgrade brightness range information [Y by the previous frame of brightness range information-storing device 29 maintenances d, Y b].It is the ending of detailed explanation of the processing of the step S2 among Figure 18 herein.

Next, Figure 21 shows the example structure of the DSP 7 that is suitable for wide DR image, and this wide DR image is a coloured image.It should be noted that the wide DR image that is input to DSP 7 according to raster order is not arranged such that its whole pixels have whole compositions of R, G and B composition separately, but be arranged such that have R, G and B composition any one.Hereinafter, the wide DR image (it is coloured image) that is input to second example structure of DSP 7 is called colored mosaic (mosaic) image of wide DR.The single pixel of the colored mosaic image of wide DR have R, G and a B composition which determine by locations of pixels.

To be expressed as L (p) according to the pixel value that raster order is input to the colored mosaic image of wide DR of DSP 7 below.

In second example structure of DSP 7, go 201 pairs of mosaic (demosaic) parts wherein the pixel value L (p) of each pixel with frame of different colours remove mosaic, so that make whole pixels all have the whole of R, G and B composition, thereby generate color signal [R (p), G (p), B (p)], and it is outputed to color balance adjustment component 202.Hereinafter, will be called wide DR coloured image by the image that constitutes from the color signal that goes 201 outputs of mosaic parts.

Color balance adjustment component 202 is adjusted each of R, G and B composition, so that make the color balance of entire image suitable, thereby generates color signal [R b(p), G b(p), B b(p)].It should be noted, go mosaic parts 201 and color balance adjustment component 202 be as be installed in be furnished with single-deck type ccd image sensor digital VTR on those parts such.

Logarithm converting member 203 makes the color signal [R that receives from color balance adjustment component 202 b(p), G b(p), B b(p)] be subjected to number conversion, and with the logarithm color signal [logR that is obtained b(p), logG b(p), logB b(p)] output to tint ramp correcting unit 204.The tint ramp that tint

ramp correcting unit

204 will obtain in advance is applied to the logarithm color signal [logR of input b(p), logG b(p), logB b(p)] on, with its direction conversion towards the compression gray scale, and with the logarithm color signal [logR that is obtained b(p), logG b(p), logB b(p)] output to downscaled images and generate

parts

205 and contrast correction parts 207.Tint

ramp correcting unit

204 will represent that also the typical value γ of the slope of the tint ramp that applied outputs to contrast correction parts 207.

Downscaled images generate

parts

205 based on the logarithm color signal [logR of a frame that receives from tint ramp correcting unit 204 c(p), logG c(p), logB c(p)] generate downscaled images logL C1, and make downscaled images memory 206 preservations.

The downscaled images logL of the previous frame that contrast correction parts 207 keep based on typical value γ with by downscaled images memory 206 C1Proofread and correct the logarithm color signal [logR that proofreaies and correct the present frame weaken, receive from tint

ramp correcting unit

204 by tint ramp c(p), logG c(p), logB c(p)] contrast, and with the logarithm color signal [logR that is obtained u(p), logG u(p), logB u(p)] output to logarithm inverse conversion parts 208.Logarithm inverse conversion parts 208 make the logarithm color signal [logR after the contrast correction u(p), logG u(p), logB u(p)] be subjected to the logarithm inverse conversion, and with the color signal [R by conventional axle expression that is obtained u(p), G u(p), B u(p)] output to γ correcting unit 209.

γ correcting unit 209 makes the color signal [R that receives from logarithm inverse conversion parts 208 u(p), G u(p), B u(p)] γ that is subjected to considering the γ characteristic of reproducer (for example display 11) proofreaies and correct, and the color signal [R after the γ that is obtained proofreaied and correct g(p), G g(p), B g(p)] output to monochrome information calculating unit 210 and brightness range normalization parts 212.Monochrome information calculating unit 210 will be from [the R for a frame of γ correcting unit 209 receptions g(p), G g(p), B g(p)] be converted to brightness Y (p), calculate the brightness range information of the distribution be used to indicate brightness Y (p), and make 211 preservations of brightness range information-storing device.Brightness range information described here is meant the information of the distribution of the brightness Y (p) that indicates a frame, and use approaches dark brightness Y most usually dThe brightness Y that most approaches to become clear bAnd be calculated as brightness range information [Y d, Y b].

Brightness range normalization parts 212 are based on the brightness range information [Y of the previous frame that is kept by brightness range information-storing device 211 d, Y b], conversion is from the color signal [R of the present frame of γ correcting unit 209 receptions g(p), G u(p), B g(p)], making that its distribution can meet can be by the scope of reproducer (for example display 11) expression, and with the color signal [R that is obtained n(p), G n(p), B n(p)] output to the back level as narrow DR image (it is a coloured image).

As below describing, second example structure of DSP 7 that is suitable for coloured image is except mosaic parts 201 and color balance adjustment component 202 are gone in interpolation, almost similar with first example structure that is suitable for monochrome image shown in Fig. 2, but slightly modified the internal structure of individual component, make to be suitable for coloured image.

Figure 22 shows first example structure of tint ramp correcting unit 204.In first example structure, brightness generates parts 221 by calculating the logarithm color signal [logR of input b(p), logG b(p), logB b(p)] linearity and and generation logarithm brightness logL b(p), and with it output to subtracter 222-R to 222-B and table reference part 224.

Subtracter 222-R is from logarithm color signal logR b(p) deduct logarithm brightness logL b(p), and with the result output to multiplier 225-R.Lut memory 223 has the typical value γ that had before remained on the slope of tint ramp wherein corresponding to LUT and indication with as shown in Figure 4 tint ramp.Table reference part 224 is used the LUT that is kept by lut memory 223 and logarithm brightness logL (p) correction is logarithm brightness logL c(p), and with it output to adder 226-R to 226-B.

Multiplier 225-R multiply by the typical value γ that receives from lut memory 223 with the output of subtracter 222-R, and it is outputed to adder 226-R.Adder 226-R calculates output and the logarithm brightness logL of multiplier 225-R c(p) and, and the logarithm color signal logR after the result proofreaied and correct as tint ramp c(p) output to the back level.

It should be noted that below therefore the random component that is used to handle G and B composition will omit explanation with to be used to handle those of above-mentioned R composition similar.

Figure 23 shows second example structure of tint ramp correcting unit 204.In second example structure, brightness generates

parts

231 and calculates the logarithm color signal [logR of input b(p), logG b(p), logB b(p)] linearity and, thereby generate logarithm brightness logL b(p), and with it output to mean flow rate calculating unit 232.Mean flow

rate calculating unit

232 calculates the average value mu of the logarithm brightness logL (p) of a frame, and it is outputed to divider 233.

Divider

233 with predetermined constant divided by average value mu, thereby calculate typical value γ, and make 234 preservations of γ memory.

Multiplier 235-R is with the logarithm color signal logR of present frame b(p) multiply by the typical value γ of the previous frame that keeps by

γ memory

234, thereby calculate the logarithm color signal logR after tint ramp is proofreaied and correct c(p).

It should be noted that below therefore the random component that is used to handle G and B composition will omit explanation with to be used to handle those of above-mentioned R composition similar.

Figure 24 shows the 3rd example structure of tint ramp correcting unit 204.The 3rd example structure can be described as the combination of first example structure and second example structure.In the 3rd example structure, brightness generates

parts

241 and calculates logarithm color signal [logR b(p), logG b(p), logB b(p)] linearity and, thereby generate logarithm brightness logL b(p), and it is outputed to subtracter 242-R to 242-B, and

table reference part

244.

Subtracter 242-R is from logarithm color signal logR b(p) deduct logarithm brightness logL b(p), and with the result output to multiplier 250-

R.Lut memory

243 has the typical value γ that had before remained on the slope of tint ramp wherein corresponding to the LUT of as shown in Figure 4 tint ramp and indication.

Table reference part

244 is used the LUT that is kept by

lut memory

243 and logarithm brightness logL (p) correction is logarithm brightness logL C '(p), and with it output to mean flow

rate calculating unit

245 and

multiplier

249.

Mean flow

rate calculating unit

245 calculates the logarithm brightness logL of a frame C '(p) average value mu, and it is outputed to divider 246.

Divider

246 is with predetermined constant logL TDivided by average value mu, thereby calculate typical value γ 2, and make γ 2Memory 247

storages.Multiplier

248 is with typical value γ 1And γ 2Product as typical value γ (=γ 1γ 2) output to the contrast correction parts 207 in the back level.

Multiplier

249 is with the logarithm brightness logL of present frame C '(p) multiply by by γ 2The typical value γ of the previous frame that

memory

247 keeps 2Thereby, calculate the logarithm brightness logL after tint ramp is proofreaied and correct c(p), and with it output to adder 251-R to 251-B.

Multiplier 250-R multiply by the typical value γ that receives from

multiplier

248 with the output of subtracter 242-R, and the result is outputed to adder 251-R.Adder 251-R calculates the product of the output of the output of multiplier 250-R and

multiplier

249, and the logarithm color signal logR after the result proofreaied and correct as tint ramp c(p) output to the back level.

It should be noted that therefore the random component that is used to handle G and B composition will omit explanation with to be used to handle those of above-mentioned R composition similar.

Ensuing Figure 25 shows the example structure that downscaled images generates parts 205.The brightness of downscaled

images generation parts

205 generates the logarithm color signal [logR after

parts

261 calculate the tint ramp correction of importing c(p), logG c(p), logB c(p)] linearity and, thereby generate logarithm brightness logL c(p), and with it output to

classification element

262.

When entire image was divided into m * n piece,

classification element

262 was according to the piece under the brightness and with logarithm brightness logL c(p) value classification provides it to mean value calculation parts 263-1 to 263-N (=m * n) then.For example, those that are categorized into first are provided for mean value calculation parts 263-1, and are categorized into those of second and are provided for mean value calculation parts 263-2.Identical content also is applied to follow-up logarithm brightness logL c(p) value, those that are categorized into the N piece are provided for mean value calculation parts 263-N.

Average computing device 263-i (i=1,2 ..., N) from the logarithm brightness logL of a frame c(p) the logarithm brightness logL that is classified into the i piece is calculated in the inside c(p) mean value, and it is outputed to composite component 264.

Composite component

264 generates the downscaled images logL of m * n pixel C1, it has the logarithm brightness logL that receives from mean value calculation parts 263-i respectively c(p) mean value is as pixel value, and makes downscaled images memory 206 preservations in the level of back.

Ensuing Figure 26 shows the example structure of contrast correction parts 207.The brightness of contrast correction parts 25 generates the logarithm color signal [logR after parts 270 calculate the tint ramp correction of importing c(p), logG c(p), logB c(p)] linearity and, thereby generate logarithm brightness logL c(1p), output to interpolation position specifying part part 271 and with it and yield value is provided with parts 273.

Interpolation position specifying part part 271 obtains logarithm brightness logL c(p) location of pixels p (below be also referred to as interpolation position p), and it is outputed to interpolation parts 272.Interpolation parts 272 use the second downscaled images logL of the previous frame that is kept by downscaled images memory 206 C1, calculate pixel logL corresponding to interpolation position p by interpolation C1(p), and with it output to subtracter 274-R to 274-B and adder 276-R to 276-B.

Yield value is provided with parts 273 based on about the typical value γ of the previous frame that receives from tint

ramp correcting unit

22 and the logarithm brightness logL of present frame c(p), calculate the logarithm brightness logL that determines present frame cThe yield value g (p) of contrast enhancing amount (p), and it is outputed to multiplier 275-R to 275-B.

Subtracter 274-R is from logarithm color signal logR c(p) deduct interpolate value logL C1(p), and with the result output to multiplier 275-R.Multiplier 275-R multiply by yield value g (p) with the output of subtracter 274-R, and the result is outputed to adder 276-R.Adder 276-R is with interpolate value logL C1(p) be added in the output of multiplier 275-R, and with the logarithm color signal logR after the contrast correction that is obtained u(p) output to the back level.

It should be noted that below therefore the random component that is used to handle G and B composition will omit explanation with to be used to handle those of above-mentioned R composition similar.

Ensuing Figure 27 shows the tint

ramp correcting unit

204 that can replace shown in Figure 21, the example structure that downscaled images generates the composite component 300 of

parts

205, downscaled images memory 206 and contrast correction parts 207.

The brightness of composite component 300 generates parts 301 and calculates the logarithm color signal [logR of input b(p), logG b(p), logB b(p)] linearity and, thereby generate logarithm brightness logL b(p), and with it output to subtracter 302-R to 302-B and table reference part 304.Subtracter 302-R is from logarithm color signal logR b(p) deduct logarithm brightness logL b(p), and with the result output to multiplier 316-R.

The lut memory 303 of composite component 300 has the typical value γ that remains on the slope of tint ramp wherein corresponding to the LUT of as shown in Figure 4 tint ramp and expression in advance 1Table reference part 304 is proofreaied and correct from brightness based on the LUT that is kept by lut memory 303 and is generated the logarithm brightness logL (p) that parts 301 receive, thereby provides logarithm brightness logL C '(p), and with it output to multiplier 305 and downscaled images generation parts 306.

The logarithm brightness logL of the present frame that multiplier 305 will receive from table reference part 304 C '(p) multiply by by γ 2The typical value γ of the previous frame that

memory

167 keeps 2Thereby, calculate the logarithm brightness logL after tint ramp is proofreaied and correct c(p), and with it output to adder 317-R to 317-B.

Downscaled images generates parts 306 with logarithm luminance picture logL C 'Be divided into m * n piece, calculate the logarithm brightness logL of the pixel that belongs to single C '(p) Zhi mean value, thus first downscaled images of m * n pixel generated, and make 307 preservations of the first downscaled images memory.

Mean flow rate calculating unit 308 calculates the average value mu by the pixel value of first downscaled images of the previous frame of the first downscaled images memory, 307 maintenances, and it is outputed to divider 309.Divider 309 is with predetermined constant logL TDivided by average value mu, thereby calculate typical value γ 2, and make γ 2Memory 310 preservations.Multiplier 311 calculates typical value γ 1And γ 2Product as typical value γ (=γ 1γ 2), and it is outputed to yield value parts 315 and multiplier 316-R to 316-B are set.

The single pixel of first downscaled images that multiplier 312 will be kept by the first downscaled

images memory

164 multiply by by γ 2The typical value γ that memory 310 keeps 2Thereby, generate the second downscaled images logL C1, and make the second downscaled images memory 313 preservations.

Interpolation parts 314 use the second downscaled images logL of the previous frame that is kept by downscaled

images memory

169 C1, calculate logarithm brightness logL corresponding to the present frame that receives from multiplier 170 by interpolation c(p) the pixel logL of interpolation position p (below be also referred to as interpolation position p) C1(p), and with it output to subtracter 318-R to 318-B and adder 320-R to 320-B.

Yield value is provided with the logarithm brightness logL of parts 315 based on the present frame that receives about the typical value γ of the previous frame that receives from multiplier 311 with from multiplier 305 c(p), calculate the logarithm brightness logL that determines present frame cThe yield value g (p) of contrast enhancing amount (p), and it is outputed to multiplier 319-R to 319-B.

Multiplier 316-R calculates the output of subtracter 302-R and the product of typical value γ, and it is outputed to adder 317-R.Adder 317-R calculate the output of multiplier 316-R and multiplier 305 output and, and it is outputed to subtracter 318-R.Subtracter 318-R deducts interpolate value logL from the output of adder 317-R C1(p), and with the result output to multiplier 319-R.Multiplier 319-R multiply by yield value g (p) with the output of subtracter 318-R, and the result is outputed to adder 320-R.Adder 320-R calculates output and the interpolate value logL of multiplier 319-R C1(p) and, and with the logarithm color signal logR after the contrast correction that is obtained u(p) output to the back level.

It should be noted that below therefore the random component that is used to handle G and B composition will omit explanation with to be used to handle those of above-mentioned R composition similar.

The use of composite component 300 allows mean flow rate calculating unit 308 to calculate the mean value of first downscaled images of m * n pixel, calculates logarithm luminance picture logL for original size with being utilized to shown in Figure 24 cThe mean flow

rate calculating unit

245 of mean value of pixel compare, this has successfully reduced amount of calculation.Therefore, might reduce the time of delay that causes by calculating.

Ensuing Figure 28 shows the example structure of brightness range information calculations parts 210.In brightness range information calculations parts 210, brightness generates the color signal [R after parts 331 calculate the γ correction g(p), G g(p), B g(p)] linearity and, thereby generate brightness Y (p), and it outputed to select parts 332.Selecting parts 332 selects based on location of pixels p to generate the brightness Y (p) that parts 331 receive from brightness.That is to say, only the brightness value of the pixel of the pixel position that sets in advance is offered MIN classification element 333 and MAX classification element 336 in the level of back.

Configuration MIN classification element 333 makes k to the relatively combined serial arrangement of parts 334 and register 335, and makes by brightness Y (p) value of register 335-1 to 335-k with incremental order maintenance input.

For example, comparing unit 334-1 is relatively from the value among brightness Y (p) that selects parts 332 and the register 335-1, and when from the brightness Y (p) that selects parts 332 during, use from the brightness Y (p) that selects parts 332 and upgrade value among the register 335-1 less than the value among the register 335-1.Otherwise, when the value that is not less than from the brightness Y (p) that selects parts 332 among the register 335-1, will offer comparing unit 334-2 in the level of back from the brightness Y (p) that selects parts 332.

Identical content also will be applied to comparing unit 334-2 and thereafter, and wherein, after the brightness Y of a frame (p) input is finished, register 335-1 will have the maximum Y of the brightness Y (p) that remains on wherein Min, and register 335-2 to 335-k will have with incremental order and remain on wherein brightness Y (p) value, and will remain on brightness Y (p) among the register 335-k as the brightness Y of brightness range information dOutput to the back level.

Configuration MAX classification element 336 makes k to the relatively combined serial arrangement of parts 337 and register 338, and feasible brightness Y (p) value that is kept input by register 338-1 to 338-k with the order of successively decreasing.

For example, comparing unit 337-1 is relatively from the value among brightness Y (p) that selects parts 332 and the register 338-1, and when from the brightness Y (p) that selects parts 332 during, use from the brightness Y (p) that selects parts 332 and upgrade value among the register 338-1 greater than the value among the register 338-1.Otherwise, when the value that is not more than from the brightness Y (p) that selects parts 332 among the register 338-1, will offer comparing unit 337-2 in the level of back from the brightness Y (p) that selects parts 332.

Identical content also will be applied to comparing unit 337-2 and thereafter, and wherein, after the brightness Y of a frame (p) input is finished, register 338-1 will have the maximum Y of the brightness Y (p) that remains on wherein Max, and register 338-2 to 338-k will have with the order of successively decreasing and remain on wherein brightness Y (p) value, and will remain on brightness Y (p) among the register 338-k as the brightness Y of brightness range information bOutput to the back level.

Because being input to brightness Y (p) value of MIN classification element 333 and MAX classification element 336 is selected parts 332 and is selected, so select at interval and the suitable adjustment of the progression k of MIN classification element 333 and MAX classification element 336, make might obtain with a frame for example in the 1% or 0.1% corresponding brightness Y of top and bottom of whole pixels d, Y bValue.

Next, the general gray scale compression processing of second example structure of using the DSP 7 that has applied the composite component 300 shown in Figure 27 will be described with reference to the flow chart of Figure 29.

In step S41, DSP 7 (removing mosaic parts 201) removes mosaic to the colored mosaic image of wide DR, thereby generates wide DR coloured image, and is color signal [R (p) with its pixel value, G (p), B (p)] output to color balance adjustment component 202 with the order of grating.In step S42, DSP 7 (color balance adjustment component 202) adjusts R, G and B composition respectively, makes the color balance of entire image will become suitably, thereby generates color signal [R b(p), G b(p), B b(p)].

In step S43, average information (the second downscaled images logL that DSP 7 also keeps as calculated based on the wide DR coloured image with respect to previous frame c(p), typical value γ, brightness range information [Y d, Y b]), convert the color signal of wide DR coloured image L of the present frame of input to narrow DR coloured image Y nDSP 7 also calculates the average information about the wide DR coloured image L of present frame.

In step S44, DSP 7 uses the average information with respect to the wide DR coloured image L of the present frame that is calculated, and upgrades the average information about the wide DR coloured image of the previous frame stored.

In step S45, DSP 7 differentiates after the wide DR luminance picture of the present frame of input whether have subsequent frame, and when judgement exists, and this process is returned step S41 and repeated thereafter process.Otherwise when there was not any subsequent frame in judgement, gray scale compression processing finished.

To come details among the interpretation procedure S42, the processing on pixel basis with reference to the flow chart among Figure 30.The processing of the single step that describes below is with respect to carrying out according to the object pixel (location of pixels p) of raster order input.

In step S51, color balance adjustment component 202 is with the color signal [R that generates b(p), G b(p), B b(p)] output to logarithm converting member 203.In step S52, logarithm converting member 203 makes the color signal [R of input b(p), G b(p), B b(p)] be subjected to number conversion, and with the logarithm color signal [logR that is obtained b(p), logG b(p), logB b(p)] output to composite component 300.

In step S53, the brightness of composite component 300 generates parts 301 and calculates the logarithm color signal [logR of input b(p), logG b(p), logB b(p)] linearity and, thereby generate logarithm brightness logL b(p), and it is outputed to subtracter 302-R to 302-B, and table reference part 304.In step S54, table reference part 304 is proofreaied and correct based on the LUT that is kept by lut memory 303 and with the logarithm brightness logL (p) that imports and is logarithm brightness logL C '(p), and with it output to multiplier 305 and downscaled images generation parts 306.

In step S55, downscaled images generates the logarithm brightness logL of the frame after parts 306 are proofreaied and correct based on tint ramp C '(p) generate first downscaled images.Calculate typical value γ based on first downscaled images that generates here, 2Also multiply by the typical value γ that calculates so here by first downscaled images that will generate 2And generate the second downscaled images logL C1

In step S56, the logarithm brightness logL of the present frame that multiplier 305 will receive from table reference part 304 C '(p) multiply by by γ 2The typical value γ of the previous frame that memory 310 keeps 2Thereby, calculate the logarithm brightness logL after tint ramp is proofreaied and correct c(p).

In step S57, for the R composition, calculate, to generate the logarithm color signal logR after tint ramp is proofreaied and correct by subtracter 302-R, multiplier 316-R and adder 317-R c(p).For the G composition, calculate by subtracter 302-G, multiplier 316-G and adder 317-G, to generate the logarithm color signal logG after tint ramp is proofreaied and correct c(p).For the B composition, calculate by subtracter 302-B, multiplier 316-B and adder 317-B, to generate the logarithm color signal logB after tint ramp is proofreaied and correct c(p).

In step S58, yield value is provided with the logarithm brightness logL of parts 315 based on the present frame that receives about the typical value γ of the previous frame that receives from multiplier 311 with from multiplier 305 c(p), calculate the logarithm brightness logL that determines present frame c(p) the benefit value g (p) that contrast enhancing amount increases.In step S59, interpolation parts 314 use the second downscaled images logL of the previous frame that is kept by the second downscaled images memory 313 C1, calculate pixel logL corresponding to interpolation position p by interpolation C1(p).

In step S60, for the R composition, calculate, to generate the logarithm color signal logR after tint ramp is proofreaied and correct by subtracter 318-R, multiplier 319-R and adder 320-R u(p).For the G composition, calculate by subtracter 318-G, multiplier 319-G and adder 320-G, to generate the logarithm color signal logG after tint ramp is proofreaied and correct u(p).For the B composition, calculate by subtracter 318-B, multiplier 319-B and adder 320-B, to generate the logarithm color signal logB after tint ramp is proofreaied and correct u(p).

In step S61, logarithm inverse conversion parts 208 make the logarithm color signal [logR after the contrast correction u(p), logG u(p), logB u(p)] be subjected to the logarithm inverse conversion, thereby generate color signal [R by conventional axle expression u(p), G u(p), B u(p)], and with it output to γ correcting unit 209.In step S62, the γ that γ correcting unit 209 is scheduled to proofreaies and correct, and with the color signal [R after the γ correction that is obtained g(p), G g(p), B g(p)] output to monochrome information calculating unit 210 and brightness range normalization parts 212.

In step S63, the brightness of brightness range information calculations parts 210 generates the color signal [R after parts 331 are proofreaied and correct based on γ g(p), G g(p), B g(p)] generate brightness Y (p).In step S64, the MIN classification element 333 of brightness range information calculations parts 210 and MAX classification element 336 are calculated brightness range information [Y based on the brightness Y (p) of a frame d, Y b].

In step S65, brightness range normalization parts 212 are based on the brightness range information [Y of the previous frame that is kept by brightness range information-storing device 211 d, Y b], will be from the color signal [R of γ correcting unit 209 receptions g(p), G g(p), B g(p)] normalization, thus [R calculated n(p), G n(p), B n(p)].In step S66, the color signal [R that brightness range normalization parts 212 will calculate like this n(p), G n(p), B n(p)] export as the pixel value of the narrow DR coloured image after the gray scale compression.It is the ending of detailed explanation of the processing of the step S43 among Figure 29 herein.

Next, will explain the details of the processing among the step S44 among Figure 29 with reference to the flow chart among Figure 31.In step S71, downscaled images generates the logarithm brightness logL of the frame after parts 306 uses are proofreaied and correct based on tint ramp C '(p) first downscaled images that generates is upgraded first downscaled images that is kept by the first downscaled images memory 307.

In step S72, divider 309 is with predetermined constant logL TDivided by the average value mu that receives from mean flow

rate calculating unit

165, thereby calculate typical value γ 2, and use the typical value γ that calculates like this 2Upgrade by γ 2The typical value γ that memory 310 keeps 2

In step S73, the single pixel of first downscaled images that multiplier 312 will be upgraded by the processing of step S71, that keep by the first downscaled images memory 307 multiply by upgrade by the processing of step S72, by γ 2The typical value γ that memory 310 keeps 2Thereby, generate the second downscaled images logL C1, and upgrade the second downscaled images logL that keeps by the first downscaled images memory 313 C1

In step S74, [the R that brightness range information calculations parts 210 use based on a frame g(p), G g(p), B g(p)] the brightness range information [Y that generates d, Y b], upgrade brightness range information [Y by the previous frame of brightness range information-storing device 211 maintenances d, Y b].It is the ending of detailed explanation of the processing of the step S44 among Figure 29 herein.

Here be the ending of detailed explanation of second example structure of DSP 7.

For example, it should be noted, mean flow rate shown in mean flow rate calculating unit 63 shown in mean flow

rate calculating unit

51 shown in the

allocation plan

5, Fig. 6, Figure 17 is calculated each of the mean flow

rate calculating unit

245 shown in the mean flow

rate calculating unit

232 shown in

parts

165, Figure 23 and Figure 24, make and wherein be used to find the calculating of mean value can adopt weighted average by the mean value that calculates brightness value.For example, the power ratio that gives the middle body of image is given the Quan Gengda of peripheral part, makes and can carry out gamma correction when focusing on the reflectivity of the object that is present in the image middle body.

Composite component 300 shown in

composite component

160 shown in Figure 17 and Figure 27 has the memory that is used to keep first downscaled images that generated and is used to keep first downscaled images by generating like this to multiply by typical value γ 2And the memory of second downscaled images that generates, wherein, because just no longer include necessary maintenance first downscaled images, so these two memories can be merged into one in case generated second downscaled images.

If the present invention is applied to the digital camera as in the present embodiment: it takes the picture of wide DR image, the compression gray scale is also exported it as the image that can show with narrow dynamic range on display, then make and might realize that the gray scale compression handles by such structure: its only have a large amount of minimizings to memory span indispensable in traditional gray scale compress technique (delay line that is used for frame memory or pixel serial data), and also make to obtain such output image: it never is inferior to the gray scale compression that realizes by the extensive filtering of common use and handles the output image that obtains.

This makes might realize the high-quality and cheap digital camera that had never been realized.

Wide DR image in the present embodiment is that

hypothesis display

11 is handled for reproducer is subjected to the gray scale compression, wherein, for example, also might carry out gray scale compression and handle, make to be suitable for the dynamic range that to represent by monitor that is external to

digital camera

1 or printer.

Ensuing Figure 32 shows the example structure that has applied image processing system of the present invention.Image processing system 501 is by constituting with lower member: video camera 502 is used for the picture of reference object, and produces the wide DR image L that is made of the pixel that has than the pixel value (brightness) of wideer usually dynamic range;

Image processing equipment

510, the gray scale that is used for the wide DR image L that will be generated by video camera 502 is compressed to can be by display 511 gray-scale displayed colour code scopes; And

display

11, be used to show the image L after the gray scale that is generated by

image processing equipment

510 compresses u

The lens 503 that video camera 502 is assembled by the light image that is used to make object, be used to adjust the aperture of amount of the light energy of light image, be used for generating the ccd image sensor of luminance signal by the opto-electronic conversion of the light image assembled, be used for removing the preamplifier (Pre-amp.) 506 of noise contribution from the luminance signal that is generated, the luminance signal that is used for will removing usually noise contribution converts the AD converter (A/D) 507 of the numerical data with the bit wide about 14 to 16 to, and the wide DR image that is used for being made of the pixel with digitlization brightness outputs to I/O interface (I/O) 508 formations of

image processing equipment

510.

Figure 32 shows whole operations of image processing equipment 1.In step S101, the picture of video camera 502 reference objects generates corresponding wide DR image L, and it is outputed to image processing equipment 510.In step S102,

image processing equipment

510 makes wide DR image L be subjected to the gray scale compression and handles, thereby generates the image L after the gray scale compression u, and it is outputed to display 511.In step S103, the image L after the compression of display 511 display gray scale colour codes u

Ensuing Figure 34 shows first example structure of image processing equipment 510.The tint

ramp correcting unit

521 of

image processing equipment

510 is based on the tint ramp that obtains in advance, the wide DR image L that receive from video camera 502 towards the correction for direction of compression gray scale, and the image L after the tint ramp of gained proofreaied and correct cOutput to that level and smooth brightness generates

parts

522, yield value is provided with

parts

523 and contrast correction parts 524.It should be noted the image L after tint ramp is proofreaied and correct cHave a gray scale that has compressed, and because the contrast that weakens that the gray scale that has compressed causes.The typical value γ of the slope of the tint ramp that tint

ramp correcting unit

521 also is used to expression to proofread and correct outputs to yield

value parts

523 is set.

Figure 35 shows the example structure of tint ramp correcting unit 521.The

lut memory

531 of tint

ramp correcting unit

521 keeps the corresponding look-up table (hereinafter referred to as LUT) of tint ramp that increases with as shown in figure 36 dullness and the typical value γ of expression tint ramp slope in advance.Replace LUT, keep also allowing corresponding to the function of tint ramp.

Table reference part

532 is proofreaied and correct wide DR image L based on the LUT that is kept by

lut memory

531, thereby obtains the image L after tint ramp is proofreaied and correct c

Figure 36 shows the example of tint ramp, and wherein on the interior normalized logarithmic axis of [0,1] scope, respectively by the wide DR image of abscissa plots L, ordinate plots is proofreaied and correct the image L after tint ramp is afterwards proofreaied and correct cBrightness.Tint ramp shown in Figure 36 was not proofreaied and correct this value at the brightness value of normalized wide DR image above 0.5 o'clock, and proofreaied and correct this value at the brightness value of normalized wide DR image value less than 0.5 o'clock, made and proofreaied and correct less value by bigger correcting value.That is to say, proofread and correct, avoid the shade of the dark areas in the image of maximum when making when appearing at display 511 on.The typical value γ of expression tint ramp slope can be defined by the mean value of the slope that obtains respectively on the whole zone of brightness.For example, the typical value of the tint ramp shown in Figure 36 is γ=0.94.

Below with reference to returning Figure 34, level and smooth brightness generates the image L after

parts

522 make the tint ramp correction cThe brightness smoothing, and with obtained level and smooth after the brightness L of image C1(p) output to contrast correction parts 24.Figure 37 shows the example structure that level and smooth brightness generates

parts

22.

The downscaled images of level and smooth

brightness generation parts

522 generates

parts

541 will be from the image L after the tint ramp correction of tint

ramp correcting unit

521 receptions according to location of pixels cPixel be categorized into m * n piece, and generate downscaled images L C1, it has the pixel of the mean value of the pixel intensity that is categorized into single as it.

Downscaled images memory

542 keeps the downscaled images L of m * n pixel of generation like this C1

Interpolation parts

543 use the pixel of the downscaled images that is kept by downscaled

images memory

542, the brightness of calculating the location of pixels of appointment in turn by interpolation, and with the interpolate value L that is obtained C1(p) pixel intensity as the image after level and smooth outputs to contrast correction parts 524.It should be noted that here (x y) is the coordinate or the vector of remarked pixel position to p=.The size of the image behind

interpolation parts

543 output level and smooth equals the image L after tint ramp is proofreaied and correct cSize.

That is to say, generate in the

parts

522, dwindle the image L after the tone curvature correction in level and smooth brightness c, to generate downscaled images L C1, and by using the downscaled images L that is kept C1, the brightness of calculating the image after level and smooth by interpolative operation in the mode of individual element.

Although being necessary usually to adopt is used for the large-scale relatively filtering that the compression of effective gray scale is handled, level and smooth brightness generates the downscaled

images memory

542 that

parts

522 only need to be used to keep the downscaled images of m * n pixel.

Figure 38 shows the example structure that the downscaled images shown in Figure 37 generates parts 541.Image L after the tint ramp that the classification element 551 of downscaled

images generation parts

541 receives tint

ramp correcting unit

521 is proofreaied and correct cThe pixel basis location of pixels and be categorized into m * n piece, provide it to mean value calculation parts 552-1 to 552-N (=m * n) then.For example, those that are categorized into first are provided for mean value calculation parts 552-1, are provided for mean value calculation parts 552-2 and be categorized into those of second.When there is no need to distinguish single mean value calculation parts 552-1 to 552-N, the simple mark of mean

value calculation parts

552 is adopted in following description.

Mean value calculation parts 552-i (i=1,2 ..., N) calculate image L after the tint ramp be categorized into the i piece is proofreaied and correct cThe mean value of pixel intensity, and it is outputed to composite component 553.Composite component 553 generates the downscaled images logL of m * n pixel C1, its mean value that has respectively the brightness that receives from mean value calculation parts 552-i is as pixel value.

Figure 39 shows the example structure of the mean

value calculation parts

552 shown in Figure 38.The

adder

561 of mean

value calculation parts

552 will be from prime the image L of the tint ramp that receives of classification element 551 after proofreading and correct cBrightness be added on the value that keeps by register (r) 562, thereby upgrade the value that keeps by register (r) 562.

Divider

563 will be by the final values that keep of

register

562 divided by the pixel count Q that constitutes a piece, thereby calculates the mean value of the brightness of Q the pixel that is categorized into a piece.

Figure 40 shows the example structure of the

interpolation parts

543 shown in Figure 37.Near the

alternative pack

571 of

interpolation parts

543 is based on the downscaled images L of m * n the pixel that is kept by downscaled

images memory

542 C1, when receiving interpolation position p, obtain near the brightness a[4 of 4 * 4 pixels the p of interpolation position] and [4], and it is outputed to

product summation component

574.

Here, mark a[i] [j] meaning be that pixel value a is the two-dimensional arrangements data of i * j.Near

alternative pack

571 with the brightness a[4 that is obtained] horizontal displacement dx and vertical displacement dy between [4] and the interpolation position p output to horizontal

coefficients calculating unit

572 or Vertical

factor calculating unit

573 respectively.

It should be noted interpolation position p, adjacent brightness a[4] relation object between the amount of [4] and displacement dx, dy describe with reference to Figure 11 above being similar to those, therefore will omit this explanation.

Horizontal

coefficients calculating unit

572 is based on the horizontal displacement dx that receives near alternative pack 71 and three interpolation coefficient k on the calculated level direction x[4].Similarly, Vertical

factor calculating unit

573 calculates three interpolation coefficient k on the vertical direction based on the vertical displacement dy that receives near alternative pack 571 y[4].

Three interpolation coefficient k on the horizontal direction x[4] usually by using above-mentioned formula (1) to calculate.

Three interpolation coefficient k on the vertical direction y[4] usually by using above-mentioned formula (2) to calculate.

It should be noted,, can use except the formula (1) that illustrates above, any any computing formula (2) and calculate interpolation coefficient k three times as long as can obtain enough level and smooth interpolation x[4] and k y[4].

Product summation component

574 is used above-mentioned formula (3), by using adjacent pixel values a[4] [4], horizontal interpolation coefficient k x[4] and the vertical interpolation coefficient k y[4] product read group total is calculated downscaled images L C1The interpolate value L of interpolation position p C1(p).

Below with reference to returning Figure 34, yield value is provided with

parts

523 based on the typical value γ that receives from tint

ramp correcting unit

521, for single location of pixels, calculates the brightness logL that is used for the image after

contrast correction parts

524 are adjusted smoothly cThe yield value g (p) of contrast correction amount (p), and it is outputed to contrast

correction parts

524.

To explain yield value g (p) below.For the yield value of g (p)=1,

contrast reinforcing member

524 neither strengthens and does not also suppress contrast.For the yield value of g (p)>1, the enhancing contrast ratio corresponding to this value.Otherwise,, suppress contrast corresponding to this value for the yield value of g (p)<1.

The summary that the yield value setting that

parts

523 carry out is set by gain is similar to by above-mentioned gain the yield value setting that parts 93 carry out is set, and therefore will omit this explanation.

Figure 41 shows the example structure that yield value is provided with parts 523.

Divider

581 calculates from

inverse

1/ γ=g of the typical value γ of prime reception 0, and it is outputed to subtracter 582.Subtracter 582 calculates (g 0-1), and with it outputs to

multiplier

588.

Subtracter

583 calculates the image L after tint ramp is proofreaied and correct cSingle brightness and have other brightness of intermediate gray-scale level L GrayBetween poor (L c-L Gray), and it is outputed to divider 585.

Subtracter

584 calculates has other brightness of white limiting stage L WhiteWith brightness L GrayBetween poor (L White-L Gray), and it is outputed to divider 585.

Divider

585 is with the output (L of subtracter 583 c-L Gray) divided by the output (L of subtracter 584 White-L Gray), and it is outputed to absolute calculators 586.

Absolute calculators

586 is calculated the absolute value of the output of

subtracter

585, and it is outputed to amplitude limiter 587.Amplitude limit is carried out in the output of 587 pairs of

absolute calculators

586 of amplitude limiter, makes that surpassing at 1 o'clock in this output is adjusted into 1 with it, and it is constant and be no more than at 1 o'clock and keep in this output, and the result is outputed to

multiplier

588 as attn (p).

The output that

multiplier

588 multiply by

amplitude limiter

587 with the output of

subtracter

582, and product outputed to adder 589.

Adder

589 adds 1 with the output of

multiplier

588, and the result is outputed to the back level as yield value g (p).

Below with reference to returning Figure 34,

contrast correction parts

524 based on be provided with from yield value that

parts

523 receive for the yield value g (p) of single location of pixels p and the brightness L that generates the image behind level and smooth that

parts

522 receive from level and smooth brightness C1(p), the image L after the tint ramp that strengthens the contrast that had before weakened is proofreaied and correct cContrast, thereby generate image L after the gray scale compression u

Figure 42 shows the example structure of contrast correction parts 524.The

subtracter

591 of

contrast correction parts

524 calculates the image L after tint ramp is proofreaied and correct cThe brightness L of single pixel c(p) with level and smooth after brightness (that is interpolate value L of downscaled images, of respective pixel of image C1(p)) poor (L between c(p)-L C1(p)), and with it output to multiplier 592.

Multiplier

592 calculates the output of

subtracters

591 and from yield value the product of the yield value g (p) that

parts

523 receive is set, and the result is outputed to adder 593.

Adder

593 is with brightness (the interpolate value L of downscaled images of the image after level and smooth C1(p)) be added in the output of

multiplier

592, and with the brightness L that is obtained u(p) as constituting image L after the contrast correction, that gray scale has compressed uPixel brightness and output to back level.

It should be noted below, smoothly pixel intensity (the interpolate value L of downscaled images of the image after C1(p)) be based on the interpolate value of m * n pixel, and therefore only have the image L before dwindling cThe extremely low frequency composition.

Thereby, the output (L of subtracter 591 c(p)-L C1(p)) equal by the image logL after proofreading and correct from original tint ramp cOnly deduct extremely low frequency and become the poor of branch acquisition.As mentioned above, the brightness L of image after the contrast correction, that gray scale has compressed u(p) by such acquisition: luminance signal is divided into extremely low frequency composition and other composition, and in these compositions, composition except low-frequency component has strengthened contrast by multiply by yield value g (p), and,

use adder

593 that both are synthetic once again.

As mentioned above, configuration

contrast correction parts

524 make and use identical yield value g (p) to strengthen Low Medium Frequency district except the extremely low frequency district and the composition in the high frequency region.Therefore, make might obtain to have concerning eyes, strengthen very natural image, and do not generate when only strengthening radio-frequency component the local overshoot of marginal portion that can be clearly.

Next, to explain that the gray scale compressed image that is undertaken by the

image processing equipment

510 according to first example structure generates the details of handling (that is the processing among the step S102 that describes with reference to the flow chart among Figure 33) in the above with reference to the flow chart among Figure 43.

In step S111, tint

ramp correcting unit

521 is proofreaied and correct from the brightness of the wide DR image L of video camera 502 receptions based on the LUT that obtains in advance, and with the image L after the tint ramp correction that is obtained cOutput to that level and smooth brightness generates

parts

522, yield value is provided with

parts

523 and contrast correction parts 524.The typical value γ of the slope of the tint ramp that tint

ramp correcting unit

521 also is used to expression to proofread and correct outputs to yield

value parts

523 is set.

In step S112, level and smooth brightness generates the image L after

parts

522 dwindle the tone curvature correction cThereby, generate downscaled images L C1, and further use downscaled images L C1Pixel, calculate the pixel intensity L of the image after level and smooth based on interpolative operation C1(p), and with the result output to contrast

correction parts

524.

In step S113, gain is provided with

parts

523 based on the typical value γ that receives from tint

ramp correcting unit

521, for single location of pixels, calculates the brightness L that is used for the image after

contrast correction parts

524 are adjusted smoothly cThe yield value g (p) of contrast correction amount (p), and it is outputed to contrast

correction parts

524.

It should be noted the enforcement that can walk abreast of the processing among step S112 and the step S113.

In step S114,

contrast correction parts

524 based on be provided with from yield value that

parts

523 receive for the yield value g (p) of single location of pixels p and the brightness L that generates the image behind level and smooth that

parts

522 receive from level and smooth brightness C1(p), proofread and correct image L after the tone curvature correction cBrightness, thereby calculate image L after the gray scale compression uPixel intensity L u(p).Therefore, image L after the contrast correction that obtains as mentioned above, after the gray scale compression uObtain as image, and do not generate when only strengthening radio-frequency component the local overshoot of marginal portion that may be clearly with the contrast that concerning eyes, strengthens very naturally.It is the ending that the gray scale compressed image that is undertaken by first example structure of

image processing equipment

510 is generated the explanation of handling herein.

Ensuing Figure 44 shows second example structure of image processing equipment 510.Second example structure is according to disposing like this, making provides

logarithm converting member

601 in the prime of the tint

ramp correcting unit

521 in first example structure shown in Figure 34, be used to realize the wide DR image L that receives from video camera 501 brightness to number conversion, and provide logarithm

inverse conversion parts

602 in the back level of the

contrast correction parts

524 in first example structure, be used to realize logarithm inverse conversion from the output of

contrast correction parts

524.

Any assembly except

logarithm converting member

601 and logarithm

inverse conversion parts

602 of second example structure of composing

images treatment facility

510 is equal to those of first example structure shown in Figure 34, and be endowed identical label, thereby will omit this explanation.It should be noted at this, in second example structure, the brightness of the parts individual processing from tint

ramp correcting unit

521 to contrast

correction parts

524 after to number conversion.

For example, 521 employings of the tint ramp correcting unit in second example structure tint ramp as shown in Figure 4.That dullness as shown in Figure 4 increases, mild anti-S shape and color transfers the application of curve can not cause very strong gray scale compression effectiveness in high luminance area and low-light level district, also might obtain desirable white blind or black blind tone with less degree even make after the gray scale compression.Otherwise, the gray scale compression will influence the intermediate luminance district strongly, and this means that contrast correction can fully be applied to the intermediate luminance district, and cause also obtaining the image L of the gray scale compression of desirable contrast correction with less degree in the intermediate luminance district uHere, to have value be 0.67 typical value γ to tint ramp.

Next, will explain that the gray scale compressed image according to second example structure of

image processing equipment

510 generates the details of handling with reference to the flow chart among Figure 45.

In step S121,

logarithm converting member

601 makes from the brightness of the wide DR image L of video camera 5022 receptions and is subjected to number conversion, and with what obtained SerComm DR image logL is outputed to tint

ramp correcting unit

521.

In step S122, tint

ramp correcting unit

521 usually based on obtain in advance, corresponding to the LUT of the tint ramp shown in Fig. 4, proofread and correct brightness, and the image logL after the logarithm tint ramp that is obtained proofreaied and correct to SerComm DR image logL cOutput to that level and smooth brightness generates

parts

522, yield value is provided with

parts

523 and contrast correction parts 524.The typical value γ of the slope of the tint ramp that tint

ramp correcting unit

521 also is used to expression to proofread and correct outputs to yield

value parts

523 is set.

In step S123, level and smooth brightness generates the image logL after

parts

522 dwindle the correction of logarithm tint ramp cThereby, generate logarithm downscaled images logL C1, and further use logarithm downscaled images logL C1Pixel, calculate the pixel intensity logL of the image of logarithm after level and smooth by interpolative operation C1(p), and with the result output to contrast

correction parts

524.

In step S124, yield value is provided with

parts

523 based on the typical value γ that receives from tint

ramp correcting unit

521, for single location of pixels, calculates the brightness logL that is used for the image after

contrast correction parts

524 adjustment logarithms are level and smooth cThe yield value g (p) of contrast correction amount (p), and it is outputed to contrast

correction parts

524.

It should be noted the enforcement that can walk abreast of the processing among step S123 and the step S124.

In step S125,

contrast correction parts

524 based on be provided with from yield value that

parts

523 receive for the yield value g (p) of single location of pixels p and the brightness L that generates logarithm that

parts

522 the receive image after level and smooth from level and smooth brightness C1(p), the image logL after proofreading and correct the logarithm tint ramp and proofreading and correct cBrightness, thereby calculate image logL after the compression of logarithm gray scale uPixel intensity logL u(p), and with it output to logarithm

inverse conversion parts

602.

In step S126, logarithm

inverse conversion parts

602 make the image logL after the compression of logarithm gray scale uPixel intensity logL u(p) be subjected to the logarithm inverse conversion, and with the L that is obtained u(p) as the image L after the gray scale compression uPixel intensity output.

Because after the contrast correction of Huo Deing, after the gray scale compression as mentioned above image L uTo can in high luminance area and low-light level district, not cause very strong gray scale compression effectiveness, after the gray scale compression, might obtain desirable, as to have less degree white blind or black blind tone yet even make.Otherwise, the gray scale compression will influence the intermediate luminance district strongly, and this means that contrast correction can be applied to the intermediate luminance district fully, and cause the image L after the intermediate luminance district also obtains the gray scale compression of desirable, as to have less degree contrast correction uIt is the ending that generates the explanation of handling according to the gray scale compressed image of second example structure of

image processing equipment

510 herein.

As described above,

image processing equipment

510 according to an embodiment of the invention makes might be based on the structure that has significantly reduced for the indispensable large memories capacity of traditional gray scale compress technique (as frame memory and data delay line), but will have that wide DR image transitions than the dynamic range of usually wideer brightness becomes can be at the image after the gray-scale displayed colour code compression on the display 111 of the narrow dynamic range that only has display brightness, and does not damage the good characteristic of outward appearance.The also feasible image that might obtain after such gray scale compresses: it never is inferior to gray scale of realizing by the extensive filtering of common use and compresses the image of handling after the gray scale that obtains compresses.

Certainly,

image processing equipment

510 can be when being suitable for the dynamic range that can show on printer except display 511 and projecting apparatus, and wide DR image transitions is become image after the gray scale compression.

The present invention is applicable to such imaging signal processing circuit usually: it not only is built in the capture apparatus such as digital camera and digital static camera, also is built in the performance equipment such as display, printer, projecting apparatus etc.

Above-mentioned a series of processing can be carried out on hardware foundation, also can carry out on basis of software.For the situation of on basis of software, carrying out this series of processes, the program that constitutes this software is installed in from recording medium on the computer that is built in specialized hardware, perhaps, for example be installed to and can carry out on the general purpose personal computer of various functions after various programs are installed.

Figure 46 shows the example structure of general purpose personal computer.

Personal computer

620 has the CPU (CPU) 621 that is built in

wherein.CPU

621 is connected with input/

output interface

625 via

bus 624.Bus

624 is connected with RAM (random access memory) 623 with ROM (read-only memory) 622.

Input/

output interface

625 be connected with lower member: input block 626, it is made of the input equipment such as the keyboard of user by its input operation order, mouse etc.;

Output block

627 is used for exporting the gained image of handling function screen or processing on display device;

Memory unit

628, it is made of hard disk drive of the program that is used for store various kinds of data etc.; And I/

O interface

629, be used for carrying out view data and communicate by letter with video camera 502 grades.Its also be used for writing or be connected from the

driver

630 of its reading of data to recording medium such as disk 631 (comprising floppy disk), CD 632 (comprising CD-ROM (compact disc read-only memory) and DVD (digital multi-purpose disk)), magneto optical disk 633 (comprising MD (mini-disk)) or semiconductor memory 634.

CPU

621 is according to the program that is stored among the

ROM

622, perhaps from disk 631 to semiconductor memory 634 any one read and be installed on the

memory unit

628 and be loaded into program from the

RAM

623 of

memory unit

628 from

memory unit

628, carry out

various processing.RAM

623 also have suitably be stored in wherein carry out the necessary data of various processing for

CPU

621.

Should be understood that, in patent specification, the step that is used for describing the program that recording medium writes down not only is included on the seasonal effect in time series basis to be handled in sequence according to given, can also comprise and replace those those processing of always handling and processing parallel or that carry out separately on the seasonal effect in time series basis.

Should be understood that, in this manual, with reference to the full content of claims, specification, accompanying drawing and the summary of Japanese patent application 2002-003134 number (submission on January 9th, 2003) and 2003-003135 number (submission on January 9th, 2003), and it is herein incorporated.

The industry scope of application

As described above, the invention enables and might realize such gray scale compress technique: it only needs the small memory capacity and the light amount of calculation that will consume, and allows to be easy to hardware construction, and guarantees big gray scale compression effectiveness.

Also make and to use less memory span,, and suitably strengthen the contrast of image based on simple hardware construction based on less amount of calculation.

Claims

(according to the modification of the 19th of treaty)

1. image processing equipment is characterized in that comprising:

The downscaled images generating apparatus is used for generating downscaled images from input picture;

The control information deriving means is used for obtaining based on this downscaled images the control information of input picture; And

The gray scale conversion equipment is used to change the gray scale of input picture;

Wherein, the contrast that the gray scale conversion equipment uses control information to proofread and correct input picture is as will be before the conversion gray scale and/or the processing of carrying out afterwards.

2. according to the image processing equipment of

claim

1, it is characterized in that also comprising:

Smoothing apparatus is used for generation and has pixel intensity L cLevel and smooth after image, described pixel constitutes based on the interpolation of using the pixel that constitutes downscaled images to be calculated and the input picture of smoothing,

Wherein, the gray scale conversion equipment is based on the brightness L of the pixel of composing images c, constitute the brightness L of the pixel of the image after level and smooth 1, and predetermined gain value g and image after generating contrast correction.

3. according to the image processing equipment of

claim

1, it is characterized in that also comprising:

Smoothing apparatus is used for generation and has pixel intensity L cLevel and smooth after image, described pixel constitutes based on the interpolation of using the pixel that constitutes downscaled images to be calculated and the input picture of smoothing; And

The yield value setting device is used to be provided with and is used for the yield value g of contrast correction;

Wherein, the gray scale conversion equipment is based on the brightness L of the pixel that constitutes input picture c, constitute the brightness L of the pixel of the image after level and smooth 1, and predetermined gain value g and image after generating contrast correction; And

Can dispose the yield value setting device, make based on the initial yield value g that imports 0,

benchmark yield value

1 and use the first luminance threshold Th 1, the second luminance threshold Th 2Brightness L with the pixel that constitutes input picture cPad value attn (the Th that calculates 1, Th 2, L c) yield value g is set.

4. according to the image processing equipment of

claim

1, it is characterized in that also comprising:

Conversion equipment is used for generating the image after tone is changed by change the brightness L of the pixel that constitutes input picture based on transfer function;

Smoothing apparatus is used for by making the brightness L of the pixel that constitutes the image after tone is changed cSmoothing and generate image after level and smooth; And

The yield value setting device is used for the initial yield value g based on

inverse

1/ γ of the slope γ that represents transfer function 0, be provided for the yield value g of contrast correction;

Wherein, the contrast correction device is based on the brightness L of the pixel that constitutes the image after tone is changed c, constitute the brightness L of the pixel of the image after level and smooth 1, and yield value g, generate the image after the contrast correction; And

The yield value setting device is based on the initial yield value g of input 0,

benchmark yield value

1 and use the first luminance threshold Th 1, the second luminance threshold Th 2Brightness L with the pixel that constitutes the image after tone is changed cPad value attn (the Th that calculates 1, Th 2, L c), yield value g is set.

5. according to the image processing equipment of

claim

1, it is characterized in that:

The downscaled images generating apparatus, the size by the image after input picture is converted to the image after tone is changed based on transfer function and dwindles this tone conversion generates downscaled images;

The control information deriving means obtains the control information of the slope that comprises transfer function; And

The gray scale conversion equipment, based on the slope of downscaled images and transfer function, the contrast of the image after coming correcting colour to turn to change.

6. according to the image processing equipment of

claim

5, it is characterized in that also comprising:

Holding device is used to keep downscaled images that is generated by the downscaled images generating apparatus and the control information of being obtained by means for correcting;

Wherein, holding device keeps corresponding to the downscaled images of the image of previous frame and is applied to the slope of the transfer function on the image of previous frame, and

The gray scale converting means, based on the slope of downscaled images that all is kept at the previous frame in the holding device and transfer function, the contrast of the image after coming correcting colour to turn to change.

7. image processing method is characterized in that comprising:

Downscaled images generates step, is used for generating downscaled images from input picture;

The control information obtaining step is used for obtaining based on this downscaled images the control information of input picture; And

The gray scale switch process is used to change the gray scale of input picture;

Wherein, the contrast that the gray scale switch process uses control information to proofread and correct input picture is as will be before the conversion gray scale and/or the processing of carrying out afterwards.