Image processing apparatus and method

Abstract: An image processing apparatus can deal with a plurality of kinds of video signals. The apparatus includes a circuit (1100, 1110,1120) for generating a signal indicating the kind of an input video signal. and magnification varying circuit for varying the aspect ratio of an image of the input video signal in accordance with a result of discrimination by the signal generation circuit. The aspect ratio of a pixel (picture element) is automatically corrected in accordance with the input video signal by the above-described circuits. Accordingly, it becomes unnecessary to manually set the aspect ratio of a pixel in accordance with the kind of the input video signal. Hence, operation is greatly simplified.

Description: 1. Field of the Invention This invention relates to an image processing apparatus and method, and more particularly, to an apparatus which can process images of a plurality of kinds of image signals. 2. Description of the Related Art Recently, many kinds of copiers have become able to deal with not only black-and-white prints but also color prints, and copiers which can print not only color originals but also images of image signals have also been commercialized. In accordance with the recent progress of semiconductor technology, digital processing of image information, such as video signals or the like, has spread widely, and there has arisen a desire to be able to supply video signals to a color printing apparatus from a video signal source in the form of digital signals. An explanation will now be provided of a case wherein, for example, NTSC composite signals are used as video signals. When digitizing NTSC composite signals, the sampling freqnency is usually set to 4 times the frequency of the color sub-carrier, that is, 4 fsc. This is because digital color demodulation processing in the following stage becomes simplified of this sampling frequency is adopted. If the sampling frequency is thus set to 4 fsc, the number of samples in the horizontal direction (lateral direction) becomes 910, as shown in FIG. 5. Considering an aspect ratio of 3 : 4 with 525 lines in the vertical direction, in the case of 700 (= 525 x 4/3) samples, the pixel (picture element) becomes square as shown by broken lines in FIG. 6. In the case of 910 samples, however, the shape of the pixel (the hatched portion in FIG. 6) becomes about 30 % longer in the vertical direction than in the horizontal. When the same processing as for output signals from a scanner for reading an original is performed using such a vertically-long pixel, printing having a correct aspect ratio cannot be obtained in some cases. That is, there is the problem that when, for example, a printer performs image formation assuming that the digital image data it receives have been sampled with an aspect ratio of 1 : 1, a correct aspect ratio is not provided in the resulting printing. In order to solve such problem, the aspect ratio may be changed in accordance with the printer. This approach, however, necessitates a complicated operation. In addition, if it is desired to deal with a plurality of kinds of video signals, complicated setting of operation conditions is further needed. In order to solve the above-described problems, the assignee of the present application has proposed a technique in European Application No. 0,421,773 (prior art according to Article 54(3) EPC). This technique, however, still has room for improvement from the viewpoint of operability. SUMMARY OF THE INVENTION It is a concern of the present invention to provide an image processing apparatus and method which solve the above-described problems. In accordance with one aspect of the present invention there is provided image processing apparatus as set out in claim 1. In accordance with a second aspect of the present invention there is provided an image processing method as set out in claim 9. In order that the present invention may be more readily understood, the following description of a preferred embodiment is given by way of example with reference to the accompanying drawings, in which: FIG. 1 is a block diagram of the configuration of the preferred embodiment of the present invention; FIG. 2 is a block diagram of the configuration of a video decoder 52 shown in FIG. 1; FIG. 3 is an example of display; FIG. 4 is an example of display to be compared with the example shown in FIG. 3; FIG. 5 is a diagram illustrating the relationship between scanning lines and sampling pulses; FIG. 6 illustrates the shape of a pixel; FIG. 7 shows an example of the magnification varying processing circuit shown in FIG. 1; FIGS. 8 i) - 8 v) illustrate the operation of the FIG. 7 circuit; FIG. 9 shows an example of the signal discrimination circuit 48 shown in FIG. 1; and FIG. 10 illustrates aspect ratios of image signals conforming to the HD standard, the PAL standard and the SECAM standard. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT The preferred embodiment of the present invention will now be explained with reference to the drawings. FIG. 1 is a block diagram of the configuration of an apparatus according to the preferred embodiment of the present invention. In FIG. 1, there are shown an original scanner 30, an interface 32 for a plurality of kinds of video signal inputs, a selection switch 34 between the output of the original scanner 30 and the output of the interface 32, an XY magnification varying processing circuit 36, a printer 38, an operation key/panel unit 40, a system control circuit 42 comprising a microcomputer, and display unit 44. In the interface 32, there is shown a selection switch 46 for a plurality of kinds of input video signals. A signal discrimination circuit 48 discriminates the kind of input video signal, for example, according to the frequency of the synchronizing signal or the sampling frequency of the video signal. A detailed explanation of the signal discrimination circuit 48 will be provided later. Look-up tables (LUTs) 50 (50a, 50b, 50c and 50d) hold information relating to the aspect ratios of respective types of video signal. A video decoder 52 converts an output video signal from the selection switch 46 into a signal having the same configuration as an output signal from the scanner 30 in accordance with the result of discrimination obtained by the signal discrimination circuit 48. FIG. 2 shows the configuration of the video decoder 52. In FIG. 2, a circuit 54 converts a composite signal into components, luminance (Y′) and color (C′). An RGB (red, green and blue) primary color forming circuit 56 converts the luminance and color signals Y′ and C′ into RGB signals. A YMC (yellow, magenta and cyan) complementary color forming circuit 58 performs YMC complementary color forming processing suitable for the printer 38 for the RGB signals. The circuits 54 and 56 are controlled according to the result of discrimination provided by the signal discrimination circuit 48. An input video source, and the size and number of prints to be made are set using the operation key/panel unit 40. The switches 34 and 46 are switched in accordance with this setting operation. It is assumed that the switch 34 selects the output of the interface 32. The signal discrimination circuit 48 discriminates the kind of the input video signal from the synchronizing signal or the sampling frequency of the video signal selected by the switch 46. Without using the sampling frequency, the clock frequency of video data may be detected by a PLL circuit, or an identification signal may be received from the video signal source via another signal line. The signal discrimination circuit 48 refers the result of discrimination to the LUT 50, reads information of the corresponding aspect ratio from the LUT 50, and supplies the magnification varying processing circuit 36 and the system control circuit 42 with the read information. The video decoder 52 performs video signal processing in accordance with the result of the discrimination by the signal discrimination circuit 48, and outputs a color image signal suitable for the printer 38. The output of the video decoder 52 is supplied to the magnification varying processing circuit 36 via the switch 34. In accordance with the aspect-ratio information from the signal discrimination circuit 48, the magnification varying processing circuit 36 performs aspect ratio varying processing for the output of the video decoder 52 so that the aspect ratio of a pixel becomes 1 : 1. The magnification varying processing circuit 36 also performs magnification/reduction processing in accordance with the varying magnification ratio set by the operation key/panel unit 40. The output of the magnification varying processing cirruit 36 is supplied to the printer 38, which outputs a color print having no distortion in the horizontal and vertical directions (as compared with printing the output of the scanner 30). The printer 38 may be either an electrophotographic printer or an ink-jet-type printer. The essential point is that the printer has a printing function. The above-described magnification varying processing will now be explained in detail. An explanation will be provided of a case of skipping pixels as the magnification varying processing in the present embodiment; specifically, an explanation will now be provided of a configuration for varying magnification when adopting a simple skipping method, with reference to FIG. 7. In FIG. 7, a FIFO (first-in-first-out) memory 120 is provided for writing read data in a frame memory 112 and subsequently reading the data to the printer 38. This memory 120 is an asynchronous FIFO memory for converting (changing) the amount of data in units of a line, and may, for example, comprise a FIFO memory having a configuration of 2048 x 8 bits since the number of effective pixels of a high-definition image signal is 1920 x 1035 pixels. A memory controller 122 receives a horizontal synchronizing signal Hsync and a vertical synchronizing signal Vsync from the printer 38, and generates a read command signal RM for the frame memory 112, a write enable signal WE and a read enable signal RE for the memory 120, and a video enable signal VE indicating the effective image period for the printer 38 in synchronization with the signal Hsync. The operation of the circuit shown in FIG. 7 will now be explained with reference to the timing chart shown in FIGS. 8 i) - 8 v). FIG. 8 i) shows a signal Hsync from the printer 38, FIG. 8 ii) shows a read command signal for the frame memory 112, FIGS. 8 iii) and 8 iv) show write and read enable signals for the FIFO memory 120, respectively, and FIG. 8 v) shows a video enable signal VE to be output to the printer 38. The memory controller 122 shown in FIG. 7 outputs to the FIFO memory 120 write clock signals WCLK at a frequency of 74.25 MHz and read clock signals RCLK at a frequency of 71.28 Mhz. Accordingly, the FIFO memory 112 shown in FIG. 7 comperisates for speed differences between the image signals of the frame memory 112 and the speed of 71.28 MHz of the printer 38. In the present embodiment, as shown in FIG. 8 iii), by skipping signals WE as to be low for a period of 3 pixels during a period of 74 pixels, magnification varying processing using pixel skipping may be realized. Various other kinds of magnification varying processing may be considered for the present embodiment. A detailed explanation of the signal discrimination circuit 48 will now'be provided with reference to FIG. 9. In FIG. 9, a scanning frequency check circuit 1100 checks the number of vertical scanning lines of an input television signal. If the number is 1125, the circuit 1100 determines that the signal is are HDTV signal. If the number is 525, the circuit 1100 determines that the signal is an NTSC signal (for the purpose of simplifying the explanation, consideration of the PAL system used in Brasil, and the like will be omitted). If the number is 625, after checking the modulation method by a color signal demodulation circuit 1110, the circuit 1100 determines that the signal is a PAL signal in the case of AM, and that the signal is a SECAM signal in the case of FM. The circuit 1100 inputs the result of discrimination of the kind of the input television signal to the system control circuit 42. Subsequently, the system control circuit 42 controls respective units including the printer 38 in accordance with the operation of the operation key/panel unit 40, and displays the contents of setting by the system control circuit 42 on the display unit 44. An explanation will now be provided of an example of indication and display of varying magnification when printing, for example, three copies of an image of an NTSC composite signal in a size twice the standard size. The NTSC composite signal subjected to 4 fsc sampling selected by the switch 46 is separated into a luminosity signal and a color signal by the conversion circuit 54 of the video decoder 52, further converted into RGB signals by the RGB primary color forming circuit 56, and subjected to YMC complementary color forming processing suitable for the printer 38 by the YMC complementary color forming circuit 58. The output of the YMC complementary color forming circuit 58, serving as the output of the video coder 52, is supplied to the magnification varying processing circuit 36 via the switch 34. In accordance with the result of discrimination that the signal is an NTSC signal (a composite signal sampled with a frequency on 4 fsc), the signal discrimination circuit 48 reads magnification varying information (in this case, since X:Y = 910:700 = 130:100 as described above, the varying magnification ratio is 100/130 ≒ 77 % (reduction)) for the NTSC signal (the comosite signal having a frequency of 4 fsc) from the LUT 50, and supplies the magnification varying processing circuit 36 with the read information. Information of double-size printing is supplied from the system control circuit 42 to the magnification varying processing circuit 36. Hence, the magnification varying processing circuit 36 finally performs magnification varying processing of a varying magnification ratio X:Y = 230:200, whereby a color print having a size twice the standard size is obtained from the printer 38. The display device 44 displays "200 %" to indicate the magnification. In the case of unit magnification, only "unit magnification" is displayed. Data relating to the correction processing of the aspect ratio of a pixel are not displayed except when it is requested. Thus, it is possible to provide an apparatus which is easy to handle. Next, an explanation will be provided of processing when an image signal conforming to the HD standard or the PAL standard is input, with reference to FIG. 10. As shown in FIG. 10, an image signal conforming to the HD standard, having the width of the BTA standard, has 2200 pixels in the horizonal direction and 1125 scanning lines in the vertical direction, and 1920 effective pixels in the horizontal direction and 1035 effective scanning lines in the vertical direction. As is apparent from these figures, the aspect ratio of a pixel is 137.4:125, as shown in FIG. 10. In outputting a pixel having such an aspect ratio to the printer, the size of the pixel in the horizontal direction may be set to a reduction ratio of 125/137.5, that is, about 90 %. When an image signal conforming to the PAL standard is input, the number of scanning lines in the vertical direction is 625, and the number of pixels in the horizontal direction becomes 851 when the image signal is sampled with a frequency three times the frequency of the color sub-carrier. As is apparent from these figures, the aspect ratio of a pixel becomes 208.3:212.75. In outputting a pixel having such an aspect ratio to the printer, the size of the pixel in the horizontal direction may be set to a magnification ratio of 212.75/208.3, that is, about 103 %. A signal conforming to the SECAM standard may be dealt with in the same manner as in the case of a signal conforming to the PAL standard. In a state wherein the above-described image signals conforming to the PAL, SECAM, NTSC and HD standards are input to respective terminals shown in FIG. 1, a signal conforming to one Standard is selected by the selection switch 46 in accordance with a signal from the operation key/panel unit 40, and is input to the video decoder 52. At the same time, data of the above-described varying magnification ratio selected from the XY aspect ratio LUTs 50a - 50d in accordance with the discrimination by the signal discrimination circuit 48 are set to the magnification varying processing circuit 36. It is thereby possible to obtain an excellent image from the printer 38. FIG. 3 shows a display surface and an example of display using the operation key/panel unit 40 and the display unit 44 in the present embodiment. In FIG. 3, a display surface 60 displays the number of prints. A down switch 62D and an up switch 62U are used for setting the number of prints. A clear key 64 clears the settings. There are also shown a stop key 66, a start key 68, a panel 70 for selecting and displaying inputs, input keys 72, 74 and 76 for selecting varying magnification ratios, and a display 78 of a varying magnification ratio which has been set. Since a conventional apparatus is arranged to set varying magnification ratios individually in the X and Y directions, switches for assigning X and Y, and display areas for varying magnification ratios in the X and Y directions are provided in addition to the above-described components, causing complicated display and operation. To the contrary, display and operation become very simple in the present embodiment. For the purpose of comparison, an example of display in a conventional apparatus is shown in FIG. 4. As can be easily understood from the foregoing explanation, according to the present embodiment, since the correction of the aspect ratio of a pixel is automatically performed, the explanation,of the user is much simplified, and it is possible to easily obtain a color video print without misoperation. According to the present embodiment, since the kind of an input signal is discriminated by the signal discrimination circuit 48 after selecting a desired image signal by controlling the selection switch 46 in accordance with the operation of the operation key/panel unit 40, an excellent print image may be easily obtained without misoperation even if, for example, the user erroneously inputs a signal conforming to the PAL standard to an input terminal for a signal conforming to the NTSC standard. The present invention is not limited to the above-described embodiment, but various changes and modifications may be made within the scope of the appended claims.

