JP2011029809A - Image processing device, image processing method, and image capturing device - Google Patents
Image processing device, image processing method, and image capturing device Download PDFInfo
- Publication number
- JP2011029809A JP2011029809A JP2009171953A JP2009171953A JP2011029809A JP 2011029809 A JP2011029809 A JP 2011029809A JP 2009171953 A JP2009171953 A JP 2009171953A JP 2009171953 A JP2009171953 A JP 2009171953A JP 2011029809 A JP2011029809 A JP 2011029809A
- Authority
- JP
- Japan
- Prior art keywords
- data
- color
- raw data
- image
- compression
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N1/00—Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
- H04N1/46—Colour picture communication systems
- H04N1/64—Systems for the transmission or the storage of the colour picture signal; Details therefor, e.g. coding or decoding means therefor
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Compression Of Band Width Or Redundancy In Fax (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
- Television Signal Processing For Recording (AREA)
Abstract
【課題】カラー画像を構成する複数種類の色成分が一定の規則に従って画素配列上に繰り返し配列されるデータ形式のRAWデータを圧縮処理する画像処理装置において、回路規模の増大やCPUの処理能力の増強を招くことなく、複数の色別プレーンデータの圧縮効率をさらに高いものにする。
【解決手段】RAWデータ再構成手段3は、A/D変換された後に信号処理が加えられていないRAWデータ2を入力し、色成分毎に分解し、再集合して複数の色別プレーンデータ41〜44を生成し、さらに配置して圧縮処理単位である1つのファイルとしてまとめる。圧縮処理単位である1つのファイルは、色成分毎に区画された複数の配置領域をもつ。RAWデータ再構成手段3は、複数の配置領域に、複数の色別プレーンデータを振り分けて再配置して、再構成RAWデータ4を生成し、圧縮処理手段5に渡す。圧縮処理手段5は、再構成RAWデータ4を圧縮処理する。
【選択図】図1In an image processing apparatus that compresses RAW data in a data format in which a plurality of types of color components constituting a color image are repeatedly arranged on a pixel array according to a certain rule, an increase in circuit scale and CPU processing capability The compression efficiency of a plurality of color-specific plane data is further increased without causing an increase.
RAW data reconstructing means 3 receives RAW data 2 that has not been subjected to signal processing after A / D conversion, is decomposed for each color component, and reassembles to obtain a plurality of color-specific plane data. 41 to 44 are generated and further arranged and collected as one file which is a unit of compression processing. One file, which is a unit of compression processing, has a plurality of arrangement areas partitioned for each color component. The RAW data reconstruction unit 3 allocates a plurality of color-specific plane data to a plurality of arrangement areas and rearranges them to generate the reconstructed RAW data 4 and passes it to the compression processing unit 5. The compression processing means 5 compresses the reconstructed RAW data 4.
[Selection] Figure 1
Description
本発明は、カラー画像を構成する複数種類の色成分が一定の規則に従って画素配列上に繰り返し配列されるデータ形式のRAWデータを圧縮処理する画像処理装置、画像処理方法にかかわり、特には、複数の色別プレーンデータの圧縮効率を向上させるための技術に関する。また、本発明は、上記のような画像処理装置を実装し、色分解して撮像するタイプのイメージセンサを搭載した撮像装置に関する。対象とする画像処理装置、撮像装置としては、デジタルスチルカメラ、デジタルビデオカメラ、独立したイメージスキャナ、複写機などに組み込まれたイメージスキャナなどが含まれる。「プレーンデータ」というのは、データを画像メモリ上で展開する場合に、2次元的に展開される配列形態をもつデータのことである。 The present invention relates to an image processing apparatus and an image processing method for compressing RAW data in a data format in which a plurality of types of color components constituting a color image are repeatedly arranged on a pixel array in accordance with a certain rule. The present invention relates to a technique for improving the compression efficiency of color-specific plane data. The present invention also relates to an image pickup apparatus in which the image processing apparatus as described above is mounted and an image sensor of a type that performs color separation and picks up an image. Examples of the target image processing apparatus and imaging apparatus include a digital still camera, a digital video camera, an independent image scanner, and an image scanner incorporated in a copying machine. “Plain data” refers to data having an array form that is two-dimensionally developed when data is developed on an image memory.
カラー画像を取得するためのCCD型またはMOS型のイメージセンサは、撮像素子における2次元配列の画素に対応して複数種類の色成分の色フィルタが一定の規則に従って繰り返し配列された色フィルタアレイ(色分解フィルタ)を有している。例えば、撮像素子の画素に対応してRGBの原色フィルタが市松模様状に配置されているベイヤー(Bayer)配列の色分解フィルタでは、水平方向および垂直方向の両方向に沿ってRGBの各色成分のフィルタがそれぞれ1画素おきに並んでいる(BGgR)。各画素で得られる情報は1つの色成分の情報のみである。そこで表現力を高めるために、各画素それぞれにおいて周辺画素の色情報を用いて補間し、各画素でそれぞれ複数の色成分の情報を得る。つまり、すべての画素それぞれにおいて、すべての色成分の情報を得る。これを同時化色補間処理という。これで、イメージセンサの画素数と同じ画素数をもつ各色成分のカラー画像データが得られる。 A CCD-type or MOS-type image sensor for obtaining a color image is a color filter array in which color filters of a plurality of types of color components are repeatedly arranged according to a certain rule corresponding to the two-dimensional array of pixels in the image sensor. Color separation filter). For example, in a Bayer color separation filter in which RGB primary color filters are arranged in a checkered pattern corresponding to the pixels of the image sensor, a filter for each color component of RGB along both the horizontal and vertical directions. Are arranged every other pixel (BGgR). The information obtained from each pixel is only information of one color component. Therefore, in order to enhance the expressive power, each pixel is interpolated using the color information of the surrounding pixels, and information on a plurality of color components is obtained for each pixel. That is, information on all color components is obtained for all pixels. This is called synchronized color interpolation processing. Thus, color image data of each color component having the same number of pixels as that of the image sensor is obtained.
さらに、ホワイトバランス(WB)調整、ガンマ補正処理、エッジ強調などのためのエンハンス処理などの信号処理が行われ、輝度信号(Y)と2種類の色差信号(Cr、Cb)のコンポーネント信号に変換し、JPEG(Joint Photographic Experts Group)などの圧縮符号化アルゴリズムで圧縮し小さいファイルサイズの状態とし、記録媒体に記録する。 Furthermore, signal processing such as white balance (WB) adjustment, gamma correction processing, enhancement processing for edge enhancement, etc. is performed and converted into component signals of a luminance signal (Y) and two types of color difference signals (Cr, Cb). Then, the image is compressed by a compression encoding algorithm such as JPEG (Joint Photographic Experts Group) to obtain a small file size and recorded on a recording medium.
近年では一眼デジタルカメラの機能として、撮影後に行う高画質な現像処理やレタッチ処理のために、撮像アナログ信号をA/D変換した直後の、画像処理は加えていない生(RAW)のデジタルデータ(RAWデータ)を可逆圧縮して記録媒体に記録するモードが普及してきている。パソコン等の外部装置によって画像の再現(現像)処理を行うことにより、高品質のプリントやユーザの目的に合致した画像編集を実現する。画像処理を加えないRAWデータを用いるのは、もし、画像処理を加えた画像データを記録した場合に、現像処理やレタッチ処理のために復号化してさらなる画像処理を施すと、画質が劣化するからである。 In recent years, as a function of a single-lens digital camera, raw (RAW) digital data (without image processing) immediately after A / D conversion of an imaging analog signal is performed for high-quality development processing and retouch processing performed after shooting. RAW data) is reversibly compressed and recorded on a recording medium. Image reproduction (development) processing is performed by an external device such as a personal computer, thereby realizing high-quality printing and image editing that matches the user's purpose. RAW data without image processing is used because if image data with image processing added is recorded and if it is decoded for development processing or retouch processing and subjected to further image processing, the image quality deteriorates. It is.
特許文献1には、同時化色補間処理を行ってから記録するモードと、同時化色補間処理を行わずにRAWデータの状態で記録するモードとの2モードについて、共通の圧縮処理工程でそれぞれ独立に圧縮する方法が記載されている(図13(a),(b)参照)。
また特許文献2には、RAWデータから色成分毎に分離されたコンポーネントデータについて、同時化色補間処理を経ることなく、コンポーネントデータ毎に圧縮する方法が記載されている(図14、図15参照)。
Further,
これらの従来技術ではいずれも、RAWデータを隣接画素間の相関性の高い色別のプレーンデータに分割し、そのプレーンデータを圧縮するので、色別に分離しないRAWデータをそのまま圧縮する場合に比べ高い圧縮効率が得られるとしている。 In any of these conventional techniques, RAW data is divided into color-specific plane data with high correlation between adjacent pixels, and the plane data is compressed. Therefore, the RAW data is higher than the case where RAW data not separated by color is compressed as it is. It is said that compression efficiency can be obtained.
従来の技術においては、RAWデータを分割した複数の色別のプレーンデータを個別に圧縮処理している。つまり、同じような圧縮処理を4回に分けて繰り返し実行している。この繰り返しの際のプレーンデータ切り換えに時間がかかる。具体的には、第1のプレーンデータの圧縮処理から第2のプレーンデータの圧縮処理への切り替わり、第2のプレーンデータの圧縮処理から第3のプレーンデータの圧縮処理への切り替わり、第3のプレーンデータの圧縮処理から第4のプレーンデータの圧縮処理への切り替わりというように、切り替わりが3回もある。このように、複数の色別のプレーンデータを個別に時間的に相前後して順次に圧縮処理すると、トータルで多大な時間がかかる。それで、圧縮効率が低いものとなっている。 In the conventional technology, a plurality of color plane data obtained by dividing RAW data is individually compressed. That is, the same compression process is repeatedly performed in four times. It takes time to switch the plane data during this repetition. Specifically, switching from the compression process of the first plane data to the compression process of the second plane data, switching from the compression process of the second plane data to the compression process of the third plane data, There are three times of switching, such as switching from the compression processing of the plane data to the compression processing of the fourth plane data. In this way, if a plurality of pieces of plane data for each color are individually compressed sequentially before and after each other, it takes a lot of time in total. Therefore, the compression efficiency is low.
特許文献2においては並列動作可能な圧縮処理工程を複数用いるという記載もある(段落[0032]参照)。しかし、その場合は、CPU(Central Processing Unit)としてきわめて高い処理能力のものが必要となる。また、ハードウェア構成とする場合には、回路規模の著しい増大を招く。圧縮効率が低いと、近年のイメージセンサの高画素化に対しての圧縮RAWデータ記録モードでの高速処理に不利となる。
なお、連写撮影機能をもつ撮像装置では、圧縮RAWデータ記録モードでの高速連写に支障をきたす可能性もでてくる。また、ブロックノイズ発生の可能性も高くなる。 Note that an imaging apparatus having a continuous shooting function may hinder high-speed continuous shooting in the compressed RAW data recording mode. In addition, the possibility of occurrence of block noise is increased.
本発明は、このような事情に鑑みて創作したものであり、複数の色別プレーンデータの圧縮効率を高いものにするとともに、回路規模の増大やCPUの処理能力の増強を招かないですむようにすることを目的としている。より望ましくは、ブロックノイズの発生を抑制したい。 The present invention was created in view of such circumstances, and it is intended to increase the compression efficiency of a plurality of color-specific plane data, and to avoid increasing the circuit scale and CPU processing capacity. The purpose is that. More desirably, the generation of block noise is desired to be suppressed.
本発明は、次のような手段を講じることにより上記の課題を解決する。 The present invention solves the above problems by taking the following measures.
本発明による画像処理装置は、カラー画像を構成する複数種類の色成分が一定の規則に従って画素配列上に繰り返し配列されるデータ形式のRAWデータ(A/D変換直後の画像データであって信号処理が加えられていないもの)を圧縮処理する装置であって、次のように構成されたRAWデータ再構成手段と圧縮処理手段とを備える。 An image processing apparatus according to the present invention is a RAW data (image data immediately after A / D conversion, in which signal processing is performed) in which a plurality of types of color components constituting a color image are repeatedly arranged on a pixel array according to a certain rule. RAW data reconstructing means and compression processing means configured as follows.
RAWデータ再構成手段は、画像のアナログ信号がA/D変換された後の、信号処理が加えられていないRAWデータを入力し、次のように処理する。入力したRAWデータを前記の色成分毎に分解し、再集合して複数の色別プレーンデータを生成する。例えば、RAWデータが第1ないし第4の色成分を一定の規則に従って画素配列上に繰り返し配列したものであるとする。このRAWデータを第1色成分、第2色成分、第3色成分、第4の色成分に分解し、第1色成分だけを集めた第1の色別プレーンデータと、第2色成分だけを集めた第2の色別プレーンデータと、第3色成分だけを集めた第3の色別プレーンデータと、第4色成分だけを集めた第4の色別プレーンデータとを生成する。プレーンデータは、画像メモリ上で展開する場合に、2次元的に展開される配列形態をもつデータである。なお、例えばベイヤー配列(BGgR)のように、2つの色別プレーンデータが同一色である場合も含むものとする。 The RAW data reconstruction means inputs the RAW data that has not been subjected to signal processing after the analog signal of the image is A / D converted, and processes it as follows. The input RAW data is decomposed for each color component and reassembled to generate a plurality of color-specific plane data. For example, it is assumed that the RAW data is obtained by repeatedly arranging the first to fourth color components on the pixel array according to a certain rule. The RAW data is divided into a first color component, a second color component, a third color component, and a fourth color component, and the first color-specific plane data in which only the first color component is collected, and only the second color component. The second color-specific plane data that collects only the third color component, and the fourth color-specific plane data that collects only the fourth color component. The plane data is data having an array form that is expanded two-dimensionally when expanded on the image memory. In addition, for example, the case where the two color-specific plane data are the same color as in the Bayer array (BGgR) is also included.
RAWデータ再構成手段は、前記の複数の色別プレーンデータを配置して圧縮処理単位である1つのファイルとしてまとめる。ここで、圧縮処理単位である1つのファイルは、色成分毎に区画された複数の配置領域をもっているものとする。RAWデータ再構成手段は、色成分毎に区画された複数の配置領域に、前記複数の色別プレーンデータを振り分けて配置し、再構成RAWデータを生成する。例えば、上記の例を引くと、第1の配置領域に第1の色別プレーンデータを配置し、第2の配置領域に第2の色別プレーンデータを配置し、第3の配置領域に第3の色別プレーンデータを配置し、第4の配置領域に第4の色別プレーンデータを配置して、圧縮処理単位である1つのファイルとしてまとめた再構成RAWデータを生成する。そして、生成した再構成RAWデータを圧縮処理手段に渡す。 The RAW data reconstruction means arranges the plurality of color-specific plane data and collects them as one file which is a compression processing unit. Here, it is assumed that one file, which is a compression processing unit, has a plurality of arrangement areas divided for each color component. The RAW data reconstruction unit distributes and arranges the plurality of color-specific plane data in a plurality of arrangement areas divided for each color component, and generates reconstructed RAW data. For example, when the above example is drawn, the first color-specific plane data is arranged in the first arrangement area, the second color-specific plane data is arranged in the second arrangement area, and the third arrangement area is in the first arrangement area. 3 color-specific plane data is arranged, and the fourth color-specific plane data is arranged in the fourth arrangement area to generate reconstructed RAW data collected as one file as a compression processing unit. Then, the generated reconstructed RAW data is transferred to the compression processing means.
圧縮処理手段は、RAWデータ再構成手段によって生成された圧縮処理単位の再構成RAWデータを入力し、圧縮処理を行う。なお、第1ないし第4の配置領域の相対的位置関係は任意である。 The compression processing means inputs the reconstructed RAW data of the compression processing unit generated by the RAW data restructuring means and performs the compression process. The relative positional relationship between the first to fourth arrangement areas is arbitrary.
(1)以上を要するに、本発明の画像処理装置は、カラー画像を構成する複数種類の色成分が一定の規則に従って画素配列上に繰り返し配列されるデータ形式のRAWデータを圧縮処理する装置であって、
前記RAWデータを入力し、前記RAWデータを前記色成分毎に分解し再集合して複数の色別プレーンデータを生成し、さらに色成分毎に区画された複数の配置領域に前記複数の色別プレーンデータを配置して圧縮処理単位である1つのファイルとしてまとめた再構成RAWデータを生成するRAWデータ再構成手段と、
前記RAWデータ再構成手段によって生成された前記圧縮処理単位の再構成RAWデータを入力し圧縮処理する圧縮処理手段とを備えたものとして構成されている。
(1) In summary, the image processing apparatus of the present invention is an apparatus that compresses RAW data in a data format in which a plurality of types of color components constituting a color image are repeatedly arranged on a pixel array according to a certain rule. And
The RAW data is input, the RAW data is separated for each color component and reassembled to generate a plurality of color-specific plane data, and further, the plurality of color-specific data in a plurality of arrangement areas divided for each color component. RAW data restructuring means for generating reconstructed RAW data arranged as a single file as a compression processing unit by arranging plain data;
And compression processing means for inputting and compressing the reconstructed RAW data of the compression processing unit generated by the RAW data restructuring means.
また、本発明の画像処理方法は、カラー画像を構成する複数種類の色成分が一定の規則に従って画素配列上に繰り返し配列されるデータ形式のRAWデータを圧縮処理する方法であって、
前記RAWデータを入力し、前記RAWデータを前記色成分毎に分解し再集合して複数の色別プレーンデータを生成し、さらに色成分毎に区画された複数の配置領域に前記複数の色別プレーンデータを配置して圧縮処理単位である1つのファイルとしてまとめた再構成RAWデータを生成する工程と、
前記再構成RAWデータを生成する工程によって生成された前記圧縮処理単位の再構成RAWデータを入力し圧縮処理する工程とを備えたものとして構成されている。
The image processing method of the present invention is a method of compressing RAW data in a data format in which a plurality of types of color components constituting a color image are repeatedly arranged on a pixel array according to a certain rule,
The RAW data is input, the RAW data is decomposed and reassembled for each color component to generate a plurality of color-specific plane data, and the plurality of color-specific data are arranged in a plurality of arrangement areas divided for each color component. A step of generating reconstructed RAW data arranged as a single file as a compression processing unit by arranging plain data;
A step of inputting and compressing the reconstructed RAW data of the compression processing unit generated by the step of generating the reconstructed RAW data.
上記のように構成された本発明の画像処理装置・画像処理方法によれば、次のような作用効果が発揮される。 According to the image processing apparatus and the image processing method of the present invention configured as described above, the following operational effects are exhibited.
RAWデータ再構成手段を備えることにより、圧縮処理手段の圧縮処理の対象を、「複数の色別プレーンデータを配置して圧縮処理単位である1つのファイルとしてまとめた再構成RAWデータ」としている。色別プレーンデータは隣接画素間の相関性が高く、その圧縮処理では、異なる色成分が隣接しているRAWデータをそのまま圧縮する場合に比べ高い圧縮効率が得られる。これは前述したとおり従来技術でも認められる。本発明では、単にそれだけでなく、複数種類の色別プレーンデータを圧縮処理単位である1つのファイル上に配置して構成した再構成RAWデータを圧縮処理の対象としている。したがって、再構成RAWデータ上の複数の色別プレーンデータを一括して一度に圧縮処理することが可能となり、さらに高い圧縮効率が得られることになる。詳しくは、すべての色成分の色別プレーンデータの圧縮処理を、圧縮処理単位である1つのファイル(再構成RAWデータ)における1回の圧縮処理で実現するので、従来技術の場合のように複数の色別プレーンデータを個別に順次切り替えながら繰り返して圧縮処理する場合に比べて、圧縮効率が大幅に向上する。 By providing the RAW data reconstruction means, the compression processing target of the compression processing means is “reconstructed RAW data in which a plurality of color plane data are arranged and collected as one file as a compression processing unit”. The plane data for each color has a high correlation between adjacent pixels, and the compression process provides a higher compression efficiency than the case where raw data with different color components are adjacent is compressed as it is. This is also recognized in the prior art as described above. In the present invention, not only that, but also reconstructed RAW data configured by arranging a plurality of types of color-specific plane data on one file which is a unit of compression processing is targeted for compression processing. Therefore, a plurality of color-specific plane data on the reconstructed RAW data can be compressed at once, and higher compression efficiency can be obtained. Specifically, since the compression processing of the plane data for each color component by color is realized by one compression processing in one file (reconstructed RAW data) that is a unit of compression processing, a plurality of processing is performed as in the case of the prior art. Compared with the case of repeatedly performing compression processing while sequentially switching the color-specific plane data individually, the compression efficiency is greatly improved.
また、圧縮効率を高める上で、圧縮処理手段としては並列動作する複数の圧縮処理手段を用いる必要がなく、単一の圧縮処理手段ですむため、回路規模の増大を招かないですむ。あるいは、CPUの処理能力を特別に増強する必要もない。 Further, in order to increase the compression efficiency, it is not necessary to use a plurality of compression processing means operating in parallel as the compression processing means, and a single compression processing means is required, so that the circuit scale does not increase. Alternatively, there is no need to particularly increase the processing capacity of the CPU.
また、本発明による撮像装置は、色分解して撮像するタイプのイメージセンサで入力した光学像をアナログの電気信号に変換しさらにデジタルのRAWデータに変換する撮像部と、前記の画像処理装置とを備えたものである。 An image pickup apparatus according to the present invention includes an image pickup unit that converts an optical image input by an image sensor that performs color separation and picks up an image into an analog electric signal, and further converts it into digital RAW data, and the image processing device described above. It is equipped with.
本発明によれば、RAWデータ再構成手段を備え、色成分を異にする複数種類の色別プレーンデータを圧縮処理単位である1つのファイル上に配置して構成した再構成RAWデータを圧縮処理の対象とし、すべての色成分の色別プレーンデータの圧縮処理を、圧縮処理単位である1つのファイルに対する1回の圧縮処理で実現することにより、複数の色別プレーンデータを個別に順次切り替えながら繰り返して圧縮処理する場合に比べて、圧縮効率を大幅に向上することができる。 According to the present invention, the RAW data reconstructing means is provided, and the reconstructed RAW data configured by arranging a plurality of types of color-specific plane data having different color components on one file as a compression processing unit is compressed. By implementing the compression processing of the color-specific plane data for all the color components in one compression process for one file that is the compression processing unit, while switching the plurality of color-specific plane data individually and sequentially Compared with the case of repeatedly performing compression processing, the compression efficiency can be greatly improved.
加えて、圧縮効率を高める上で、並列動作する複数の圧縮処理手段を用いる必要がなく、単一の圧縮処理手段ですむため、回路規模の増大を招かないですみ、CPUの処理能力を特別に増強する必要もない。 In addition, it is not necessary to use multiple compression processing means operating in parallel to improve compression efficiency, and a single compression processing means is required, so there is no need to increase the circuit scale, and the CPU processing capacity is special. There is no need to reinforce.
上記した(1)の構成の本発明の画像処理装置ならびに画像処理方法は、次のような実施の形態においてさらに有利に展開することが可能である。 The image processing apparatus and image processing method of the present invention having the configuration (1) described above can be further advantageously developed in the following embodiment.
(2)上記(1)の構成の画像処理装置において、前記RAWデータ再構成手段は、前記複数の色別プレーンデータを前記1つのファイルに配置するに際して、前記圧縮処理手段における圧縮処理単位ブロックの周期的な境界位置に対して、各色別プレーンデータの基準位置を縦方向と横方向の両方向に所定画素分ずらして配置するように構成されているという態様がある。この画像処理装置に対応する画像処理方法としては、上記(1)の構成の画像処理方法において、前記再構成RAWデータを生成する工程は、前記複数の色別プレーンデータを前記1つのファイルに配置するに際して、前記圧縮処理手段における圧縮処理単位ブロックの周期的な境界位置に対して、各色別プレーンデータの基準位置を縦方向と横方向の両方向に所定画素分ずらして配置するという態様がある。 (2) In the image processing apparatus configured as described in (1) above, the RAW data reconstructing unit includes a compression processing unit block of the compression processing unit when the plurality of color plane data are arranged in the one file. There is an aspect in which the reference position of each color plane data is shifted by a predetermined number of pixels in both the vertical and horizontal directions with respect to the periodic boundary position. As an image processing method corresponding to this image processing apparatus, in the image processing method having the configuration (1), the step of generating the reconstructed RAW data includes arranging the plurality of color-specific plane data in the one file. In doing so, there is a mode in which the reference position of each color plane data is shifted by a predetermined number of pixels in both the vertical and horizontal directions with respect to the periodic boundary position of the compression processing unit block in the compression processing means.
(3)また上記(1)の構成の画像処理装置において、前記RAWデータ再構成手段は、前記複数の色別プレーンデータを前記1つのファイルに配置するに際して、前記圧縮処理手段における圧縮処理単位ブロックの周期的な境界位置に対して、各色別プレーンデータの基準位置を縦方向または横方向のいずれか1方向に所定画素分ずらして配置するように構成されているという態様がある。この画像処理装置に対応する画像処理方法としては、上記(1)の構成の画像処理方法において、前記再構成RAWデータを生成する工程は、前記複数の色別プレーンデータを前記1つのファイルに配置するに際して、前記圧縮処理手段における圧縮処理単位ブロックの周期的な境界位置に対して、各色別プレーンデータの基準位置を縦方向または横方向のいずれか1方向に所定画素分ずらして配置するという態様がある。 (3) Also, in the image processing apparatus having the configuration of (1), the RAW data reconstructing unit is configured to use the compression processing unit block in the compression processing unit when arranging the plurality of color-specific plane data in the one file. With respect to the periodic boundary position, the reference position of each color plane data is arranged so as to be shifted by a predetermined pixel in either one of the vertical direction and the horizontal direction. As an image processing method corresponding to this image processing apparatus, in the image processing method having the configuration (1), the step of generating the reconstructed RAW data includes arranging the plurality of color-specific plane data in the one file. In this case, the reference position of each color plane data is shifted by a predetermined number of pixels in either the vertical direction or the horizontal direction with respect to the periodic boundary position of the compression processing unit block in the compression processing means. There is.
複数の色別プレーンデータを配置するに際して、圧縮処理手段における圧縮処理単位ブロックの周期的な境界位置に対して、もし各色別プレーンデータの基準位置を相対的に同一位置とすると、圧縮処理が圧縮率の高い非可逆圧縮である場合に、再生のために伸張処理を施すと、得られる1フレーム分の再構成RAWデータにおいて圧縮処理単位ブロックの境界位置に対応する各色のブロックノイズの発生位置が重なり合う特有の画質劣化が生じ、ブロックノイズが亢進する可能性がある。 When arranging a plurality of plane data for each color, if the reference position of each plane data for each color is set to the same position with respect to the periodic boundary position of the compression processing unit block in the compression processing means, the compression processing is compressed. If decompression processing is performed for reproduction in the case of irreversible compression with a high rate, the block noise generation position of each color corresponding to the boundary position of the compression processing unit block in the reconstructed RAW data for one frame obtained. Overlapping characteristic image quality degradation may occur, and block noise may increase.
これに対して、上記の(2),(3)のように構成し、圧縮処理単位ブロックの周期的な境界位置に対して各色別プレーンデータを相対的にずらすようにすれば、各色のブロックノイズの発生位置が重なり合う特有の画質劣化が抑制され、画像品質を向上することが可能となる。 On the other hand, if each color plane data is shifted relative to the periodic boundary position of the compression processing unit block configured as in (2) and (3) above, the block of each color It is possible to suppress image quality degradation peculiar to where noise generation positions overlap and to improve image quality.
(4)上記(1)の構成の画像処理装置において、前記RAWデータ再構成手段は、前記複数の色別プレーンデータの配置領域どうし間の無画部領域に対して固定データを配置して前記再構成RAWデータを生成するように構成されているという態様がある。この画像処理装置に対応する画像処理方法としては、上記(1)の構成の画像処理方法において、前記再構成RAWデータを生成する工程は、前記複数の色別プレーンデータの配置領域どうし間の無画部領域に対して固定データを配置して前記再構成RAWデータを生成するという態様がある。固定データは、輝度変化のない画素データである。 (4) In the image processing apparatus having the configuration of (1), the RAW data reconstruction unit arranges fixed data in a non-image area between arrangement areas of the plurality of color-specific plane data, and There is an aspect of being configured to generate reconstructed RAW data. As an image processing method corresponding to this image processing apparatus, in the image processing method configured as described in (1) above, the step of generating the reconstructed RAW data is performed between the plurality of color-specific plane data arrangement regions. There is an aspect in which fixed data is arranged in the image area and the reconstructed RAW data is generated. The fixed data is pixel data having no luminance change.
このように構成すれば、複数の色別プレーンデータを配置する際に、色別プレーンデータの配置領域どうし間に固定データからなる無画部領域を形成することが可能となる。もしこの無画部領域の存在がなく色別プレーンデータどうしが互いに接した状態で配置されているとすると、圧縮処理単位ブロックごとに圧縮処理が繰り返される場合に、同じ1つの圧縮処理単位ブロックに、色別プレーンデータの水平方向または垂直方向でのある色別プレーンデータの終端部分の色成分と隣接する色別プレーンデータの先頭部分の色成分が混入する場合が生じる。無画部領域の存在により、圧縮処理単位ブロックごとに圧縮処理が繰り返される場合に、ある色別プレーンデータの終端部分の色成分と隣接する色別プレーンデータの先頭部分の色成分が混入することを免れる。その結果、再構成RAWデータに対する圧縮処理において、複数の色別プレーンデータを互いに混同しない状態で圧縮処理することが可能となる。介在させるデータは、輝度変化のない固定データゆえに隣接の差分がゼロであり、これによって圧縮効率が高くなることも有利に作用する。 With this configuration, when arranging a plurality of color-specific plane data, a non-image area composed of fixed data can be formed between the color-specific plane data arrangement areas. If the non-image area does not exist and the color-specific plane data are arranged in contact with each other, when the compression processing is repeated for each compression processing unit block, the same one compression processing unit block is stored. In some cases, the color component of the end part of the plane data for each color in the horizontal direction or the vertical direction of the plane data for each color is mixed with the color component of the head part of the adjacent plane data for each color. When the compression process is repeated for each compression processing unit block due to the presence of the non-image area, the color component of the end portion of a certain color plane data and the color component of the head portion of the adjacent color-specific plane data are mixed. Escape. As a result, in the compression process for the reconstructed RAW data, it is possible to perform the compression process in a state where the plurality of color-specific plane data are not confused with each other. Since the intervening data is fixed data having no luminance change, the adjacent difference is zero, and this also advantageously increases the compression efficiency.
(5)上記(1)の構成の画像処理装置において、前記圧縮処理手段は、複数のコンポーネント入力端子を有し、1つの前記コンポーネント入力端子から入力した前記再構成RAWデータと、他の前記コンポーネント入力端子から入力した固定データとを同時的に圧縮処理するように構成されているという態様がある。この画像処理装置に対応する画像処理方法としては、上記(1)の構成の画像処理方法において、前記圧縮処理する工程は、前記再構成RAWデータと固定データとを互いに別系統で入力し、前記再構成RAWデータと前記固定データとを同時的に圧縮処理するという態様がある。 (5) In the image processing apparatus having the configuration of (1), the compression processing unit includes a plurality of component input terminals, the reconstructed RAW data input from one of the component input terminals, and the other component. There is an aspect in which fixed data input from an input terminal is compressed simultaneously. As an image processing method corresponding to this image processing apparatus, in the image processing method having the configuration (1), the compression processing step inputs the reconstructed RAW data and the fixed data in different systems, and There is an aspect in which the reconstructed RAW data and the fixed data are simultaneously compressed.
このように構成すれば、再構成RAWデータと固定データとを同時的に圧縮処理することで、圧縮効率をさらに高めることが可能となる。JPEGなどではコンポーネント入力端子として輝度信号(Y)と色差信号(Cr/Cb)の入力端子を備えた圧縮処理手段が用いられるが、その一般的な形態の圧縮処理手段の資源が有効活用できる。 With this configuration, it is possible to further increase the compression efficiency by simultaneously compressing the reconstructed RAW data and the fixed data. In JPEG and the like, a compression processing unit having a luminance signal (Y) and a color difference signal (Cr / Cb) input terminal as component input terminals is used. However, the resources of the compression processing means in a general form can be effectively used.
(6)上記(1)の構成の画像処理装置において、前記圧縮処理手段は、複数のコンポーネント入力端子を有し、1つの前記コンポーネント入力端子から入力した前記再構成RAWデータと、他の前記コンポーネント入力端子から入力した別の画像データとを同時的に圧縮処理するように構成されているという態様がある。この画像処理装置に対応する画像処理方法としては、上記(1)の構成の画像処理方法において、前記圧縮処理する工程は、前記再構成RAWデータと別の画像データとを互いに別系統で入力し、前記再構成RAWデータと前記別の画像データとを同時的に圧縮処理するという態様がある。 (6) In the image processing apparatus having the configuration of (1), the compression processing unit includes a plurality of component input terminals, the reconstructed RAW data input from one of the component input terminals, and the other component. There is an aspect in which another image data input from the input terminal is compressed simultaneously. As an image processing method corresponding to this image processing apparatus, in the image processing method having the configuration of (1), the compression processing step inputs the reconstructed RAW data and another image data in different systems. There is a mode in which the reconstructed RAW data and the other image data are simultaneously compressed.
このように構成すれば、再構成RAWデータと別の画像データ(例えば表示用に縮小リサイズされたスモールYCrCbデータやスモールRGBデータなど)とを同時的に圧縮処理することで、表示用の縮小リサイズ画像など別の画像を含めて圧縮効率をさらに高めることが可能となる。この場合も、JPEGなどの輝度信号(Y)と色差信号(Cr/Cb)のコンポーネント入力端子を備えた一般的な形態の圧縮処理手段の資源が有効活用できる。 With this configuration, the reconstructed RAW data and another image data (for example, small YCrCb data or small RGB data that has been reduced and resized for display) are simultaneously compressed to reduce the size for display. It is possible to further increase the compression efficiency including another image such as an image. Also in this case, the resources of the compression processing means in a general form having component input terminals for luminance signals (Y) and color difference signals (Cr / Cb) such as JPEG can be effectively used.
(7)上記(1)の構成の画像処理装置において、前記圧縮処理手段は、前記再構成RAWデータを非可逆圧縮するものとして構成されているという態様がある。この画像処理装置に対応する画像処理方法としては、上記(1)の構成の画像処理方法において、前記圧縮処理する工程は、前記再構成RAWデータを非可逆圧縮するという態様がある。JPEG、MPEG(Moving Picture Experts Group)、H.264などの非可逆圧縮は、可逆圧縮に比べて圧縮率の高い圧縮処理である。したがって、よりファイルサイズの小さい圧縮RAWデータを得ることが可能となる。 (7) In the image processing apparatus having the configuration of (1), the compression processing unit may be configured to irreversibly compress the reconstructed RAW data. As an image processing method corresponding to this image processing apparatus, in the image processing method having the configuration (1), the compression processing step includes irreversible compression of the reconstructed RAW data. JPEG, MPEG (Moving Picture Experts Group), H.M. The lossy compression such as H.264 is a compression process with a higher compression rate than the lossless compression. Therefore, compressed RAW data with a smaller file size can be obtained.
なお、上記の(1)の構成の画像処理装置または画像処理方法に対して、上記(2)〜(7)のうちの任意複数個の事項を矛盾しない条件のもとで任意に組み合わせてもよい。 Note that the image processing apparatus or the image processing method having the configuration (1) may be arbitrarily combined with any of a plurality of items (2) to (7) under a condition that does not contradict each other. Good.
また、本発明の画像処理方法は、単独のアプリケーションソフトウエアとして構成されてもよいし、画像加工ソフトやファイル管理用ソフトウエアなどのアプリケーションの一部として組み込まれてもよい。 The image processing method of the present invention may be configured as a single application software, or may be incorporated as part of an application such as image processing software or file management software.
また、本発明の画像処理方法に準じた画像処理プログラムは、パソコンなどのコンピュータシステムに適用する場合に限定されず、デジタルカメラや携帯電話機などの情報機器に組み込まれる中央処理装置(CPU)の動作プログラムとしても適用することが可能である。 The image processing program according to the image processing method of the present invention is not limited to being applied to a computer system such as a personal computer, and the operation of a central processing unit (CPU) incorporated in an information device such as a digital camera or a cellular phone. It can also be applied as a program.
以上で、本発明の概要を説明した。 The outline of the present invention has been described above.
次に、ベイヤー配列の場合を例に挙げて、より分かりやすく説明する。 Next, the case of the Bayer arrangement will be described as an example, and the description will be made more easily.
図1はベイヤー配列のカラーフィルタをもつ撮像部で取得されたRAWデータから再構成RAWデータを生成し、再構成RAWデータを圧縮処理する画像処理装置の概略構成を示すブロック図である。 FIG. 1 is a block diagram illustrating a schematic configuration of an image processing apparatus that generates reconstructed RAW data from RAW data acquired by an imaging unit having a color filter with a Bayer array and compresses the reconstructed RAW data.
図1において、1はカラー画像を構成する複数種類の色成分が一定の規則に従って画素配列上に繰り返し配列されるカラーフィルタをもつ撮像部(イメージセンサ)である。ここでは、カラーフィルタは、4種類の色成分であるB(青成分),G(第1の緑成分),g(第2の緑成分),R(赤成分)がベイヤー配列をもつものであるとする。2は撮像部1で取得された4つの色成分B,G,g,Rをもつベイヤー配列によるデータ形式のRAWデータである。3はRAWデータ2を入力し、RAWデータ2を色成分B,G,g,R毎に分解し2次元的に再集合して4つの色別プレーンデータ41,42,43,44を生成し、さらに色成分毎に区画された4つの独立の配置領域a1,a2,a3,a4に前記4つの色別プレーンデータ41,42,43,44を配置して圧縮処理単位である1つのファイルとしてまとめた再構成RAWデータ4を生成するRAWデータ再構成手段でる。5はRAWデータ再構成手段3によって生成された圧縮処理単位の再構成RAWデータ4を輝度データとして入力し非可逆圧縮処理する圧縮処理手段である。
In FIG. 1,
撮像部1から出力されRAWデータ再構成手段3に入力されるRAWデータ2は、撮像部1における撮像アナログ信号のA/D変換直後の画像データであって、同時化色補間処理、ガンマ補正処理、ホワイトバランス調整などの信号処理が行われていない画像データである。RAWデータ2は、カラーフィルタの配列パターンに対応して画素毎に異なる色情報を1つだけ保持しているモザイク状の画像データである。
RAWデータ再構成手段3は、信号処理が加えられていないRAWデータ2を入力し、入力したRAWデータ2を前記の色成分毎に分解し、再集合して4つの色別プレーンデータ41,42,43,44を生成する。すなわち、RAWデータ2は第1ないし第4の色成分を一定の規則に従って画素配列上に繰り返し配列したものであるが、このRAWデータ2を第1色成分(B)、第2色成分(G)、第3色成分(g)、第4の色成分(R)に分解し、第1色成分(B)だけを集めた第1の色別プレーンデータ41と、第2色成分(G)だけを集めた第2の色別プレーンデータ42と、第3色成分(g)だけを集めた第3の色別プレーンデータ43と、第4色成分(R)だけを集めた第4の色別プレーンデータ44とを生成する。なお、ベイヤー配列における4つの色成分は、第1色成分(B)、第2色成分(G)、第3色成分(g)、第4の色成分(R)であり、第2色成分(G)と第3色成分(g)とはともに緑であるが、これら2つは互いに独立した色別プレーンデータとして扱うものとする。
The RAW
RAWデータ再構成手段3は、さらに、前記の4つの色別プレーンデータ41,42,43,44を2次元的に配置して圧縮処理単位である1つのファイルとしてまとめる。ここで、圧縮処理単位である1つのファイルは、色成分毎に区画された4つの配置領域a1,a2,a3,a4をもっている。RAWデータ再構成手段3は、色成分毎に区画された4つの配置領域a1,a2,a3,a4に、前記4つの色別プレーンデータ41,42,43,44を振り分けて配置し、再構成RAWデータ4を生成する。すなわち、色成分B(青)に対応する第1の配置領域a1に第1の色別プレーンデータ41を配置し、色成分G(第1の緑)に対応する第2の配置領域a2に第2の色別プレーンデータ42を配置し、色成分g(第2の緑)に対応する第3の配置領域a3に第3の色別プレーンデータ43を配置し、色成分R(赤)に対応する第4の配置領域a4に第4の色別プレーンデータ44を配置して、圧縮処理単位である1つのファイルとしてまとめた再構成RAWデータ4を生成する。そして、生成した再構成RAWデータ4を圧縮処理手段5に渡す。
The RAW
圧縮処理手段5は、RAWデータ再構成手段3によって生成された圧縮処理単位の再構成RAWデータ4を入力し、圧縮処理を行う。圧縮処理については、非可逆圧縮(非可逆符号化)、可逆圧縮(可逆符号化)のいずれでもよい。
The compression processing means 5 inputs the reconstructed
なお、第1ないし第4の配置領域a1〜a4の相対的位置関係は任意である。ここでは水平垂直2方向の2次元的に配置しているが、後述するように、水平方向に沿って1次元的に配置してもよいし、垂直方向に沿って1次元的に配置してもよい(図9参照)。 The relative positional relationship between the first to fourth arrangement regions a1 to a4 is arbitrary. Here, it is arranged two-dimensionally in two horizontal and vertical directions, but as described later, it may be arranged one-dimensionally along the horizontal direction, or one-dimensionally arranged along the vertical direction. It is also possible (see FIG. 9).
上記のように構成された本実施の形態の画像処理装置によれば、次のような作用効果が発揮される。 According to the image processing apparatus of the present embodiment configured as described above, the following operational effects are exhibited.
RAWデータ2では、第1色成分(B)の右横に隣接して第2色成分(G)があり、第2色成分(G)の右横に隣接して第1色成分(B)があり、第3色成分(g)の右横に隣接して第4の色成分(R)があり、第4の色成分(R)の右横に隣接して第3色成分(g)があり、また、第1色成分(B)の下方に隣接して第3色成分(g)があり、第3色成分(g)の下方に隣接して第1色成分(B)があり、第2色成分(G)の下方に隣接して第4の色成分(R)があり、第4の色成分(R)の下方に隣接して第2色成分(G)がある。しかし、これら互いに隣接する画素の画素値は、相関性があまり高いものではない。したがって、RAWデータ2をそのまま圧縮する場合は、圧縮効率が低いものとなる(従来技術相当)。
In the
本発明の実施の形態では、RAWデータ再構成手段3を備えることにより、圧縮処理手段5の圧縮処理の対象を、「4つの色別プレーンデータ41,42,43,44を配置して圧縮処理単位である1つのファイルとしてまとめた再構成RAWデータ4」としている。前述したとおり、色別プレーンデータは隣接画素間の相関性が高く、その圧縮処理では、RAWデータ2をそのまま圧縮する場合に比べ高い圧縮効率を得られる。
In the embodiment of the present invention, by providing the RAW
さらに、本実施の形態では、色成分を異にする4つの色別プレーンデータ41,42,43,44を圧縮処理単位である1つのファイル上に配置して構成した再構成RAWデータ4を圧縮処理の対象としているので、一層高い圧縮効率が得られる。詳しくは、すべての色成分の色別プレーンデータ41,42,43,44の圧縮処理を、圧縮処理単位である1つのファイル(再構成RAWデータ4)における1回の圧縮処理で実現するので、従来技術の場合のように4つの色別プレーンデータ41,42,43,44を個別に順次切り替えながら繰り返して圧縮処理する場合に比べて、圧縮効率が大幅に向上する。
Further, in the present embodiment, the reconstructed
また、圧縮処理手段5としては、デジタルカメラに標準的に実装されている、1フレーム分の画像データに対する圧縮処理を1回の処理で完了するように作成された従来方式の圧縮制御ソフト資産を有効活用することも可能である。あるいは、既存のJPEGハード処理でも対応することが可能である。すなわち、4つの色別プレーンデータ41,42,43,44を含む1フレーム分の画像データの圧縮処理を1回の処理で完了させるに当たり、並列動作する圧縮処理手段を4つ用いる必要がなく、圧縮処理手段5は単一ですむため、回路規模の増大を招かないですむ。あるいは、CPUの処理能力を特別に増強する必要もない。
Further, as the compression processing means 5, a compression control software asset of a conventional method created so as to complete the compression processing for image data for one frame, which is standardly mounted on a digital camera, in one process. It can also be used effectively. Alternatively, existing JPEG hardware processing can also be supported. That is, it is not necessary to use four compression processing means operating in parallel to complete the compression processing of image data for one frame including the four color-
次に、ブロックノイズの発生について説明する。 Next, generation of block noise will be described.
図2(a)は圧縮対象であるRAWデータ2を例示する。図2(b)は4つの色別プレーンデータ41,42,43,44を隣接させて2次元方向に配置したものである。図2(c)は4つの色別プレーンデータ41,42,43,44を互いに適当間隔あけて配置したものである。本発明の実施の形態の場合は、図2(b)ではなく、図2(c)が該当する。図2(c)の場合、間の部分と周辺部分には輝度レベル不変の固定データ(灰色で示す)が配置され、無画部領域を形成している。
FIG. 2A illustrates
m、n、x、yを任意の(2以上の)自然数とする。圧縮対象のRAWデータ2のサイズを、水平方向で2m画素、垂直方向で2n画素とする。
Let m, n, x, and y be arbitrary (two or more) natural numbers. The size of the
1つの被圧縮ファイルである再構成RAWデータ4のサイズはRAWデータ2よりも大きい。それは、水平方向で2(m+x)画素であり、垂直方向で2(n+y)画素である。色成分毎に区画された4つの配置領域a1,a2,a3,a4は互いに同じサイズであり、それぞれ水平方向で(m+x)画素であり、垂直方向で(n+y)画素である。4つの色別プレーンデータ41,42,43,44のサイズは共通で、水平方向でm画素、垂直方向n画素である。
The size of the reconstructed
図3は図1のRAWデータ再構成手段3によってベイヤー配列の4つの色別プレーンデータ41,42,43,44を2次元的に配置して1フレーム分の画像データとして再構成した再構成RAWデータ4を示す。
FIG. 3 shows a reconstructed RAW in which the four
図3において、41は画像の左上部に配置された第1色成分(B)だけを集めた第1の色別プレーンデータ、42は画像の右上部に配置された第2色成分(G)だけを集めた第2の色別プレーンデータ、43は画像の左下部に配置された第3色成分(g)だけを集めた第3の色別プレーンデータ、44は画像の右下部に配置された第4色成分(R)だけを集めた第4の色別プレーンデータである。 In FIG. 3, 41 is first color-specific plane data obtained by collecting only the first color components (B) arranged at the upper left part of the image, and 42 is the second color component (G) arranged at the upper right part of the image. 2nd color plane data that collects only the color, 43 is the third color plane data that collects only the third color component (g) arranged in the lower left part of the image, 44 is arranged in the lower right part of the image The fourth color-specific plane data is a collection of only the fourth color component (R).
45は圧縮処理手段5で処理を実施する際の圧縮処理単位ブロックの水平方向での周期的な境界位置(垂直方向に延びる)、46は圧縮処理手段5で処理を実施する際の圧縮処理単位ブロックの垂直方向での周期的な境界位置(水平方向に延びる)を示す。図面上、灰色で示す47は4つの色別プレーンデータ41,42,43,44の隣接境界部分の間を埋める固定データである。固定データ47は、色信号成分はもたず、輝度信号成分のみをもち、しかも輝度信号成分が一定不変となっている画素データである。圧縮処理単位ブロックの大きさは、ここでは簡略化のため4画素×4画素(H.264相当)としているが、JPEGの場合は8画素×8画素である。
45 is a periodic boundary position (extending in the vertical direction) in the horizontal direction of the compression processing unit block when the compression processing means 5 performs processing, and 46 is a compression processing unit when the compression processing means 5 performs processing. A periodic boundary position in the vertical direction of the block (extending in the horizontal direction) is shown. In the drawing,
1つの被圧縮ファイルである再構成RAWデータ4上において4つの色別プレーンデータ41,42,43,44が互いに一定間隔をおいて2次元的に配置されている。色別プレーンデータどうしを互いに間隔をあけて配置するのは次の理由による。圧縮処理は、4画素×4画素や8画素×8画素のブロック単位に対して繰り返し行われる。もし、4つの色別プレーンデータが隣接状態で配置されていると、色別プレーンデータのデータサイズによっては、あるブロック行において第1の色別プレーンデータ41の最終のブロックのいくつかの画素データと第2の色別プレーンデータ42の先頭のブロックのいくつかの画素データとが1つの圧縮処理単位ブロックに共通に入ることがあり、また、第3の色別プレーンデータ43と第4の色別プレーンデータ44との間でも同様で、そのような状態で圧縮処理を行うと、同じ圧縮処理単位ブロックに色成分が相違する画素データが混在することから、圧縮後のデータが劣化してしまう。さらに、垂直方向でも、あるブロック列において第1の色別プレーンデータ41の最終のブロックのいくつかの画素データと第3の色別プレーンデータ43の先頭のブロックのいくつかの画素データとが1つの圧縮処理単位ブロックに共通に入ることがあり、また、第2の色別プレーンデータ42と第4の色別プレーンデータ44との間でも同様で、その状態で圧縮処理を行うと、同じ圧縮処理単位ブロックに色成分が相違する画素データが混在することから、圧縮後のデータが劣化してしまう。
On the reconstructed
この不都合を回避するために、1つの圧縮処理単位ブロックに入るのは必ず同じ色成分の画素データだけであるようにするために、色別プレーンデータどうしを互いに間隔をあけて配置し、隣り合う色別プレーンデータどうし間に輝度信号成分一定不変の固定データ47を適当個数配置するようにしている。こうすることにより、圧縮後のデータの劣化を防止することができる。
In order to avoid this inconvenience, in order to make sure that only one piece of pixel data of the same color component enters one compression processing unit block, the color-specific plane data are arranged spaced apart from each other and adjacent to each other. An appropriate number of fixed
圧縮処理単位ブロックの圧縮処理においては、フォトレタッチ処理等のために圧縮RAWデータを伸張処理したときに、境界位置45,46にブロックノイズが発生しやすい。ブロックノイズは、JPEGでのDCTにおいて発生しやすい。圧縮率を上げるほど発生しやすい。比較的濃度値の変化が少ない部分で目立つ。これを図4に示す。図4は図3の圧縮RAWデータを伸張処理した場合の画像データにおけるブロックノイズ発生位置の説明図である。 In the compression processing of the compression processing unit block, block noise is likely to occur at the boundary positions 45 and 46 when the compressed RAW data is expanded for photo retouch processing or the like. Block noise is likely to occur in DCT with JPEG. It tends to occur as the compression rate increases. It stands out in areas where there is relatively little change in density value. This is shown in FIG. FIG. 4 is an explanatory diagram of block noise occurrence positions in the image data when the compressed RAW data of FIG. 3 is decompressed.
図3の場合、第1の色別プレーンデータ41が第1の配置領域a1において配置されている相対的位置関係と、第2の色別プレーンデータ42が第2の配置領域a2において配置されている相対的位置関係と、第3の色別プレーンデータ43が第3の配置領域a3において配置されている相対的位置関係と、第4の色別プレーンデータ44が第4の配置領域a4において配置されている相対的位置関係とは、互いに等価となっている。各配置領域の基準位置を各配置領域の左上隅とし、各色別プレーンデータの基準位置を各色別プレーンデータの左上隅とする。第1の色別プレーンデータ41の基準位置の第1の配置領域a1の基準位置に対する変位ベクトルV1と、第2の色別プレーンデータ42の基準位置の第2の配置領域a2の基準位置に対する変位ベクトルV2と、第3の色別プレーンデータ43の基準位置の第3の配置領域a3の基準位置に対する変位ベクトルV3と、第4の色別プレーンデータ44の基準位置の第4の配置領域a4の基準位置に対する変位ベクトルV4とは、互いに等価であり、水平方向または垂直方向に沿った平行移動により互いにぴったりと重なり合うようになっている。
In the case of FIG. 3, the relative positional relationship in which the first color-
しかし、このような等価的な配置形態がブロックノイズ発生の原因となりやすいことが分かってきた。次にその理由を説明する。簡単に概念説明するために、基本処理ブロックの大きさを4画素×4画素とする。 However, it has been found that such an equivalent arrangement form tends to cause block noise. Next, the reason will be described. In order to briefly explain the concept, the size of the basic processing block is 4 pixels × 4 pixels.
4つの色別プレーンデータ41,42,43,44のそれぞれは、その内部に、圧縮処理単位ブロックの垂直方向に延びる水平方向周期の境界位置45と水平方向に延びる垂直方向周期の境界位置46とが繰り返し現れてくる。
Each of the four color-
図3において、第1の色別プレーンデータ41で左側から境界位置45に臨むB(青)の画素データは2列目、6列目、10列目などであり、右側から境界位置45に臨むB(青)の画素データは3列目、7列目、11列目などであり、これらの画素データは伸張処理されると、図4に示すように、元の2m×2nの大きなサイズの画像データにおいて展開され、3列目、11列目、19列目などと、5列目、13列目、21列目などとなっている。
In FIG. 3, the B (blue) pixel data facing the
図3において、第1の色別プレーンデータ41で上側から境界位置46に臨むB(青)の画素データは2行目、6行目、10行目目などであり、下側から境界位置46に臨むB(青)の画素データは3行目、7行目、11行目などであり、これらが図4において展開され、3行目、11行目、19行目などと、5行目、13行目、21行目などとなっている。
In FIG. 3, B (blue) pixel data facing the
図3において、第2の色別プレーンデータ42で左側から境界位置45に臨むG(第1の緑)の画素データも上記同様に2列目、6列目、10列目などであり、右側から境界位置45に臨むG(第1の緑)の画素データも上記同様に3列目、7列目、11列目などであり、これらが図4において展開され、4列目、12列目、20列目などと、6列目、14列目、22列目などとなっている。
In FIG. 3, the G (first green) pixel data facing the
図3において、第1の色別プレーンデータ41で上側から境界位置46に臨むG(第1の緑)の画素データも上記同様に2行目、6行目、10行目目などであり、下側から境界位置46に臨むG(第1の緑)の画素データも上記同様に3行目、7行目、11行目などであり、これらが図4において展開され、上記同様に、3行目、11行目、19行目などと、5行目、13行目、21行目などとなっている。
In FIG. 3, the pixel data of G (first green) facing the
さらに、図3において、第3の色別プレーンデータ43でのg(第2の緑)の画素データの境界位置45,46に対する関係も同様であり、図4において上記同様に、3列目、11列目、19列目などと、5列目、13列目、21列目などとなっており、また、4行目、12行目、20行目などと、6行目、14行目、22行目などとなっている。
Further, in FIG. 3, the relationship between the g (second green) pixel data and the boundary positions 45 and 46 in the third color-
さらに、図3において、第4の色別プレーンデータ44でのR(赤)の画素データの境界位置45,46に対する関係も同様であり、図4において上記同様に、4行目、12行目、20行目などと、6行目、14行目、22行目などとなっており、また、4行目、12行目、20行目などと、6行目、14行目、22行目などとなっている。
Further, in FIG. 3, the relationship of the R (red) pixel data with respect to the boundary positions 45 and 46 in the fourth color-
以上のように、ブロックノイズが発生しやすい境界位置が4つの色別プレーンデータ41,42,43,44で等価的であり、伸張処理後の画像データにおいて垂直方向および水平方向に連続することになる。すなわち、伸張処理後の元の大きなサイズの画像データにおいて、4列目毎と4行目毎に規則的に境界位置に対応する画素が現れることになる。その結果として、ブロックノイズが顕著に現れやすく、画像品質の劣化を招く可能性が残る(図7(b)参照)。
As described above, the boundary positions at which block noise is likely to occur are equivalent to the four color-
以上で説明したブロックノイズ発生の問題は、圧縮効率を高めるために、色成分を異にする複数種類の色別プレーンデータを圧縮処理単位である1つのファイル上に整然と(それぞれの基準位置に対する変位ベクトルV1〜V4を互いに等価的に)配置して構成した再構成RAWデータを圧縮処理の対象とし、1フレーム分の画像データに対する圧縮処理を1回の処理で完了するようにしたことに由来する。 The problem of block noise generation described above is that, in order to increase the compression efficiency, a plurality of types of color-specific plane data having different color components are arranged in order on one file as a compression processing unit (displacement with respect to each reference position). This is because the reconstructed RAW data configured by arranging the vectors V1 to V4 (equivalently to each other) is the target of the compression process, and the compression process for the image data for one frame is completed in one process. .
そこで、本実施の形態では、より好ましい態様として次のような対策を講じる。ここでのデータ圧縮は、圧縮率の高い非可逆圧縮とする。 Therefore, in the present embodiment, the following countermeasure is taken as a more preferable aspect. The data compression here is irreversible compression with a high compression rate.
図5に示すように、第1の色別プレーンデータ41が第1の配置領域a1において配置されている相対的位置関係と、第2の色別プレーンデータ42が第2の配置領域a2において配置されている相対的位置関係と、第3の色別プレーンデータ43が第3の配置領域a3において配置されている相対的位置関係と、第4の色別プレーンデータ44が第4の配置領域a4において配置されている相対的位置関係とは、互いに非等価となっている。つまり、これら4つの相対的位置関係において、相互にずれを生じさせている。そのずれは、右方向1画素分かつ下方向1画素分である(圧縮処理単位ブロックが4画素×4画素の場合)。
As shown in FIG. 5, the relative positional relationship in which the first color-
第1の色別プレーンデータ41の基準位置の第1の配置領域a1の基準位置に対する変位ベクトルV1と、第2の色別プレーンデータ42の基準位置の第2の配置領域a2の基準位置に対する変位ベクトルV2と、第3の色別プレーンデータ43の基準位置の第3の配置領域a3の基準位置に対する変位ベクトルV3と、第4の色別プレーンデータ44の基準位置の第4の配置領域a4の基準位置に対する変位ベクトルV4とは、互いに非等価である。V2=V1×2、V3=V1×3、V4=V1×4となっている。
The displacement vector V1 of the reference position of the first
第2の色別プレーンデータ42は第1の色別プレーンデータ41に対して右下方向に1画素分ずらしてあり、第3の色別プレーンデータ43は第2の色別プレーンデータ42に対して右下方向に1画素分ずらしてあり、第4の色別プレーンデータ44は第3の色別プレーンデータ43に対して右下方向に1画素分ずらしてある。
The second color-
図6は図5に対応して伸張処理後の元の大きなサイズの画像データを示したものである。図4の図3に対する関係と図6の図5に対する関係とは同じ次元の対応関係となっている。 FIG. 6 shows the original large size image data after the decompression process corresponding to FIG. The relationship of FIG. 4 to FIG. 3 and the relationship of FIG. 6 to FIG.
図5において、第1の色別プレーンデータ41で左側から境界位置45に臨むB(青)の画素データは3列目、7列目、11列目などであり、右側から境界位置45に臨むB(青)の画素データは4列目、8列目、12列目などであり、これらが図6において展開され、5列目、13列目、21列目などと、7列目、15列目、23列目などとなっている。
In FIG. 5, the B (blue) pixel data facing the
図5において、第1の色別プレーンデータ41で上側から境界位置46に臨むB(青)の画素データは3行目、7行目、11行目目などであり、下側から境界位置46に臨むB(青)の画素データは4行目、8行目、12行目などであり、これらが図6において展開され、5行目、13行目、21行目などと、7行目、15行目、23行目などとなっている。
In FIG. 5, B (blue) pixel data facing the
図5において、第2の色別プレーンデータ42で左側から境界位置45に臨むG(第1の緑)の画素データは2列目、6列目、10列目などであり、右側から境界位置45に臨むG(第1の緑)の画素データは3列目、7列目、11列目などであり、これらが図6において展開され、4列目、12列目、20列目などと、6列目、14列目、22列目などとなっている。
In FIG. 5, the G (first green) pixel data facing the
図5において、第2の色別プレーンデータ42で上側から境界位置46に臨むG(第1の緑)の画素データは2行目、6行目、10行目目などであり、下側から境界位置46に臨むG(第1の緑)の画素データは3行目、7行目、11行目などであり、これらが図6において展開され、3行目、12行目、20行目などと、5行目、13行目、21行目などとなっている。
In FIG. 5, the G (first green) pixel data facing the
図5において、第3の色別プレーンデータ43で左側から境界位置45に臨むg(第2の緑)の画素データは1列目、5列目、9列目などであり、右側から境界位置45に臨むg(第2の緑)の画素データは2列目、6列目、10列目などであり、これらが図6において展開され、1列目、9列目、17列目などと、3列目、11列目、19列目などとなっている。
In FIG. 5, the pixel data of g (second green) facing the
図5において、第3の色別プレーンデータ43で上側から境界位置46に臨むg(第2の緑)の画素データは1行目、5行目、9行目目などであり、下側から境界位置46に臨むg(第2の緑)の画素データは2行目、6行目、10行目などであり、これらが図6において展開され、2行目、10行目、18行目などと、4行目、12行目、20行目などとなっている。
In FIG. 5, the pixel data of g (second green) facing the
図5において、第4の色別プレーンデータ44で左側から境界位置45に臨むR(赤)の画素データは4列目、8列目、12列目などであり、右側から境界位置45に臨むR(赤)の画素データは1列目、5列目、9列目などであり、これらが図6において展開され、8列目、16列目、24列目などと、2列目、10列目、18列目などとなっている。
In FIG. 5, the R (red) pixel data facing the
図5において、第4の色別プレーンデータ44で上側から境界位置46に臨むR(赤)の画素データは4行目、8行目、12行目目などであり、下側から境界位置46に臨むR(赤)の画素データは1行目、5行目、9行目などであり、これらが図6において展開され、8行目、16行目、24行目などと、2行目、10行目、18行目などとなっている。
In FIG. 5, the R (red) pixel data facing the
圧縮処理単位ブロックの周期的な境界位置において画像が不連続となる画質劣化により、伸張処理を施したデコード後の1フレーム分の再構成RAWデータにブロックノイズが発生する場合がある。 Block noise may occur in the reconstructed RAW data for one frame after decoding that has been subjected to the decompression process due to image quality deterioration in which the image becomes discontinuous at the periodic boundary positions of the compression processing unit blocks.
図6において以上のような8画素×8画素のパターンが2次元方向に沿って繰り返し現れる。図4と図6とを比較すると、図4では境界位置に臨む画素群が水平方向と垂直方向とのいずれにおいても1直線状に整列しているのに対して、図6では境界位置に臨む画素群が水平方向と垂直方向とのいずれにおいても分散配置の状態となっている。すなわち、図4の展開ではブロックノイズが発生しやすい位置が集中配置の状態になっているのに対して、図6の展開ではブロックノイズが発生しやすい位置が分散配置の状態になっている。 In FIG. 6, the pattern of 8 pixels × 8 pixels as described above repeatedly appears along the two-dimensional direction. Comparing FIG. 4 and FIG. 6, in FIG. 4, the pixel group facing the boundary position is aligned in a straight line in both the horizontal direction and the vertical direction, whereas in FIG. 6, it faces the boundary position. The pixel group is in a dispersed arrangement state both in the horizontal direction and in the vertical direction. That is, in the development of FIG. 4, positions where block noise is likely to occur are in a concentrated arrangement state, whereas in the development of FIG. 6, positions where block noise is likely to occur are in a distributed arrangement state.
ブロックノイズの発生位置が水平方向および垂直方向に連続する図3、図4の方式の場合、その圧縮RAWデータを伸張処理すると、図7(b)のようにブロックノイズが目立つ。これに対して、ブロックノイズの発生位置が水平方向および垂直方向で分散された図5、図6の方式の場合、その圧縮RAWデータを伸張処理すると、図7(a)のようにブロックノイズはあまり目立たない。 In the case of the method of FIGS. 3 and 4 where the block noise generation positions are continuous in the horizontal direction and the vertical direction, when the compressed RAW data is decompressed, the block noise is noticeable as shown in FIG. 7B. On the other hand, in the case of the method of FIGS. 5 and 6 in which the generation positions of block noise are dispersed in the horizontal direction and the vertical direction, when the compressed RAW data is expanded, the block noise is generated as shown in FIG. Not very noticeable.
図7(b)に対応する図4のブロックノイズ発生位置を図7(b)に適用したのが図8(b)であり、図7(a)に対応する図6のブロックノイズ発生位置を図7(a)に適用したのが図8(a)である。図7(a)と図7(b)の違いを鮮明にするため、参考として図8(a),(b)を示す。図8(a),(b)では、ブロックノイズ発生位置(白い部分)を鮮明にするため、背景を黒くしてある。図8(b)の場合、ブロックノイズ発生位置が1直線状に集中し、その集中度がきわめて高いものとなっている。その結果として、図7(b)に示すように、圧縮処理単位ブロックの周期的な境界位置において画像が不連続となる画質劣化が生じ、目立った画質劣化が生じている。これに対して、図8(a)の場合、ブロックノイズ発生位置が2次元的に大きく分散し、その集中度がきわめて低いものとなっている。その結果として、図7(a)に示すように、画質劣化は生じているもののあまり目立たないものとなっている。 The block noise occurrence position in FIG. 4 corresponding to FIG. 7B is applied to FIG. 7B in FIG. 8B, and the block noise occurrence position in FIG. 6 corresponding to FIG. FIG. 8 (a) is applied to FIG. 7 (a). In order to clarify the difference between FIG. 7A and FIG. 7B, FIGS. 8A and 8B are shown as a reference. In FIGS. 8A and 8B, the background is made black in order to make the block noise occurrence position (white portion) clear. In the case of FIG. 8B, the block noise occurrence positions are concentrated in a straight line, and the degree of concentration is extremely high. As a result, as shown in FIG. 7B, image quality degradation that causes discontinuity of the image occurs at periodic boundary positions of the compression processing unit block, and noticeable image quality degradation occurs. On the other hand, in the case of FIG. 8A, the block noise occurrence positions are widely dispersed two-dimensionally, and the degree of concentration is extremely low. As a result, as shown in FIG. 7A, although the image quality is deteriorated, it is not so noticeable.
圧縮処理単位ブロックの大きさが4画素×4画素の上記の場合、4つの色別プレーンデータ41,42,43,44を順次に水平方向1画素かつ垂直方向1画素のずらしを行ったが、圧縮処理単位ブロックの大きさが8画素×8画素のJPEGの場合、4つの色別プレーンデータ41,42,43,44を順次に水平方向2画素かつ垂直方向2画素のずらしを行えばよい。
In the above case where the size of the compression processing unit block is 4 pixels × 4 pixels, the four color-
図5を見ると、これは圧縮処理単位ブロックの大きさが4画素×4画素で、4つの色別プレーンデータ41,42,43,44を順次に水平方向1画素かつ垂直方向1画素ずらしている。圧縮処理単位ブロックの大きさが8画素×8画素のJPEGであれば、垂直方向に延びる水平方向周期の境界位置45が8列置きに現れ、水平方向に延びる垂直方向周期の境界位置46が8行置きに現れることになる。ブロックノイズが発生しやすい位置をうまくずらすには、4つの色別プレーンデータ41,42,43,44を順次に水平方向2画素かつ垂直方向2画素ずつずらせばよい。こうすることにより、伸張処理後の元の大きなサイズの画像データ(ベイヤー配列)において、各色のブロックノイズの発生位置が重なり合いを防ぎ、ブロックノイズを発生しやすい位置を大きく分散配置できるので、視覚的な画像品質の劣化を抑えることができる。
As shown in FIG. 5, the size of the compression processing unit block is 4 pixels × 4 pixels, and the four color-
一般的に、圧縮処理単位ブロックの大きさがa画素×a画素の場合、4つの色別プレーンデータを順次に水平方向a/4画素かつ垂直方向a/4画素ずらせばよい。ここで、aは4の倍数であり、a=4,8,12,16…である。 Generally, when the size of the compression processing unit block is a pixel × a pixel, the four color-specific plane data may be sequentially shifted in the horizontal direction a / 4 pixel and the vertical direction a / 4 pixel. Here, a is a multiple of 4 and a = 4, 8, 12, 16,.
RAWデータ再構成手段3について、1フレーム分の画像データにおける4つの色別プレーンデータ41,42,43,44の配置関係は、上記のように、水平方向と垂直方向の両方向に並べる2次元配列のほか、図9に示すように、垂直方向に1列に並べる垂直1次元配列や水平方向に1列に並べる水平1次元配列でもよい。
Regarding the RAW data reconstruction means 3, the arrangement relationship of the four color-
4つの色別プレーンデータ41,42,43,44を並べる順番は特に規定する必要はなく、配置情報の履歴をデータの圧縮後のデータ付加情報とすることにより、任意の場所に配置することができる。[左上、右上、左下、右下]の配列で、図1のように[B,G,g,R]とするほか、[G,B,R,g]としてもよいし、[R,G,g,B]としてもよい。
The order in which the four color-
垂直方向に1列に並べる垂直1次元配列の場合に、ブロックノイズ発生位置の重なりを軽減するには、4つの色別プレーンデータ41,42,43,44の上下の隣接間に固定データ47を挿入し、かつ、圧縮処理単位ブロックの周期的な境界位置に対して各色別プレーンデータを垂直方向で相対的にずらせばよい。なお、2次元的な展開になるが、水平方向にも画素ずらしを行うとなおよい。2次元的展開とはいっても、配置領域a1,a2,a3,a4の並びとしてはあくまで垂直方向に沿って1次元的である。
In the case of a vertical one-dimensional array arranged in a line in the vertical direction, in order to reduce the overlap of block noise occurrence positions, fixed
また、水平方向に1列に並べる水平1次元配列の場合に、ブロックノイズ発生位置の重なりを軽減するには、4つの色別プレーンデータ41,42,43,44の左右の隣接間に固定データ47を挿入し、かつ、圧縮処理単位ブロックの周期的な境界位置に対して各色別プレーンデータを水平方向で相対的にずらせばよい。なお、2次元的な展開になるが、垂直方向にも画素ずらしを行うとなおよい。2次元的展開とはいっても、配置領域a1,a2,a3,a4の並びとしてはあくまで水平方向に沿って1次元的である。
In addition, in the case of a horizontal one-dimensional array arranged in a row in the horizontal direction, in order to reduce the overlap of block noise occurrence positions, fixed data between the left and right adjacent four-
[実施例]
以下、本発明における画像処理装置および画像処理方法の好ましい実施例について詳説する。
[Example]
Hereinafter, preferred embodiments of the image processing apparatus and the image processing method according to the present invention will be described in detail.
図10は本発明の実施例にかかわるRAWデータから生成した再構成RAWデータを圧縮処理する画像処理装置を搭載した撮像装置の概略構成を示すブロック図である。この撮像装置50は、色分解して撮像するタイプのイメージセンサを用いた撮像装置であって、JPEG形式による画像記録が可能であるとともに、A/D変換した直後のRAWデータの記録が可能であるように構成されている。 FIG. 10 is a block diagram showing a schematic configuration of an imaging apparatus equipped with an image processing apparatus that compresses reconstructed RAW data generated from RAW data according to an embodiment of the present invention. This image pickup apparatus 50 is an image pickup apparatus using an image sensor of a type that separates and picks up images, and can record images in the JPEG format and can record RAW data immediately after A / D conversion. It is configured to be.
図10において、50は撮像装置、60は単板式の撮像部、70は画像処理装置である。撮像装置50は、撮像部60と画像処理装置70を備えている。撮像部60は、光学レンズ61、光学ローパスフィルタ62、カラーフィルタ63、撮像素子64およびアナログフロントエンド部65を含んで構成されている。画像処理装置70は、CPU(Central Processing Unit)71、ROM(Read Only Memory)72、RAM(Random Access Memory)73、前処理部74、メモリ制御部75、画像メモリ76、画像信号処理部77、圧縮伸張処理部(エンコーダ/デコーダ)78、記録メディアインターフェース部79、表示処理部80およびモニタインターフェース部81を含んで構成されている。91は操作パネル、92は記録メディアである。以下、各部の構成を説明する。
In FIG. 10, 50 is an imaging device, 60 is a single-plate imaging unit, and 70 is an image processing device. The imaging device 50 includes an
撮像素子64は、CCD型、CMOS型などのイメージセンサであり、その受光面に多数のフォトダイオード(感光画素)が2次元的に配列されている。フォトダイオードは、光学レンズ61および光学ローパスフィルタ62を通過した被写体情報を光電変換する。光学ローパスフィルタ62は、撮像素子64の画素ピッチなどに依存するサンプリング周波数以上の高周波成分を除去する作用を有し、画像再現(信号処理)後の最終画像におけるエリアシング(aliasing)の発生を防止するようになっている。エリアシングとは、標本化周波数の1/2を超える周波数成分をもつ波形を無理に標本化しようとすると、本来存在しないはずの周波数成分が現れ、白地に黒い文字や線で描かれたようなコントラストのはっきりした画像では、文字や線がつぶれて本来の画像とは異なった模様が現れる現象である。カラーフィルタ63は、撮像素子64の1画素に対応する位置にR,G,Bの何れかの色が存在するような所定の色配列を有し、受光素子であるフォトダイオードに入射する光の色選択を行うものである。
The
図11に原色タイプのカラーフィルタ配列の例を示す。図11(a)に示したベイヤー配列は、受光素子が行方向および列方向にそれぞれ一定ピッチで正方行列的に配列されている。図11(b)に示したハニカム配列は、受光素子(フォトダイオード)の幾何学的な形状の中心が行方向および列方向に1/2ピッチずつずらして配置されている。実際の撮像素子64の結像面では、画素配列の構造が水平方向および垂直方向に周期的に繰り返される。図11(c)はベイヤー配列の場合の周波数特性である。
FIG. 11 shows an example of a primary color filter array. In the Bayer arrangement shown in FIG. 11A, the light receiving elements are arranged in a square matrix at a constant pitch in the row direction and the column direction, respectively. In the honeycomb arrangement shown in FIG. 11B, the centers of the geometric shapes of the light receiving elements (photodiodes) are arranged so as to be shifted by ½ pitch in the row direction and the column direction. On the actual imaging plane of the
光学レンズ61、光学ローパスフィルタ62、カラーフィルタ63を通過して撮像素子64の受光面に結像された被写体像は、各フォトダイオードによって入射光量に応じた量の信号電荷に変換され、図示しないドライバ回路から与えられるパルスに基づいて信号電荷に応じた電圧信号(画像信号)として順次読み出されるようになっている。撮像素子64は、シャッタゲートパルス(図示せず)のタイミングによって各フォトダイオードの電荷蓄積時間(シャッタスピード)を制御する電子シャッタ機能を有している。撮像素子64の動作(露光、読み出し等)はCPU71により制御される。
A subject image that passes through the
アナログフロントエンド部65は、撮像素子64から出力された画像信号に対して、アナログゲイン調整、CDS(相関二重サンプリング)などの処理を行った後、内蔵するA/D変換部によりデジタル信号に変換する機能を有している。アナログフロントエンド部65は、A/D変換直後のRAWデータを画像処理装置70の前処理部74に出力するようになっている。
The analog
画像処理装置70における前処理部74は、AFおよびAE制御に必要な演算を行うオート演算部を含んでいる。前処理部74は、アナログフロントエンド部65からRAWデータを受け取り、オート演算部において、焦点評価値演算やAE演算などを行い、その演算結果をCPU71に伝える。前処理部74は、圧縮RAWデータを記録するモードの場合、アナログフロントエンド部65のA/D変換によってデジタル化された4つの色成分B,G,g,Rをもつベイヤー配列のRAWデータにつき、データの基準となる黒のDCレベルを調整する。
The preprocessing
画像処理装置70におけるメモリ制御部75は、画像メモリ76と、前処理部74、画像信号処理部77、圧縮伸張処理部78、記録メディアインターフェース部79および表示処理部80との間でデータ、信号のやりとりを中継制御するものとして構成されている。メモリ制御部75にはRAWデータ再構成手段が組み込まれている。そのRAWデータ再構成手段は、4つの色別プレーンデータ41,42,43,44を生成した上で、1フレーム分の画像データとなるよう並びかえて画像メモリ76のメモリ空間上に書き込むように構成されている。メモリ制御部75におけるRAWデータ再構成手段は、再構成RAWデータを生成するに当たり、圧縮伸張処理部78における圧縮処理単位ブロックの周期的な境界位置に対して、4つの色別プレーンデータ41,42,43,44の基準位置を相対的にずらすように構成されている。
The
画像処理装置70におけるCPU71は、所定のプログラムに従って撮像装置50を統括制御する制御部であり、ROM72とRAM73との協働のもと、前処理部74、画像信号処理部77、記録メディアインターフェース部79および操作パネル91を制御するように構成されている。ROM72にはCPU71が実行するプログラムおよび制御に必要な各種データ等が格納され、RAM73はCPU71の作業用領域として利用される。CPU71は、操作パネル91からの指示信号に基づいて撮像装置50内の各回路の動作を制御するようになっている。CPU71は、操作パネル91から入力される指示信号に応じて種々の撮影条件(露出条件、ストロボ発光有無、撮影モードなど)に従い、撮像素子64などの撮像部60を制御するとともに、自動露出(AE)制御、自動焦点調節(AF)制御、オートホワイトバランス(AWB)制御、レンズ駆動制御、画像処理制御、記録メディア92の読み書き制御などを行う。
A CPU 71 in the image processing device 70 is a control unit that performs overall control of the imaging device 50 in accordance with a predetermined program. Under the cooperation of the ROM 72 and the
CPU71は、操作パネル91にあるレリーズスイッチの半押しを検知すると自動焦点調節(AF)制御を行い、レリーズスイッチの全押しを検知すると記録用の画像を取り込むための露光および読み出し制御を開始する。また、CPU71は、取り込まれた画像データを記録モードに従って記録メディア92に記録するように記録メディアインターフェース部79を制御する。また、CPU71は、必要に応じてストロボ制御回路(図示せず)にコマンドを送り、キセノン管などの閃光発光管(発光部)の発光を制御する。
The CPU 71 performs automatic focus adjustment (AF) control when detecting half-pressing of the release switch on the
画像信号処理部77は、メモリ制御部75を介して画像メモリ76をワークメモリとして利用しつつ、同時化色補間処理、ホワイトバランス調整、ガンマ補正、輝度・色差信号生成、輪郭強調、電子ズーム機能による変倍(拡大/縮小)処理、画素数の変換(リサイズ)処理などの各種処理を実施する手段として構成され、CPU71からのコマンドに従って画像信号を処理するように構成されている。
The image
圧縮伸張処理部78は、メモリ制御部75を介して画像メモリ76から画像データを読み出し、指定された圧縮形式に対応した圧縮符号化アルゴリズムに従って圧縮処理を行い、圧縮RAWデータをメモリ制御部75を介して画像メモリ73に格納するようになっている。また、圧縮伸張処理部78は、記録メディア92から読み出された圧縮RAWデータに対して伸張処理を行い、伸張によって元に戻されたRAWデータをメモリ制御部75を介して画像メモリ73に格納するようになっている。圧縮伸張処理に用いるアルゴリズムとしては、JPEG以外に、MPEGその他がある。
The compression /
記録メディアインターフェース部79は、メモリ制御部75を介して画像メモリ76から画像データを読み出し、記録のために記録メディア92へ転送するものとして構成されている。また、記録メディア92から画像データを読み出し、復号のためにメモリ制御部75へ転送するように構成されている。
The recording
操作パネル91は、撮像装置50に対してユーザが各種の指示を入力するための手段であり、例えば、撮像装置50の動作モードを選択するためモード選択スイッチ、メニュー項目の選択操作(カーソル移動操作)や再生画像のコマ送り/コマ戻し等の指示を入力する十字キー、選択項目の確定(登録)や動作の実行を指示する実行キー、選択項目など所望の対象の消去や指示のキャンセルを行うためのキャンセルキー、電源スイッチ、ズームスイッチ、レリーズスイッチなど各種の操作手段を含む。
The
画像データを保存する記録メディア92は、メモリカードで代表される半導体メモリのほか、磁気ディスク、光ディスク、光磁気ディスクなど種々の記録媒体を用いることができる。また、リムーバブルメディアに限らず、撮像装置50に内蔵された記録媒体(内部メモリ)であってもよい。
As the
次に、上記構成の本実施例の撮像装置50の動作を説明する。 Next, the operation of the imaging apparatus 50 of the present embodiment having the above-described configuration will be described.
撮像部60における光学レンズ61、光学ローパスフィルタ62、カラーフィルタ63を通過して撮像素子64の受光面に結像された被写体像は、各フォトダイオードによって入射光量に応じた量の信号電荷に変換され、図示しないドライバ回路から与えられるパルスに基づいて信号電荷に応じた電圧信号(画像信号)として順次読み出され、4つの色成分B,G,g,Rのベイヤー配列の画像アナログ信号がアナログフロントエンド部65に送られる。アナログフロントエンド部65におけるA/D変換部によって、撮像素子64からの画像アナログ信号がデジタル化され、ベイヤー配列の画像データが前処理部74に送られる。
The subject image that has passed through the
圧縮RAWデータを記録するモードの場合、前処理部74に入力されたベイヤー配列の画像データはデータ基準となる黒のDCレベルが調整された後、RAWデータとしてメモリ制御部75に送られる。メモリ制御部75では、組み込まれているRAWデータ再構成手段のデータ並び替え書き込み制御により4つの色別プレーンデータ41,42,43,44を生成し、さらに、1フレーム分の画像データとなるよう配置して画像メモリ76のメモリ空間上に書き込む。これが圧縮処理単位の再構成RAWデータである。この再構成RAWデータを生成するに当たり、圧縮伸張処理部78における圧縮処理単位ブロックの周期的な境界位置に対して、4つの色別プレーンデータ41,42,43,44の基準位置を相対的にずらすようにしている。それは、以降において、記録メディア92から圧縮RAWデータを読み出し、伸張処理した上でモニタに表示したときに、各色のブロックノイズの発生位置が重なり合うのを未然に回避するためである。
In the mode for recording the compressed RAW data, the Bayer array image data input to the
次に、画像メモリ76に書き込まれた再構成RAWデータは、メモリ制御部75を介して圧縮伸張処理部78に1つのコンポーネントデータとして入力される。並行して、圧縮伸張処理部78の他のコンポーネントデータの入力端子に輝度成分不変の固定データが入力され、圧縮処理が行われる。処理後の圧縮RAWデータは再度メモリ制御部75を介して画像メモリ76に書き込まれる。圧縮処理単位である1つのファイルには4つの色別プレーンデータ41,42,43,44が存在しており、それらを一括して一度に圧縮処理する。
Next, the reconstructed RAW data written in the
次に、画像メモリ76内に1つの圧縮RAWデータとして書き込まれたデータに対して、CPU71は、JPEGのファイル形式の画像ファイルとしてヘッダファイルを付加した後、圧縮RAWデータのフォーマット情報、撮影時の状況など画像の検索、認識などに役立つ情報を取得して画像ファイルヘッダに付加し、メモリ制御部75と記録メディアインターフェース部79を介して記録メディア92に記録する。
Next, the CPU 71 adds a header file as an image file in the JPEG file format to the data written as one compressed RAW data in the
撮影し記録メディア92に記録した画像を撮像装置50で再生確認する際、圧縮された上記ファイルを記録メディア92から読み出す。すなわち、伸張操作パネル91において再生の指示を与えると、CPU71は圧縮伸張処理部78と記録メディアインターフェース部79を制御する。記録メディア92から読み出された圧縮RAWデータは記録メディアインターフェース部79およびメモリ制御部75を介して画像メモリ73に書き込まれる。画像メモリ73に書き込まれた圧縮RAWデータはメモリ制御部75を介して圧縮伸張処理部78に転送される。圧縮伸張処理部78における伸張処理部は、圧縮RAWデータを伸張処理する。
When the imaging device 50 confirms playback of an image that has been shot and recorded on the
本実施例によれば、4つの色別プレーンデータ41,42,43,44を圧縮処理単位である1つのファイル上に配置して構成した再構成RAWデータを圧縮処理の対象としているので、4つの色別プレーンデータ41,42,43,44を一括して一度に圧縮処理することができ、従来技術の場合のように4つの色別プレーンデータ41,42,43,44を個別に順次切り替えながら繰り返して圧縮処理する場合に比べて、圧縮効率が大幅に向上する。
According to this embodiment, the reconstructed RAW data configured by arranging the four color-
この圧縮効率の大幅な向上は、撮像装置50が連写撮影機能を有している場合に有利に作用し、近年のイメージセンサの高画素化に対しての圧縮RAWデータ記録モードでの高速連写に支障をきたす(連写記録の動作中に一旦停止)という従来技術での問題をクリアすることができる。 This significant improvement in compression efficiency is advantageous when the imaging device 50 has a continuous shooting function, and provides high-speed continuous recording in the compressed RAW data recording mode in response to the recent increase in the number of pixels in an image sensor. It is possible to clear the problem in the prior art that hinders copying (pauses during the continuous shooting operation).
また、圧縮処理手段5(圧縮伸張処理部78)としては並列動作する複数の圧縮処理手段を用いる必要がなく、単一の圧縮処理手段ですむため、回路規模の増大を招かないですみ、あるいは、CPUの処理能力を特別に増強する必要もない。図12(a)に示すように、コンポーネントデータの入力端子として輝度信号(Y)と色差信号(Cr/Cb)の入力端子を備えた一般的な圧縮処理手段を用いることが可能であるので、資源の有効活用ができる。 Further, the compression processing means 5 (compression / decompression processing section 78) does not need to use a plurality of compression processing means operating in parallel, and can be a single compression processing means, so that the circuit scale does not increase, or There is no need to specially increase the processing capacity of the CPU. As shown in FIG. 12 (a), it is possible to use a general compression processing means having an input terminal for luminance signal (Y) and color difference signal (Cr / Cb) as an input terminal for component data. Effective use of resources.
資源の有効利用について補足する。一般的なJPEG方式の圧縮処理手段5(圧縮処理プロセッサ、圧縮伸張処理プロセッサ)は、図12(a)に示すように、コンポーネントデータの入力端子として輝度信号(Y)の入力端子と色差信号(Cr、Cb)の入力端子をもっている。このうち輝度信号(Y)の入力端子にRAWデータ再構成手段4(メモリ制御部75)で生成された再構成RAWデータを入力し、輝度変化のない固定データを色差信号(Cr、Cb)の入力端子から入力するように構成すれば、一般的なJPEG方式の圧縮処理手段(プロセッサ)を援用することが可能となる。 Supplementary information on effective use of resources. As shown in FIG. 12A, a general JPEG compression processing means 5 (compression processing processor, compression / decompression processing processor) has an input terminal for a luminance signal (Y) and a color difference signal (input) as component data input terminals. Cr, Cb) input terminals. Of these, the reconstructed RAW data generated by the RAW data reconstructing means 4 (memory control unit 75) is input to the input terminal of the luminance signal (Y), and the fixed data having no luminance change is input to the color difference signals (Cr, Cb). If it is configured to input from the input terminal, a general JPEG compression processing means (processor) can be used.
本実施例によれば、記録メディア92に記録するのは圧縮RAWデータの形態であるので、前処理部74や画像信号処理部77の信号処理の影響がなく、画像品質を高く保つことができる。また、JPEGによる効率的な非可逆圧縮であるので、生成される圧縮RAWデータはファイルサイズが小さく、記録メディア92の利用効率が改善される。この記録メディア92の利用効率が高いことと、前述の色別プレーンデータを圧縮処理単位である1つのファイル上に配置した再構成RAWデータを圧縮処理対象とするがゆえに圧縮効率が大幅に向上していることとが相乗すると、高速連写がさらに有利になる。
According to the present embodiment, since the compressed RAW data is recorded on the
メモリ制御部75におけるRAWデータ再構成手段は、4つの色別プレーンデータ41,42,43,44を配置して圧縮処理単位の再構成RAWデータを生成するに際して、圧縮伸張処理部78における圧縮処理単位ブロックの周期的な境界位置に対し色別プレーンデータの基準位置を相対的にずらすようにしている。したがって、記録メディア92から圧縮RAWデータを読み出し、圧縮伸張処理部78で伸張処理した上で表示処理部80およびモニタインターフェース部81を介してモニタに表示したときに、各色のブロックノイズの発生位置の重なり合いを大幅に緩和することができる。したがって、ブロックノイズの発生を抑制でき、圧縮処理単位ブロックの境界位置で各色のブロックノイズの発生位置が重なり合う特有の画質劣化を低減することができる。
The RAW data reconstructing means in the
上記説明では、画像メモリ76内に1フレーム分の画像データとして再配置して書き込まれたRAWデータはメモリ制御部75を介して圧縮伸張処理部78に1つのコンポーネントデータとして入力し、他のコンポーネント入力データは輝度変化のない固定データとして圧縮処理を行うとしている。しかし、これに代えて、1回の圧縮処理を有効活用して新規な画像圧縮ファイルを生成する目的で、他のコンポーネント入力には別の画像データを入力して処理を実施することも可能である。別の画像データとしては、例えば表示用に縮小リサイズされたスモールYCrCbデータやスモールRGBデータなどがある。
In the above description, the RAW data rearranged and written as image data for one frame in the
例えば図12(b)に示すように、圧縮処理手段5における輝度信号(Y)の入力端子に1フレーム分の再構成RAWデータ4を入力するとともに、色差信号(Cr/Cb)の入力端子に表示用に縮小リサイズされたY,Cr,Cbで構成される画像のスモールYCrCbデータ6やR,G,Bで構成される画像のスモールRGBデータ7などを入力する。そして、圧縮処理手段5によって、これら再構成RAWデータ4やスモールYCrCbデータ6やスモールRGBデータ7などを同時的に圧縮処理する。
For example, as shown in FIG. 12B, the reconstructed
撮影した画像を撮像装置50で再生確認する際、圧縮された上記ファイルを記録メディア92から読み出すが、このとき、圧縮伸張処理部75では画像信号処理は行わすに、スモールYCrCb6またはスモールRGB7を表示処理部80に直接転送して、再生プレビューすることも可能である。
When the captured image is confirmed to be reproduced by the imaging device 50, the compressed file is read from the
なお、上記の実施の形態においては、静止画像の圧縮符号化アルゴリズムとしてJPEGを例に説明したが、入力データのビット数を8ビット超の12ビットまで対応できるJPEG2000やJPEG XRを用いてもよい。これらの圧縮符号化アルゴリズムでは、JPEGなどに比べ圧縮に伴う画質劣化が少なく、特に高圧縮率での画質劣化が少ない。また、同じアルゴリズムで可逆圧縮と非可逆圧縮が可能である。符号化データの符号列削除処理(ポスト量子化)により、JPEGなどと違い再圧縮を行うことなく、圧縮率を調整できる等々の長所を有する。 In the above embodiment, JPEG has been described as an example of the compression encoding algorithm for still images. However, JPEG2000 or JPEG XR capable of supporting the number of bits of input data up to 12 bits exceeding 8 bits may be used. . In these compression encoding algorithms, image quality deterioration due to compression is small compared to JPEG and the like, and image quality deterioration is particularly small at a high compression rate. In addition, lossless compression and lossy compression are possible with the same algorithm. Unlike the JPEG method, the code string deletion process (post quantization) of the encoded data has an advantage that the compression rate can be adjusted without performing recompression.
なお、4つの色別プレーンデータで再構成された1フレーム分の再構成RAWデータが作成されてあらかじめ画像メモリ76に蓄積されている場合には、再構成RAWデータを画像メモリ76より読み出して圧縮伸張処理部78に入力するが、再構成RAWデータがあらかじめ作成されていない場合には、メモリ制御の読み出し工程で1フレーム分の再構成RAWデータの作成処理を行うことになる。いずれの態様も本発明に包含される。詳細には、1フレーム分の再構成RAWデータの作成処理は、RAWデータを画像メモリ76に書き込むときの並び替え処理として説明したが、画像メモリ73への書き込み処理については、オリジナルのベイヤー配列のまま画像メモリ73に取り込み、圧縮処理の際にメモリ制御部75を介して読み出すときに同時に行うようにしてもよく、そのいずれの態様も本発明に包含される。
If reconstructed RAW data for one frame reconstructed with four color-specific plane data is created and stored in the
以上に述べたように、RAWデータを4つの色別プレーンデータに分割して1フレーム分の再構成RAWデータに再配置して圧縮するため、可逆圧縮であっても非可逆圧縮であっても、撮像装置内部の信号処理の影響のないRAWデータを1回の処理で効率良く圧縮して記録することができる。可逆圧縮の場合は、記録された符号化データを圧縮伸張処理部78または外部のデコーダで復号伸長することにより、元のRAWデータを完全に再生することができる。
As described above, since RAW data is divided into four color plane data and rearranged into one frame of reconstructed RAW data for compression, it is possible to use either lossless compression or lossy compression. Thus, it is possible to efficiently compress and record the RAW data that is not affected by the signal processing inside the imaging apparatus in a single process. In the case of lossless compression, the original RAW data can be completely reproduced by decoding and decompressing the recorded encoded data by the compression /
なお、上記の実施の形態では、色分解フィルタを持つイメージセンサを例に説明したが、同様の色分解をカラーフィルタ以外の手段によって行うタイプのイメージセンサを用いる場合にも、本発明を適用できることは当然である。 In the above embodiment, an image sensor having a color separation filter has been described as an example. However, the present invention can also be applied to a case where an image sensor of a type that performs similar color separation by means other than a color filter is used. Is natural.
なお、撮像装置50によって記録された圧縮RAWデータは、撮像装置本体以外に、専用の画像処理装置あるいはパソコンなどによって再現(現像)処理され得る。具体的には、圧縮RAWデータに付加された各色テンプレートの配置情報も用いて、伸張後の複数の色領域に再配置されたRAWデータからオリジナルのRAWデータ配列に再度並び替えてもよいし、再現(現像)処理の際にメモリ制御部75を介して読み出すときにオリジナル配列となるように読み出すことも可能である。
Note that the compressed RAW data recorded by the imaging device 50 can be reproduced (developed) by a dedicated image processing device or a personal computer in addition to the imaging device main body. Specifically, using the arrangement information of each color template added to the compressed RAW data, the RAW data rearranged in the plurality of color regions after expansion may be rearranged again into the original RAW data array, When the reproduction (development) process is performed via the
また本発明を実施する際の処理の手順、それにかかわる手段の機能をパソコンやマイクロコンピュータなどのコンピュータ上でプログラムにより実現することも可能である。また、画像処理はその処理の一部または全部を専用のハードウェア(信号処理回路)態様に限らず、一部分をプログラムで実現してもよい。そのためのプログラムと、それが記録された各種の記録(記憶)媒体も本発明に包含される。また、そのような手順による処理の方法も本発明に包含されることは当然である。 It is also possible to realize the processing procedure when implementing the present invention and the functions of the means related thereto by a program on a computer such as a personal computer or a microcomputer. Further, part or all of the image processing is not limited to a dedicated hardware (signal processing circuit) mode, and a part of the processing may be realized by a program. A program therefor and various recording (storage) media on which the program is recorded are also included in the present invention. Further, it is natural that the processing method according to such a procedure is also included in the present invention.
なお、カラーフィルタ63の配列構造は、図11に示した例に限定されず、RGBストライプなど様々な配列構造が可能である。また、本例では、原色フィルタを用いているが、本発明の実施に際しては原色フィルタに限定されず、イエロー(Y)、マゼンタ(M)、シアン(C)、グリーン(G)からなる補色フィルタを用いたり、原色と補色の任意の組み合わせやホワイト(W)を用いることも可能である。
Note that the arrangement structure of the
また、CMOS型に代表される撮像素子64においては、高速読み出しを実現する手段として、撮像素子64内にノイズ処理部とA/D変換部を実装し、撮像素子から直接デジタル信号として出力する形態もある。
In the
本発明は、デジタルスチルカメラ、デジタルビデオカメラ、独立したイメージスキャナ、複写機などに組み込まれたイメージスキャナなど、色分解して撮像するタイプのイメージセンサを搭載した撮像装置において、レタッチ処理などユーザによるデータ加工性の高いRAWデータを圧縮状態で取得するに際し、複数種類の色別プレーンデータを圧縮処理単位である1つのファイル上に配置して構成した再構成RAWデータを圧縮処理の対象とし、1回の圧縮処理で再構成RAWデータを取得するので、回路規模の増大やCPU処理能力の増強を招くことなく圧縮効率を大幅に向上するための技術として有用である。 The present invention relates to an image pickup apparatus equipped with an image sensor of a type that performs color separation such as a digital still camera, a digital video camera, an independent image scanner, an image scanner incorporated in a copying machine, etc. When acquiring RAW data with high data processability in a compressed state, reconstructed RAW data configured by arranging a plurality of types of color-specific plane data on a single file as a compression processing unit is targeted for compression processing. Since the reconstructed RAW data is acquired by one compression process, it is useful as a technique for greatly improving the compression efficiency without causing an increase in circuit scale or CPU processing capacity.
1:ベイヤー配列のカラーフィルタをもつ撮像部(イメージセンサ)
2:ベイヤー配列のRAWデータ
3:RAWデータ再構成手段
4:4つの色別プレーンデータで構成される1フレーム分の再構成RAWデータ
5:圧縮処理手段
6:スモールYCrCbデータ
7:スモールRGBデータ
a1:色成分B(青)に対応する第1の配置領域
a2:色成分G(第1の緑)に対応する第2の配置領域
a3:色成分g(第2の緑)に対応する第3の配置領域
a4:色成分R(赤)に対応する第4の配置領域
41:色成分B(青)に対応する第1の配置領域に第1の色別プレーンデータ
42:色成分G(第1の緑)に対応する第2の配置領域に第2の色別プレーンデータ
43:色成分g(第2の緑)に対応する第3の配置領域に第3の色別プレーンデータ
44:色成分R(赤)に対応する第4の配置領域に第4の色別プレーンデータ
45:圧縮処理単位ブロックの水平方向での周期的な境界位置
46:圧縮処理単位ブロックの垂直方向での周期的な境界位置
47:輝度変化のない固定データ
50:撮像装置
61:光学レンズ
62:光学ローパスフィルタ
63:カラーフィルタ
64:撮像素子
65:アナログフロントエンド部
70:画像処理装置
71:CPU
72:ROM
73:RAM
74:前処理部
75:メモリ制御部(RAWデータ再構成手段)
76:画像メモリ
77:画像信号処理部
78:圧縮伸張処理部(圧縮処理手段)
79:記録メディアインターフェース部
80:表示処理部
81:モニタインターフェース部
91:操作パネル
92:記録メディア
1: Image pickup unit with Bayer color filter (image sensor)
2: RAW data in Bayer array 3: RAW data reconstruction means 4: Reconstructed RAW data for one frame composed of four color-specific plane data 5: Compression processing means 6: Small YCrCb data 7: Small RGB data a1 : First arrangement area corresponding to color component B (blue) a2: second arrangement area corresponding to color component G (first green) a3: third corresponding to color component g (second green) Arrangement area a4: fourth arrangement area corresponding to color component R (red) 41: first color-specific plane data 42: color component G (first) in the first arrangement area corresponding to color component B (blue) 2nd color-specific plane data 43 in the second arrangement area corresponding to the first green) 43: third color-specific plane data 44 in the third arrangement area corresponding to the color component g (second green) 44: color The fourth arrangement region corresponding to the component R (red) Color-specific plane data 45: Periodic boundary position of the compression processing unit block in the horizontal direction 46: Periodic boundary position of the compression processing unit block in the vertical direction 47: Fixed data without luminance change 50: Imaging device 61: Optical lens 62: Optical low-pass filter 63: Color filter 64: Image sensor 65: Analog front end unit 70: Image processing device 71: CPU
72: ROM
73: RAM
74: Pre-processing unit 75: Memory control unit (RAW data reconstruction means)
76: Image memory 77: Image signal processing unit 78: Compression / decompression processing unit (compression processing means)
79: Recording media interface unit 80: Display processing unit 81: Monitor interface unit 91: Operation panel 92: Recording medium
Claims (15)
前記RAWデータを入力し、前記RAWデータを前記色成分毎に分解し再集合して複数の色別プレーンデータを生成し、さらに色成分毎に区画された複数の配置領域に前記複数の色別プレーンデータを配置して圧縮処理単位である1つのファイルとしてまとめた再構成RAWデータを生成するRAWデータ再構成手段と、
前記RAWデータ再構成手段によって生成された前記圧縮処理単位の再構成RAWデータを入力し圧縮処理する圧縮処理手段とを備えた画像処理装置。 An image processing apparatus that compresses RAW data in a data format in which a plurality of types of color components constituting a color image are repeatedly arranged on a pixel array according to a certain rule,
The RAW data is input, the RAW data is decomposed and reassembled for each color component to generate a plurality of color-specific plane data, and the plurality of color-specific data are arranged in a plurality of arrangement areas divided for each color component. RAW data restructuring means for generating reconstructed RAW data arranged as a single file as a compression processing unit by arranging plain data;
An image processing apparatus comprising: compression processing means for inputting and compressing the reconstructed RAW data of the compression processing unit generated by the RAW data reconstruction means.
前記RAWデータを入力し、前記RAWデータを前記色成分毎に分解し再集合して複数の色別プレーンデータを生成し、さらに色成分毎に区画された複数の配置領域に前記複数の色別プレーンデータを配置して圧縮処理単位である1つのファイルとしてまとめた再構成RAWデータを生成する工程と、
前記再構成RAWデータを生成する工程によって生成された前記圧縮処理単位の再構成RAWデータを入力し圧縮処理する工程とを備えた画像処理方法。 An image processing method for compressing RAW data in a data format in which a plurality of types of color components constituting a color image are repeatedly arranged on a pixel array according to a certain rule,
The RAW data is input, the RAW data is decomposed and reassembled for each color component to generate a plurality of color-specific plane data, and the plurality of color-specific data are arranged in a plurality of arrangement areas divided for each color component. A step of generating reconstructed RAW data arranged as a single file as a compression processing unit by arranging plain data;
An image processing method comprising: a step of inputting and compressing the reconstructed RAW data of the compression processing unit generated by the step of generating the reconstructed RAW data.
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2009171953A JP2011029809A (en) | 2009-07-23 | 2009-07-23 | Image processing device, image processing method, and image capturing device |
| PCT/JP2010/004388 WO2011010431A1 (en) | 2009-07-23 | 2010-07-05 | Image processing device, image processing method, and image capturing device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2009171953A JP2011029809A (en) | 2009-07-23 | 2009-07-23 | Image processing device, image processing method, and image capturing device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JP2011029809A true JP2011029809A (en) | 2011-02-10 |
Family
ID=43498913
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2009171953A Pending JP2011029809A (en) | 2009-07-23 | 2009-07-23 | Image processing device, image processing method, and image capturing device |
Country Status (2)
| Country | Link |
|---|---|
| JP (1) | JP2011029809A (en) |
| WO (1) | WO2011010431A1 (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105659610A (en) * | 2013-11-01 | 2016-06-08 | 索尼公司 | Image processing device and method |
| CN105659609A (en) * | 2013-11-01 | 2016-06-08 | 索尼公司 | Image processing device and method |
| US9854255B2 (en) | 2014-03-31 | 2017-12-26 | Brother Kogyo Kabushiki Kaisha | Electronic apparatus, and method and computer-readable medium for the same |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113705553B (en) * | 2020-05-20 | 2024-01-26 | 深圳清华大学研究院 | Visual task execution method, device, electronic equipment, storage medium and system |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP4451181B2 (en) * | 2004-03-26 | 2010-04-14 | オリンパス株式会社 | Image compression method and image compression apparatus |
| JP2006173931A (en) * | 2004-12-14 | 2006-06-29 | Canon Inc | Image processing apparatus, control method therefor, computer program, and computer-readable storage medium |
-
2009
- 2009-07-23 JP JP2009171953A patent/JP2011029809A/en active Pending
-
2010
- 2010-07-05 WO PCT/JP2010/004388 patent/WO2011010431A1/en not_active Ceased
Cited By (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105659610A (en) * | 2013-11-01 | 2016-06-08 | 索尼公司 | Image processing device and method |
| CN105659609A (en) * | 2013-11-01 | 2016-06-08 | 索尼公司 | Image processing device and method |
| US20160261889A1 (en) * | 2013-11-01 | 2016-09-08 | Sony Corporation | Image processing apparatus and method |
| US20160277771A1 (en) * | 2013-11-01 | 2016-09-22 | Sony Corporation | Image processing apparatus and method |
| US10356442B2 (en) | 2013-11-01 | 2019-07-16 | Sony Corporation | Image processing apparatus and method |
| US10397614B2 (en) | 2013-11-01 | 2019-08-27 | Sony Corporation | Image processing apparatus and method |
| US9854255B2 (en) | 2014-03-31 | 2017-12-26 | Brother Kogyo Kabushiki Kaisha | Electronic apparatus, and method and computer-readable medium for the same |
Also Published As
| Publication number | Publication date |
|---|---|
| WO2011010431A1 (en) | 2011-01-27 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP5845464B2 (en) | Image processing apparatus, image processing method, and digital camera | |
| JP5280448B2 (en) | Image processing apparatus, image processing method, image processing program, and semiconductor integrated circuit | |
| JP5853166B2 (en) | Image processing apparatus, image processing method, and digital camera | |
| US20050117029A1 (en) | Image capture apparatus and image capture method in which an image is processed by a plurality of image processing devices | |
| CN104782132B (en) | Dynamic image compression device, dynamic image decoding device, image compression device, image decoding device, photographing device and method | |
| KR101046012B1 (en) | Dynamic image processing device, dynamic image processing method, and computer-readable recording medium having recorded dynamic image processing program | |
| JP5240194B2 (en) | Signal processing method and signal processing apparatus | |
| JPWO2019142821A1 (en) | Encoding device, decoding device, coding method, decoding method, coding program, and decoding program | |
| KR20080012207A (en) | Image signal processing device, image signal processing method | |
| JP4497945B2 (en) | Imaging device | |
| WO2012147523A1 (en) | Imaging device and image generation method | |
| JP2011029809A (en) | Image processing device, image processing method, and image capturing device | |
| JP6702792B2 (en) | Image processing apparatus and control method thereof | |
| JP7289642B2 (en) | IMAGE PROCESSING DEVICE, CONTROL METHOD FOR IMAGE PROCESSING DEVICE, AND PROGRAM | |
| JP6890993B2 (en) | Image coding device, image decoding device, its control method, and control program | |
| JP2021078008A (en) | Image processing apparatus, image processing method and imaging apparatus | |
| JP6152642B2 (en) | Moving picture compression apparatus, moving picture decoding apparatus, and program | |
| JP5974691B2 (en) | MOVING IMAGE COMPRESSION DEVICE, IMAGING DEVICE, AND PROGRAM | |
| JP2004320301A (en) | Image compression apparatus and image processing system | |
| JP2000244744A (en) | Image data compression method and image data management method | |
| JPH1169377A (en) | Image information encoding device and device applying the same | |
| JP2018032909A (en) | Image encoding apparatus, control method therefor, imaging apparatus, and program | |
| JP2019022225A (en) | Image compression apparatus and program | |
| JP2006340300A (en) | Signal processing method, signal processing apparatus, signal processing program and information recording medium | |
| JPH1070735A (en) | Digital still camera |