Method for recording image data and digital camera using same adapted to composite a plurality of image data and record the composite image data into a memory
Granted 13 Apr 2004 · 6 office actions
Current assignee: Olympus Corporation · originally Panasonic
Law firm: Law firm · Log in to unlock
Attorney: Attorney · Log in to unlock
Inventors: Hideto Hayashi, Nobuhide Dotsubo, Toshiyuki Toyofuku, Toshinobu Haruki · Examiner: Ngoc-Yen Vu · AU 2612 · TC 2600
Life of the application
21 dated eventsAbstract
A digital camera including a memory card for storing a composite image data. When an operator selects template image data and photographed image data recorded in a memory card, a CPU composites these image data with each other by using a DRAM. The CPU then compares a data amount of composite image data with a vacant capacity of the memory card. If the data amount is less than the vacant capacity, the composite image data is recorded into the memory card. Meanwhile, when the data amount is greater than the vacant capacity, the CPU displays a predetermined alarm message on an LCD. Here, if the operator attaches another memory card, the CPU again compares the data amount of the composite image data with a vacant capacity of a memory card newly attached. If the vacant capacity is sufficient, the composite image data is recorded to the same memory card.
Description
6 parts›BACKGROUND OF THE INVENTION
1. Field of the Invention
This invention relates to a method for recording image data and a digital camera using same, and more particularly to a method for recording image data and a digital camera, adapted to composite a plurality of image data and record the composited image data into a memory.
2. Description of the Related Art
Conventional digital cameras are arranged to record all the image data photographed into a flash memory incorporated therein. In such a digital camera, if a plurality of images are selected using an LCD, the image data elements are composited and the resulting composited image data is stored into the memory.
In the art as stated above, however, where the flash memory is insufficient in capacity, the composited image data is impossible to record therein. In order to record the data, the image data existing within the flash memory has to be erased to create a further vacant capacity, and the above operation has to be made again. In this manner, when the flash memory becomes less in vacant capacity, troublesome operations are required.
›SUMMARY OF THE INVENTION
Therefore, it is a primary object of this invention to provide a method for recording image data which is capable of recording composite image data into a memory without requiring troublesome operations.
This invention is a method for recording image data, comprising the steps of: (a) compositing a plurality of image data recorded in an applied memory card with one another; (b) comparing a data amount of a composite image data obtained by the step (a) with a vacant capacity of said memory card; (c) recording the composite image data into said memory card when the data amount is less than the vacant capacity; (d) generating an alarm when the data amount is greater than the vacant capacity; and (e) returning to the step (b) when another memory card is applied.
If the plurality of image data recorded in the memory card are composited, the data amount of the composite image data is compared with the vacant capacity of the memory card. When the data amount of the composite image data is less than the vacant capacity of the memory card, the composite image data is recorded into the memory card. On the other hand, when the data amount of the composite image data is greater than the vacant capacity of the memory card, an alarm is generated. Here, if another memory card is attached, the data amount of the composite image data is again compared with an vacant capacity of the memory card, the above-stated operation is repeated.
In one aspect of this invention, any of the plurality of image data is not erased when these data are composited.
In another aspect of this invention, at least one of the plurality of image data is erased prior to the comparison of the data amount of the composite image data with the vacant capacity of the memory card.
In one embodiment of this invention, the plurality of image data include photographed image data and particular image data, and the photographed image data is erased when the compositing is completed. Incidentally, the particular image data is either one of template image data or title image data.
According to this invention, where the data amount of the composite image data is greater than the vacant capacity of the memory card, an alarm is generated. When another memory card with a sufficient vacant capacity is attached, the composite image data is recorded into the same memory card, thus eliminating troublesome operations.
This invention is a digital camera, comprising: a compositing means for compositing a plurality of image data recorded in an applied memory card with one another; a comparing means for comparing a data amount of composite image data outputted from said compositing means with a vacant capacity of said memory card; a recording means for recording the composite image data into said memory card when the data amount is less than the vacant capacity; and a generating means for generating an alarm when the data amount is greater than the vacant capacity.
If the plurality of image data recorded in the memory card are composited, the data amount of the composite image data is compared with the vacant capacity of the memory card. When the data amount of the composite image data is less than the vacant capacity of the memory card, the composite image data is recorded into the memory card. On the other hand, when the data amount of the composite image data is greater than the vacant capacity of the memory card, an alarm is generated.
In one aspect of this invention, an erasing means erases at least one of the plurality of image data prior to comparison by said comparing means.
In one embodiment of this invention, the plurality of image data include photographed image data and particular image data, and the erasing means including a photographed image erasing means for erasing the photographed image data. Incidentally, the particular image data is either one of template image data or title image data.
The above described objects and other objects, features, aspects and advantages of the present invention will become more apparent from the following detailed description of the present invention when taken in conjunction with the accompanying drawings.
›BRIEF DESCRIPTION OF THE DRAWINGS
FIG. 1 is a block diagram showing one embodiment of this invention;
FIG. 2 (A) is an illustrative view showing a template image, FIG. 2 (B) an illustrative view showing a normal image, and FIG. 2 (C) an illustrative view showing a composite image;
FIG. 3 (A) is an illustrative view showing a title image, FIG. 3 (B) an illustrative view showing a normal image, and FIG. 3 (C) an illustrative view showing a composite image;
FIG. 4 is a flowchart showing part of operation in the FIG. 1 embodiment;
FIG. 5 is a flowchart showing another part of the operation in the FIG. 1 embodiment;
FIGS. 6 (A) and 6 (B) are illustrative views showing part of operation in FIG. 1 embodiment;
FIGS. 7 (A) and 7 (B) are illustrative views showing another part of the operation in the FIG. 1 embodiment;
FIG. 8 is a flowchart showing part of operation in anther embodiment of this invention;
FIGS. 9 (A) and 9 (B) are illustrative views showing part of operation in the FIG. 8 embodiment; and
FIGS. 10 (A), 10 (B) and 10 (C) are illustrative views showing another part of the operation in the FIG. 8 embodiment.
›DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS · 1 of 3
Referring to FIG. 1, a digital camera 10 of this embodiment includes a lens 12 . An optical image incident upon this lens 12 is given to a CCD imager 14 through a color filter having C y , Y e , M g and G arranged in a mosaic form.
When outputting a motion picture through a monitor 34 , the CCD imager 14 performs so-called well-known pixel mixing readout to supply a resulting pixel signal to a CDS/AGC circuit 16 . The CDS/AGC circuit 16 performs well-known noise removal and level adjustment on the inputted pixel signal. The pixel signal processed by this CDS/AGC circuit 16 is then converted by an A/D converter 18 into digital data, i.e., pixel data. A first signal processing circuit 20 receives the pixel data outputted from the A/D converter 18 to calculate luminance data (Y data) and color-difference data (U data and V data). Upon creating Y data, the inputted pixel data is averaged according to Equation 1. For a line ( H1 + H2 ) Y = { ( Mg + Ye ) + ( G + Cy ) } / 2 = { ( R + B + R + G ) + ( G + B + G ) } / 2 = ( 2 R + 3 G + 2 B ) / 2
For a line ( H3 + H4 ) Y = { ( G + Ye ) + ( Mg + Cy ) } / 2 = { ( G + G + R ) + ( R + B + B + G ) } / 2 = ( 2 R + 3 G + 2 B ) / 2
where , Mg = R + B , Ye = R + G , and Cy = B + G [Equation 1]
Since the Y data is proportional to 2R+3G+2B, the component B is reproduced brighter than the y data (=0.3R+0.59G+0.11B) specified by the NTSC standard. This, however, raises no practical problem.
Meanwhile, when creating U data and V data, the first signal processing circuit 20 performs subtraction between adjacent pixels according to Equation 2. For the line ( H1 + H2 ) U = { ( Mg + Ye ) - ( G + Cy ) } = { ( R + B + R + G ) - ( G + B + G ) } = 2 R - G For the line ( H3 + H4 ) V = { ( G + Ye ) - ( Mg + Cy ) } = { ( G + G + R ) + ( R + B + B + G ) } = G - 2 B
where , Mg = R + B , Ye = R + G , and Cy = B + G [Equation 2]
However, the color-difference data is available only every other line. Accordingly, the first signal processing circuit 20 supplements for deficient color-difference data on a current line by using the color difference data on the preceding line. That is, V data only is available on a line (H 3 +H 4 ) so that the U data on a line (H 1 +H 2 ) is utilized for the U data for the line (H 3 +H 4 ).
The Y, U and V data thus created are written by a memory control circuit 26 into a memory area 24 a of a DRAM 24 through an internal bus 22 , and are thereafter outputted to a second signal processing circuit 30 . The second signal processing circuit 30 , when outputting a motion picture, performs predetermined horizontal and vertical interpolations on the Y, U and V data (motion picture data) from the DRAM 24 so that these data become suited for a display-screen size of an LCD 34 . The motion picture data, supplied from the second signal processing circuit 30 , is converted by a D/A converter 32 into an analog signal. This analog signal is supplied to the LCD 34 , and also outputted through an output terminal 36 . As a result, a motion picture is outputted through the LCD 34 .
When an operator depresses the shutter button 40 , a system controller 42 controls the CCD imager 14 so as to perform so-called all-pixel readout. Due to this, the CCD imager 14 outputs pixel signals at every other line. Since the CCD imager 14 is mounted with a color filter in a mosaic form, C y and Y e are alternately outputted at an odd line, while M g and G are alternately outputted at an even line. The CDS/AGC circuit 16 performs noise removal and level adjustment on the pixel signal, similarly to the above. The A/D converter 18 converts the pixel signal from the CDS/AGC circuit 16 into digital data, i.e. pixel data. The CCD imager 14 is disabled after outputting 1 frame of pixel signals. The 1-frame pixel data outputted from the A/D converter 18 is directly delivered onto a bus 22 without processed by the first signal processing circuit 20 . The pixel data is written into the memory area 24 a by the memory control circuit 26 .
The CPU 28 converts the pixel data of the memory area 24 a into Y (=Y 2 ), U and V data, according to Equation 3 to Equation 5, with using a working area 24 c . The converted Y, U and V data, i.e. photographed image data, are compressed according to a JPEG format, and written into a memory card 46 . Y b = C y + Y c + M g + G C b = ( C y + M g ) - ( Y c + G ) C r = ( Y c + M g ) - ( C y + G ) [Equation 3] R = k 11 × Y h + k 12 × C b + k 13 × C r G = k 21 × Y h + k 22 × C b + k 23 × C r B = k 31 × Y h + k 32 × C b + k 33 × C r [Equation 4] Y L = 0.299 × R + 0.587 × G + 0.114 × B U = B - Y L V = R - Y L [Equation 5]
Due to the color separation and YUV conversion as stated above, adjacent 4(2×2) pixels of C y , M g , Y e and G data are used to create 1-pixel Y, U and V data of the 4 pixels, thereby providing Y, U and V data for all the pixels.
The memory control circuit 26 reads Y e , C y, M g and G pixel data on a line-by-line basis out of the memory area 24 a , and supplies them to the second signal processing circuit 30 . The second signal processing circuit 30 , when outputting a photographed image, performs color separation and YUV-conversion on the pixel data according to Equation 3 to Equation 5, thereby outputting a photographed image (freeze image) on the LCD 34 .
If the operator depresses a reproduced button 49 , the CPU 28 reads desired compressed data out of a memory card 46 , and expands the compressed data with using a working area 24 b . The expanded image data (YUV data) is stored in the memory area 24 a , and read out later. The second signal processing circuit 30 , in a reproducing mode, performs horizontal and vertical interpolations on the image data. This allows a reproduced image to be displayed on the LCD 34 .
The memory card 46 may use, for example, a template card that has a template image previously prepared as shown in FIG. 2 (A) and a template code written therewith. With such a card, the operator can set either one of a normal reproducing mode or a card-function reproducing mode by operating a reproducing mode setting button 48 .
›DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS · 2 of 3
In the normal reproducing mode, if the operator manipulates a +button 54 or −button 56 , any one of image data that has been recorded in the memory card 46 is read out. Thus, a reproduced image is displayed on the LCD 34 , similarly to the above. That is, if a template image shown in FIG. 2 (A) and a photographed image shown in FIG. 2 (B) are recorded in the memory card 46 , then either one of the images will be outputted through the LCD 34 .
Where the card-function reproducing mode is set, if the operator operates the +button 54 , the −button 56 and the selecting button 50 , an image composited by the template image and the photographed image can be created as shown in FIG. 2 (C).
Meanwhile, if the memory card 46 uses a binary-coded card written with a binary code, title image data as shown in FIG. 3 (A) can be composited with photographed image data as shown in FIG. 3 (B) to create a composite image as shown in FIG. 3 (C). The title image data in FIG. 3 (A) can be obtained if the operator operates a photographing mode setting button 51 to set a title image mode, and close-up photographs a character-depicted subject as shown in FIG. 3 (A).
Incidentally, the template image data and the title image data are accommodated in an image file having a file name “syn0000S.jpg” (S is an integer), while the photographed image data and the composite image data are in an image file with a file name “pic0000P.jpg” (P is an integer).
The CPU 28 performs the above-stated operation according to a program stored in a flash memory 38 . When a card-function reproducing mode is set, the operation depends upon the flowcharts shown in FIG. 4 and FIG. 5 . That is, the CPU 28 first determines, at a step S 1 , whether a template code or binary code exists in the memory card 46 or not. If “NO”, the process returns to the normal reproducing mode. That is, when a desired memory card is not mounted, even if the operator operates the reproducing mode setting button 48 , the card-function reproducing mode cannot be established. If the determination is “YES” at the step S 1 , the CPU 28 resets, at a step S 3 , a count value S of the syn counter 28 a , and determines at a step S 5 whether an image file “syn0000S.jpg” exists or not. If “NO”, the process returns to the step S 3 , while if “YES”, the process proceeds to a step S 7 to store the data of the image file to the memory area 24 a of the DRAM 24 , displaying a desired image on the LCD 34 .
Subsequently, the CPU 28 determines at a step S 9 whether a selecting button 53 is depressed or not. If “NO”, it is determined at a step S 11 whether the +button 54 or −button 56 is depressed or not. If neither of the +button 54 nor the −button 56 is depressed, the process returns to the step S 9 , whereby a same image continues to be displayed on the LCD 34 . On the other hand, if +button 54 or −button 56 is depressed, the CPU 28 changes the count value S of the syn counter 28 a according to the button operation at a step S 13 , and the process returns to the step S 5 . This changes over an image to be displayed on the LCD 34 . If the selecting button 53 is depressed by the operator, the CPU 28 proceeds to the process from the step S 9 to a step S 15 . In this manner, desired template image data or title image data is first held in the memory area 24 a of the DRAM 24 .
The CPU 28 resets at the step S 15 a count value P of a pic counter 28 b , and then determines at a step S 17 whether the image file “pic0000P.jpg” exists in the memory card 46 or not. If the determination here is “NO”, the process returns to the step S 15 , while if “YES”, the process proceeds to the step S 19 to store the image data of the image file to the working area 24 b of the DRAM 24 , displaying a desired image on the LCD 34 . The CPU 28 thereafter determines at a step S 21 whether or not the selecting button 53 is depressed. If “NO”, it is determined at a step S 23 whether the +button 54 or −button 56 is depressed or not. If “NO”, the process returns to the step S 21 , while if “YES”, the process advances to a step S 25 to change the count value P. Then, the process returns to the step S 17 .
That is, after the template image data or tile image data is selected, the CPU 28 outputs desired photographed image data through the LCD 34 and waits for a selection by the operator. When the operator finds a desired photographed image and depresses the selecting button 53 , the CPU 28 at the step S 21 determines “YES”, and composites selected two images with each other at a step S 27 .
Explaining in greater detail, when compositing template image data with photographed image data, the template image data of the memory area 24 a is written over the photographed image data stored in the working area 24 b . In the case of a template image as shown in FIG. 2 (A), since no data exists at an area other than the curtain, the photographed image data is not completely erased by overwriting. As a result, the composite image is as shown in FIG. 2 (C).
On the other hand, where compositing the title image data with the photographed image data, since the title image data is binary data having either one of “0” or “1”, predetermined color data is written over an address in the working area 24 b corresponding to an address having “1”. Consequently, when a title image as shown in FIG. 3 (A) is composited with a photographed image as shown in FIG. 3 (B), a composite image as shown in FIG. 3 (C) is obtained.
The CPU 28 then determines at a step S 29 whether the memory card 46 is sufficient in vacant capacity or not. That is, the CPU 28 compares a data amount of the composite image, that has been obtained by the step S 27 and stored in the working area 24 b , with a vacant capacity of the memory card 46 . If “YES”, the composite image data is recorded into the memory card 46 at a step S 31 , ending the process. However, if “NO”, the CPU 28 displays at a step S 33 an alarming message “CHANGE CARD” on the LCD 34 . If the operator changes the memory card 46 in response thereto and depresses any button, the CPU 28 determines “YES” at a step S 35 . It is determined at a step S 37 whether there exists a binary code or template code in a newly-attached memory card or not. If “NO”, a caution message “CARD IS INCORRECT” is displayed on the LCD 34 at a step S 39 , and the process returns to the step S 35 . On the other hand, if it is determined at the step S 37 a binary code or template code exists, the CPU 28 returns the process to the step S 29 , repeating the above process.
›DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS · 3 of 3
Accordingly, if the newly-attached memory card has a binary code or template code and sufficient vacant capacity, the composite image data is recorded into the memory card.
Referring to FIGS. 6 (A) and 6 (B), the memory card 46 is formed by a template card. The card is recorded with template image data {circle around ( 1 )}, {circle around ( 2 )} and photographed image data {circle around ( 1 )}, {circle around ( 2 )}, and has a sufficient vacant capacity as shown in FIG. 6 (A). If the operator combines desired template image data with normal image data, composite image data is recorded following the photographed image data {circle around ( 2 )}, as shown in FIG. 6 (B). Incidently, the composite image data has an image file name “pic” that is the same as that of the photographed image data. In this example, the Compositae image data has an image file name “pic00003.jpg”.
On the other hand, where the memory card 46 has almost no vacant capacity as shown in FIG. 7 (A), if the operator tries to composite desired template image data with normal image data, a warning message is displayed on the LCD 34 . If the operator replaces the memory card with a new memory card having only template image data {circle around ( 3 )}, {circle around ( 4 )}, composite image data is recorded on the newly attached memory card. That is, the composite image data {circle around ( 6 )} is recorded following the template image data {circle around ( 4 )}, as shown in FIG. 7 (B).
According to this embodiment, composite image data is held in the DRAM 24 prior to determining a vacant capacity of the memory card 46 so that, when a memory card with a sufficient vacant capacity is mounted, the composite image data is recorded into the memory card. Accordingly, there is no necessity of re-creating composite image data, thus eliminating troublesome operations.
In FIG. 5, if a step S 28 is provided that is prior to the step S 29 in order to erase the photographed image data having been used in compositing, the vacant capacity is increased by an amount corresponding to the erasure. This can reduce the necessity of exchanging the memory card to create composite image data.
Explanations will now be made on the operation including a step S 28 shown in FIG. 8, with reference to FIGS. 9 (A) and 9 (B) and FIGS. 10 (A), 10 (B) and 10 (C). When the memory card is recorded with template image data {circle around ( 1 )}, {circle around ( 2 )} and photographed image data {circle around ( 1 )}, {circle around ( 2 )} as shown in FIG. 9 (A), if the operator combines any of the template image data with the photographed image data {circle around ( 1 )}, the photographed image data {circle around ( 1 )} is erased. Thereafter, composite image data {circle around ( 3 )} is recorded, as shown in FIG. 9 (B), that is, the area on which the photographed image data {circle around ( 1 )} is recorded is utilized for recording composite image data {circle around ( 3 )}, and further the data not having been accommodated in this area is recorded following the photographed image data {circle around ( 2 )}.
On the other hand, when recorded are template image data {circle around ( 1 )}, {circle around ( 2 )}, photographed image data {circle around ( 2 )} {circle around ( 4 )} {circle around ( 5 )} {circle around ( 6 )} and composite image data {circle around ( 3 )} as shown in FIG. 10 (A), if any of the template image data is composited with the normal image data {circle around ( 4 )} is erased, as shown in FIG. 10 (B). However, if the total vacant capacity after erasure is not greater than a data amount of the composite image data {circle around ( 7 )}, the composite image data {circle around ( 7 )} is recorded into a newly-attached memory card. That is, the composite image data {circle around ( 7 )} is recorded into a memory card having been recorded only with template image data {circle around ( 3 )} {circle around ( 4 )}, for example, as shown in FIG. 10 (C).
Incidentally, the various kinds of cards involving SSFDC (Solid-State Floppy Disc Card) may be applied as a memory card. Also, although this embodiment employed the complementary-colored filter having Y e , C y , M g and G arranged in a mosaic form, it is possible to use a primary-colored filter having R, G and B arranged in a mosaic form.
Although the present invention has been described and illustrated in detail, it is clearly understood that the same is by way of illustration and example only and is not to be taken by way of limitation, the spirit and scope of the present invention being limited only by the terms of the appended claims.
Claims as granted
8 claimsLog in to read the claims of this application.
Log in to unlockClassifications
9 codes- H04N5/262
- H04N5/77
- H04N5/907
- H04N9/808
- H04N101/00
Claim changes
SoonSee which claims were amended, added or cancelled during examination, with every added and removed word marked.
The published claims of this application are not paired with the granted ones in what we hold.
File wrapper
See the full prosecution history — every USPTO and applicant action on this file, in order.
Log in to unlockDocuments
Log in to open the documents of this file: the application as filed, every office action and response, the notice of allowance.
Log in to unlockChain of title
See the full assignment history — every owner this patent has passed through, with recordation dates and reel/frame numbers.
Log in to unlock