Claims: Image processing apparatus comprising means (46) for receiving a digital image signal; and means (36) for varying the pixel horizontal-to-vertical ratio of the digital image signal to generate a second digital image signal; said receiving means being adapted to receive a plurality of different digital image signals having different pixel horizontal-to-vertical ratios, and said apparatus additionally comprising means (48) for discriminating between the different digital image signals to generate a control signal to control said varying means so that the second digital image signal has the same pixel horizontal-to-vertical ratio irrespective of the pixel horizontal-to-vertical ratio of a received digital image signal. Apparatus according to claim 1, and including switch means (34) connected to said varying means and adapted to switch between an input signal generated by a scanner (30) and a signal received by said receiving means. Apparatus according to claim 2, wherein said varying means comprise a circuit for varying the magnification of the image signals supplied thereto and for providing said second digital image signal as an output signal to a printer so that the second digital image signal can be reproduced. Apparatus according to any one of the preceding claims, wherein said different digital image signals all conform to broadcast standards. Apparatus according to any one of the preceding claims and including a printer for reproducing said record digital image signal. Apparatus according to claim 5, wherein said receiving means includes manual selection means (40) for selecting any one of image signals conforming to said plural kinds of broadcast standards. Apparatus according to any preceding claim, wherein said varying means includes a memory (120) for storing an image signal received by said receiving means, and means (122) for controlling read-out from said memory so as to carry out the required variation in the pixel horizontal-to-vertical ratio. Apparatus according to any preceding claim, wherein said different digital image signals include NTSC and PAL standard. An image processing method comprising: receiving a first digital image signal capable of having a plurality of different pixel horizontal-to-vertical ratios, discriminating the pixel horizontal-to-vertical ratio of the first digital image signal and using the result of the discrimination to vary the pixel horizontal-to-vertical ratio to generate a second digital image signal appropriate to reproduction means, and reproducing the second digital image signal.

Inventors: ENARI MASAHIKO, KANEKO YUSHI, TAKAHASHI KOUJI, ENARI, MASAHIKO, KANEKO, YUSHI, TAKAHASHI, KOUJI
Applicants: CANON KK, CANON KABUSHIKI KAISHA
Application year: 1991
Main classification: H04N1
IPC codes: H04N1