Background of the Invention
The invention pertains to a method for the detection and automatic correction of horizontal or vertical errors in image steadiness during continuous image scanning of films, in accordance with the general definition provided by the main claim.
A substantial disadvantage in the reproduction quality of films on television, as compared to images made with electronic cameras, are the visible horizontal and vertical errors in image steadiness. These partly periodic and partly statistical fluctuations in image position can have several causes. Positioning errors in the film camera or in the negative/positive copy machine, or synchronization errors--flutter and wow--in the film scanner cause problems in image steadiness. Also variations in the dimensions of the perforations in the film stock can have negative effects on steadiness. Even if very tight mechanical tolerances are maintained, the sum of all these errors can cause visible errors in image steadiness on a TV monitor.
The causes, the effects, and the elimination of these errors have been discussed in various publications for a long time, for example Frielinghaus "New Investigations on Picture Steadiness of Motion Pictures in Projection", Journal of the SMPTE, January 1986, page 34 et seq.; Zavada "Challenges to the concept of Cancellation", Journal of the SMPTE, December 1981, page 1173 et seq.; and Wright "Image Steadiness in Television Presentation", Journal of the SMPTE, October 1971, page 812 et seq.
The V.K. patent GB No. 165 417 A describes a method for the measurement and electronic correction of errors in image steadiness. The video signals from a sequence of film images are evaluated using a motion vector measurement of the film image content. However, such a measurement is bound to fail if the image does not provide adequate information, for example: sharp, fixed edges. Also the measurement can produce false results when the camera moves or zooms. The method uses two dimensional interpolators to correct image position without affecting the scanning of the film image. The use of interpolators, however, is expensive and degrades the resolution of the film picture by reason of their two-dimensional low-pass filter effect.
In the V.K. patent GB No. 2 145 899 A a further procedure is described in which the edge of the film image is scanned and is compared to the studio synchronization pulse in order to determine the error in image position. The selection of image storage locations is controlled to correct image position and ongoing scanning is not affected. However, since there are film formats which do not provide a clear frame for the film image and in which film images can even overlap in an unfavorable case, for example in Cinemascope or Super 8 formats, inaccuracies in the determination of position errors can be produced by this method. Besides, different film formats provide different frame sizes. Frame size can change continuously in films. The correction of position by storage location selection also requires an image memory having a storage capacity greater than the total content of the images. Furthermore, the resultant selection, with its variable timing signals, complicates distribution of these timed signals in a studio.
A method for correcting synchronization errors in a film scanner is proposed in the European patent EP No. 0 162 486 A2, wherein tachometer pulses are generated by a toothed roller which is coupled to the film for the control of the horizontal driving frequency of a CCD line sensor array. However, a disadvantage of the method is that the control of the horizontal driving frequency causes changes in the integration time of the CCD and, thus, changes the white-level and the black-level for image elements of the video signal. Compensation of that change is very difficult. Furthermore, the integration effect of the toothed roller, and the motion of each tooth relative to the perforation hole, make quick and precise correction for vertical errors impossible. Finally, no horizontal image steadiness correction is provided by this method.
Summary of the Invention
Therefore an object of the invention is to provide a method as described above, which avoids the disadvantages described above and which provides an exact correction of the image steadiness in all situations, even for damaged film stock or multi-generational film copies.
This object, as well as other objects which will become apparent from the discussion that follows are achieved, in accordance with the present invention, by a method comprising the steps of:
producing horizontal and vertical image steadiness error signals in dependence upon the horizontal and vertical positions, respectively, of each film frame relative to the television film image scanner;
determining from the vertical error signals the start of scanning of the first television scan line for each film frame as well as the start of writing the video signals produced by scanning that film frame into an image buffer memory;
displacing the start of scanning of each new television scan line relative to the writing of this new scan line into the memory in dependence upon the horizontal error signals;
producing standard television horizontal and vertical timing pulses in synchronism with studio timing pulses; and
reading the video signals out from the memory in dependence upon these standard horizontal and vertical timing pulses.
The method in accordance with the present invention has the advantage that horizontal and vertical deviation can be determined at the same time, and a very precise correction is possible. Because of the simultaneous control of the image scanning and memory storage in accordance with the present invention, no increase in storage capacity and no two-dimensional interpolators are necessary. Also, the read out from the image memory is carried out at a fixed frame rate that conforms to studio timing standards and, therefore, is suitable for the distribution in digital studios.
Various other features which will be described below provide advantageous further developments and improvements of the method in accordance with the present invention. The scanning of film markings, preferably sprocket holes scanned at the angle "alpha", is particularly advantageous for detecting horizontal and vertical position errors.
A preferred embodiment of the invention is represented in the drawings and is described in more detail in the following specification.
Brief Description of the Drawings
FIG. 1 is a block diagram of a system which employs the automatic correction method in accordance with the present invention.
FIG. 2 is a block diagram of the processing of the measurement signals in the system of FIG. 1.
FIG. 3 is a film sprocket hole and indicates the scanning pattern used in accordance with the present invention.
FIG. 4 is a block diagram of the generation of the correction signals in the system of FIG. 1.
Description of the Preferred Embodiment
In the system shown in FIG. 1 the film 1 is driven continuously by a capstan 2, illuminated by a lamp 3, and projected through the lens 4 onto a light-sensitive line sensor array (CCD) 5. Red, green and blue signals from the array are provided by the pre-amplifier 6 to the video signal processor 7.
A clock signal and a horizontal transfer signal are supplied to the pre-amplifier and CCD-unit 6. The horizontal transfer signal determines the start of the scanning of a new line.
A light source 8 illuminates the sprocket hole and projects the image of the sprocket hole onto a linear sensor 9, which is affixed to the scanner at an angle "alpha" to the path of the film, an angle of about 75 degrees. The processing circuit 10, which is shown in more detail in the FIGS. 2 and 4, generates frame-start pulses and horizontal position values from the signal of the light-sensitive line sensor 9.
The frame-start pulses are provided to the switching unit 11, which also receives frame-start pulses from the sprocket tachometer 12. The frame-start pulse from the sprocket hole is gated by the frame-start pulse of the sprocket tachometer so that no ambiguity will be produced when 35 mm film is used, which has 3 or 4 sprocket holes per frame. The timing of the two pulses in relation to each other thus is adjusted and the resulting value is stored. In the event of a breakdown or in the event that the frame-start pulse from the sprocket hole deviates too much, the sprocket tachometer, which is time corrected, is automatically switched in.
The frame-start pulse is delayed for displacement of the frame bar in the framing adjustment unit 13.
A programmable counter provides the delay. The counter is timed by pulses which depend on film speed, so that speed changes do not cause displacement of the position of the picture. The delayed frame-start pulse resets the counter 14, which generates the horizontal-sync signal for the stored image in order to obtain a clear start for the first line in the image memory 15, thus starting the image write cycle in the image memory 15. In addition to this, the frame-start pulses are provided to the capstan servo 16, to correct film speed.
The horizontal sprocket hole position values are determined by the computing circuit 18 through the horizontal position adjustment circuit 17 which generates a horizontal correction value to provide a displacement of the horizontal image position. The computing circuit 18 adjusts the delay unit 19 in accordance with the horizontal correction value. The delay unit 19 provides the horizontal sync pulses required by the scanning unit 6 and the horizontal clamping and blanking pulses required by the video signal processing unit 7.
The delay unit 19 comprises a counter that is driven by the clock signal f clock that is also supplied to the CCD scanning array. The frequency of the clock signal determines the minimum delay. As a further measure, since these increments are not small enough, the clock signal driving the CCD is adjusted in finer steps by a variable analog delay line 19'. As shown in FIG. 1, f.sub.clock =nf.sub.HSt ; f.sub.H transfer =f.sub.clock /m, where n=1.
FIG. 2 is a schematic representation of the sprocket hole scanning and signal processing procedure. The measurement signal from the light-sensitive CCD line sensor 9 is provided through an amplifier 20 to a fixed pattern noise compensation unit 21--in this case a multiplicative fixed pattern noise compensation unit, which is known in the art. A multiplier 22 then modifies the input signal using the correction signal produced by the compensation unit 21, thereby providing multiplicative signal compensation for the fixed pattern noise.
The circuit 23 detects the peak values of the measurement signal. The measurement signal is then subtracted in a subtraction circuit 24 from this peak value information. To increase accuracy, the resulting signal is processed by a gamma-correction circuit 25, which expands the signal information in the region close to the peak-values. Comparator 26 generates a digital signal from the gamma-corrected signal, thereby providing an A/D conversion with 1-bit quantization. In order to compensate for light fluctuation, caused for example by aging of the lamp, darkening of the optics or variation in the sensitivity of the line sensor, the peak-values detected by the peak-value circuit 23 are supplied to the comparator 26, to adjust the threshold level of the comparator. The digitalized video signal is then supplied to the output control circuit 27.
The operation of the output control circuit 27, as well as the generation of the frame-start pulses and the horizontal position values, are explained with reference to FIGS. 3 and 4.
FIG. 3 shows the scanned pattern of a so-called "Bell and Howell" sprocket hole. When K.sub.1 .times.(90 degrees-alpha) lines have been output after the edge of the sprocket hole is detected at point A, the counters 28 and 29 FIG. (4) are actuated for several line periods as pointed out at Z28 and Z29 in FIG. 3. In this way counter 28 determines the difference between the left edge of the sprocket hole and a reference pulse, and the counter 29 determines the difference between the right sprocket hole edge and a reference pulse.
To increase the accuracy, the measurements are made over several whole line periods. The result of these measurements is summed by circuit 31 and divided by an integer representing the number of line periods used for the measurement by divider 32. The first signal output by the divider 32 is a horizontal position value which, over time, fluctuates around the value of the horizontal error relative to the reference signal.
When K.sub.2 .times.(90 degrees-alpha) lines after point A have been output, the counter 30 is then actuated for several line periods to determine the value of C.
The value determined by the counter 30 determines the relation between the lower sprocket hole edge and the reference-pulse. The result of this count represents the horizontal and also the vertical error of the picture position.
In a register array 33, several measurement values are stored which are summed by adder 34, in order to determine the average value. The counter 30 counts each of a given number of line periods. The result from adder 34 is provided to the comparator stage 35 which produces a stop-signal through the gate 36 to the output control 27. This stop signal is produced when the measured value output by the adder 34 that has reached the horizontal position value of the center of the hole that was previously calculated, falls below this value.
After an intermediate storage of the measured value in the register 37, the correction value generator 38 determines the difference between the calculated value of the hole-center and the content of the register 37 which is the measured value. A rough vertical correction is provided by using the studio horizontal reference pulse (H.sub.St) of the next line in the frame for the adjusted frame-start pulse. The output of the comparator 35 at gate 36 provides a rough correction of the vertical position when it detects displacement of the hole center, since the vertical position is quantified by scan lines.
The correction value generator 38 can cause the delay line 39 to produce a delay that displaces the frame-start pulse within the line, for fine-correction.
The delay time (.DELTA. t) is determined by the relation of the difference between the measurement value and the hole center to the difference between the measurement values of subsequent lines multiplied by the duration of one line period (t.sub.H), that is: ##EQU1##
It will be appreciated that the instant specification and claims are set forth by way of illustration and not of limitation, and that various changes and modifications may be made without departing from the spirit and scope of the present invention.