JP2004320258A - Image processing apparatus - Google Patents

Image processing apparatus Download PDF

Info

Publication number
JP2004320258A
JP2004320258A JP2003109558A JP2003109558A JP2004320258A JP 2004320258 A JP2004320258 A JP 2004320258A JP 2003109558 A JP2003109558 A JP 2003109558A JP 2003109558 A JP2003109558 A JP 2003109558A JP 2004320258 A JP2004320258 A JP 2004320258A
Authority
JP
Japan
Prior art keywords
pixels
pixel
unit
image
data value
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
Application number
JP2003109558A
Other languages
Japanese (ja)
Inventor
Kenichi Kamata
謙一 鎌田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Murata Machinery Ltd
Original Assignee
Murata Machinery Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Murata Machinery Ltd filed Critical Murata Machinery Ltd
Priority to JP2003109558A priority Critical patent/JP2004320258A/en
Publication of JP2004320258A publication Critical patent/JP2004320258A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image processing apparatus for carrying out the reduction processing that prevents white / black stripes caused by the connected white pixels or black pixels so as to reduce deterioration in the image quality. <P>SOLUTION: An image processing section 22 stores the number of pixels included in each unit for thinning pixels whose pixel is 1, calculated in a control section 10 on the basis of a set reduction rate, to a register 30 and particularizes the pixel data to be thinned among image data sequentially acquired from a CODEC 18 and stored in a memory 32 on the basis of the number of pixels. Further, a comparison circuit 31 compares the particularized pixel data with the pixel data adjacent to the particularized pixel data and a resolution conversion section 33 thinnes the particularized pixel data when the result of the comparison indicates coincidence. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

【0001】
【発明の属する技術分野】
本発明は、複数の画素がマトリクス状に配列された画像から、受け付けた縮小率に基づいて画素を間引き、前記画像を縮小する画像処理装置に関するものである。
【0002】
【従来の技術】
画像処理装置は、一般に、複数画素を主走査方向及び副走査方向に配置することにより構成される画像に対して、適宜の画素を間引くことにより縮小処理を行ない、また、隣合う画素間に適宜補間画素を挿入することにより拡大処理を行なっている。
しかし、ディザ処理等を行なうことにより白黒の交番で中間調を形成する擬似中間調の画像に、上述したような縮小処理を行なった場合、ディザのパターンが崩れ、元の画像では黒画素を隔てて配置されていた白画素同士、又は白画素を隔てて配置されていた黒画素同士の連結が生じて白筋又は黒筋が発生し、画質が劣化することがある。このような白筋又は黒筋の発生は、擬似中間調画像の場合に顕著である。
【0003】
そこで、例えば、画像を縮小する場合に、間引かれる各画素が主走査方向又は副走査方向に連続しないように、主走査方向又は副走査方向の夫々のライン毎に、間引くべき画素の位置を変更し、また、間引くべき画素をランダムに決定することにより、画質の劣化を防止する画像処理装置が提案されている(例えば、特許文献1参照)。
このような画像処理装置を用いることにより、連続的な白画素又は黒画素の欠落のみならず、白画素又は黒画素の連結による白筋又は黒筋の発生も防止することができる。
【0004】
【特許文献1】
特開平11−120341号公報
【0005】
【発明が解決しようとする課題】
しかし、上述した特許文献1に示す画像処理装置は、処理対象となる画像における各画素のデータ値に応じて間引くべき画素を決定するものではないため、全ての画像について、最適な間引き画素を決定できるものとはいえず、画像によっては、白画素又は黒画素の連結による白筋又は黒筋の発生を確実に防止することができない場合があるという問題があった。
【0006】
本発明はかかる事情に鑑みてなされたものであり、受け付けた縮小率に基づく数の画素を1単位とし、各単位毎に間引く画素を特定し、特定した画素のデータ値が、該画素に隣合う少なくとも1つの画素のデータ値と同一である場合に、特定した前記画素を間引くことにより、白画素又は黒画素の連結の発生を防止し、画質の劣化を低減する縮小処理を行なう画像処理装置を提供することを目的とする。
【0007】
本発明の他の目的は、間引くべく特定された画素のデータ値が、該画素に隣合う画素のデータ値と同一でない場合に、特定された当該画素の近傍の、データ値が同一で隣合う複数の画素のうちの1つを間引くことにより、特定された前記画素を間引いた場合に発生するおそれのある白画素又は黒画素の連結を防止することができる画像処理装置を提供することにある。
【0008】
本発明の更に他の目的は、データ値が同一で隣合う複数の画素を、受け付けた縮小率に基づき算出した数の画素からなる各単位内で検出することにより、間引かれる画素の位置に範囲を設けることができ、間引かれる画素の位置の偏りを防止することができる画像処理装置を提供することにある。
【0009】
本発明の更に他の目的は、データ値が同一で隣合う複数の画素を検出できない場合に、間引くべく特定された画素を間引くことにより、間引き処理による縮小処理を確実に行なうことができるとともに、間引かれる画素の位置の偏りを防止することができる画像処理装置を提供することにある。
【0010】
【課題を解決するための手段】
第1発明に係る画像処理装置は、複数の画素がマトリクス状に配列された画像から、受け付けた縮小率に基づいて、該縮小率に応じた数の画素を1単位として各単位毎に1の画素を間引き、前記画像を縮小する画像処理装置において、各単位毎に間引く画素を特定する特定手段と、該特定手段が特定した画素のデータ値が、該画素に隣合う少なくとも1つの画素のデータ値と同一であるか否かを判断する判断手段と、該判断手段が同一であると判断した場合に、前記特定手段が特定した画素を間引く間引手段とを備えることを特徴とする。
【0011】
第1発明による場合は、受け付けた縮小率に基づき、1の画素を間引く各単位に含まれる画素数を算出し、算出した数の画素を1単位とし、各単位毎に間引く画素を特定する。また、特定した画素のデータ値が、該画素に隣合う少なくとも1つの画素のデータ値と同一であるか否かを判断して、同一である場合に、特定した前記画素を間引くことにより、白画素又は黒画素の連結の発生を防止し、画質の劣化を低減する縮小処理を行なうことができる。
【0012】
第2発明に係る画像処理装置は、前記判断手段が同一でないと判断した場合に、前記特定手段が特定した画素の近傍から、データ値が同一で隣合う複数の画素を検出する検出手段を備え、前記間引手段は、前記検出手段が検出した画素のうちの1つを間引くように構成してあることを特徴とする。
【0013】
第2発明による場合は、間引くべく特定された画素のデータ値が、該画素に隣合う画素のデータ値と同一でない場合に、特定された当該画素の近傍から、データ値が同一で隣合う複数の画素を検出し、検出した画素のうちの1つを間引くことにより、特定された前記画素を間引いた場合に発生するおそれのある白画素又は黒画素の連結を防止することができ、この連結による画質の劣化を低減することができる。
【0014】
第3発明に係る画像処理装置は、前記検出手段は、各単位内で、データ値が同一で隣合う複数の画素を検出するように構成してあることを特徴とする。
【0015】
第3発明による場合は、データ値が同一で隣合う複数の画素を、受け付けた縮小率に基づき算出した数の画素からなる各単位内で検出することにより、間引かれる画素の位置に範囲を設けることができ、間引かれる画素の位置の偏りを防止することができ、また、上述した検出処理の際限のない繰り返しを防止することによる検出処理負担を軽減することができる。
【0016】
第4発明に係る画像処理装置は、前記間引手段は、前記検出手段によりデータ値が同一で隣合う複数の画素を検出できない場合に、前記特定手段が特定した画素を間引くように構成してあることを特徴とする。
【0017】
第4発明による場合は、上述したように、データ値が同一で隣合う複数の画素を検出できない場合に、間引くべく特定された画素を間引くことにより、間引き処理による縮小処理を確実に行なうことができるとともに、間引かれる画素の位置の偏りを防止することができる。
【0018】
【発明の実施の形態】
以下に、本発明に係る画像処理装置を、複合機による実施の形態に基づいて詳述する。図1は本発明に係る複合機の構成例を示すブロック図であり、図中1は複合機を示している。
この複合機1は、制御部10、ROM11、RAM12、NCU(Network Control Unit)13、モデム14、読取部15、表示部16、操作部17、CODEC18、符号メモリ19、画像メモリ20、記録部21、画像処理部22等を備えており、夫々はバス23を介して相互に接続されている。
【0019】
制御部10は、具体的にはCPU(Central Processing Unit)又はMPU(Micro Processor Unit)等で構成されており、バス23を介して上述したようなハードウェア各部を制御すると共に、ROM11に格納されたコンピュータプログラムに従って、種々のソフトウェア的機能を実現する。
ROM11は、本発明の複合機1の動作に必要な種々のコンピュータプログラム等を予め格納している。
【0020】
RAM12は、SRAM又はフラッシュメモリ等で構成され、制御部10によるコンピュータプログラムの実行時に発生するデータ、及び取得した変倍率を一時的に記憶する。尚、RAM12にフラッシュメモリを使用した場合には、停電,複合機1の移動等のために電源が遮断された場合であっても、記憶内容が失われることはない。
モデム14は、ファクシミリ通信が可能なファックスモデムで構成されており、NCU13と直接的にも接続されている。NCU13は、公衆電話回線網Lと接続されており、必要に応じてモデム14を公衆電話回線網Lと接続し、公衆電話回線網Lを介して他のファクシミリ装置との間でのファクシミリ通信を可能としている。
【0021】
表示部16は、液晶ディスプレイ(LCD)等で構成されており、複合機1の動作状況、ユーザへ報知すべきデータ、及び操作部17から入力された文字等を表示する。
操作部17は、複合機1を操作するために必要な各種のファンクションキー、ユーザにより変倍率を入力するためのキー等を備えている。尚、表示部16をタッチパネル方式のものとすることにより、操作部17の各種のキーのうちの一部又は全部を代用することも可能である。
【0022】
読取部15は、例えば、CCD(Charge Coupled Device)を利用したスキャナにより原稿を読み取り、読み取った画像データをCODEC18に入力する。
CODEC18は、読取部15により読み取られた画像データを符号化し、符号メモリ19に記憶させる。
【0023】
符号メモリ19は、DRAM等で構成され、読取部15により読み取り、CODEC18により符号化された画像データ、NCU13及びモデム14を介して他のファクシミリ装置から取得した画像データを記憶する。
尚、本実施の形態において、取得する画像データは、各画素を2値データにより特定された2値の画像データである。また変倍率は、ユーザにより指定されるだけでなく、ユーザにより指定された出力すべき記録紙等のサイズに基づき算出することもできる。
【0024】
また、CODEC18は、符号メモリ19に記憶してある符号化された画像データを復号するように構成されており、符号メモリ19から読み出した画像データを復号し、制御部10の指示に従って、画像処理部22又は記録部21に入力する。
ここで、制御部10は、ユーザによる変倍率の設定、又はユーザによる記録紙のサイズの設定等に基づき、記録紙等に印刷すべき画像に縮小処理を行なうか否かを判断しており、縮小処理を実行する場合、具体的には、設定された変倍率が100%よりも小さい場合、CODEC18に、復号した画像データを画像処理部22に入力させ、縮小処理を実行しない場合、CODEC18に、復号した画像データを記録部21に入力させる。
【0025】
尚、本実施の形態における画像処理部22は、縮小処理のみを実行する構成を有しており、制御部10は、縮小処理を実行しない場合に、CODEC18により復号された画像データを記録部21に入力するように構成されているが、拡大処理を行なう画像処理部を別途に設け、設定された変倍率が100%よりも大きい場合には、復号された画像データをこの画像処理部へ入力するようにしてもよい。
【0026】
画像処理部22は、後述するような構成をなしており、CODEC18により復号された画像データから、RAM12に記憶してある変倍率が示す縮小率に基づき、画像データを構成する画素データ(画素のデータ値)を適宜間引き、得られた画像データを一旦画像メモリ20に記憶する。
【0027】
画像メモリ20は、DRAM等で構成され、画像処理部22から取得した画像データを記憶しており、制御部10からの制御に基づき、記憶してある画像データを記録部21に入力する。
記録部21は、電子写真方式のプリンタ装置であって、CODEC18から取得した画像データ又は画像メモリ20から取得した画像データに基づく画像を、ハードコピーとしてA3縦,B4縦,A4縦,B5横及びA5横等の各サイズの記録紙又はOHP(Over Head Projector)シートから最適なサイズのものを選択して記録する。
【0028】
図2は本実施の形態に係る画像処理部22の構成例を示すブロック図であり、画像処理部22は、レジスタ30、比較回路31、メモリ32、解像度変換部33等を備えている。
上述した構成の複合機1においては、制御部10が、RAM12に記憶してある変倍率(縮小率)に基づき、1の画素を間引くべき1単位に含まれる画素数を算出しており、算出した画素数を画像処理部22に入力し、画像処理部22は、取得した画素数をレジスタ30に記憶させる。
【0029】
具体的に、例えば、縮小率が99%の縮小処理を行なう場合に、制御部10は、100画素中から1画素を間引くべく、前記1単位に含まれる画素数として100を算出し、レジスタ30には100が格納される。
また、画像処理部22は、CODEC18から取得する画像データの各画素データを順次メモリ32に記憶しており、レジスタ30に格納された数に基づき、メモリ32に記憶してある画素データから、間引き候補の画素のデータ値を特定する特定手段として動作する。レジスタ30に100が格納されている場合には、画像処理部22は、メモリ32に記憶してある画像データが有する画素のデータ値について、100の画素毎に1つの間引き候補の画素のデータ値を特定する。
【0030】
更に、画像処理部22において、比較回路31が、上述のように間引き候補として特定された画素のデータ値と、該画素と主走査方向に隣合う画素のデータ値とを比較することにより、間引き候補の画素のデータ値が、隣合う画素のデータ値と一致するか否かを判断する判断手段として動作する。
この比較の結果、間引き候補の画素のデータ値が、隣合う画素のデータ値と一致する場合、解像度変換部33が、特定された間引き候補の画素のデータ値を間引く間引手段として動作し、対応するデータ値を間引き、順次画像メモリ20に記憶させる。
【0031】
一方、間引き候補の画素のデータが、隣合う画素のデータ値と一致しない場合(主走査方向の両側に隣合う2つの画素のデータ値といずれも一致しない場合)、比較回路31は、レジスタ30に格納された数に基づき、当該間引き候補の画素から、主走査方向に同一のライン上の左側にあり、同様に間引き候補として特定された画素までを1単位とし、この1単位内の各画素について、主走査方向の両側に隣合う2つの画素のデータ値を順次比較していき、データ値が同一で隣合う画素を検出する検出手段として動作する。
即ち、検出手段は、検出範囲内において、主走査方向に隣合う2つの画素のうちの少なくともいずれかのデータ値が同一となる画素が存在するか否かを検出する。
【0032】
また、比較回路31の比較結果により、データ値が同一で隣合う画素(隣の画素とデータ値が同一である画素)が検出された場合、解像度変換部33は、同一のデータ値を有する連続画素群のうちの1つを間引くべく、対応するデータ値を間引き、順次画像メモリ20に記憶させる。
尚、比較回路31の比較結果により、前記1単位内に、データ値が同一で隣合う画素が検出されない場合、解像度変換部33は、レジスタ30に格納された数に基づき特定された間引き候補の画素を間引くべく、対応するデータ値を間引き、順次画像メモリ20に記憶させる。
【0033】
図3は本実施の形態に係る画像処理部22による解像度変換処理を説明するための図であり、図3(a)は解像度変換前の画像データの一部を、図3(b)は解像度変換後の画像データの一部を夫々示している。
図3(a)において、上述したように間引き候補として図中のM1で示す位置の画素が特定された場合、画像処理部22は、比較回路31により、この画素M1のデータ値が、画素M1と隣合う両画素のデータ値と同一であるか否かを判断する。図においては両側のいずれについてもデータ値が異なるため、画像処理部22は、画素M1の主走査方向の左側に向かって1画素ずつ注目画素を順次移動させながら、隣合う各画素のデータ値を順次比較回路31にて比較し、同一のデータ値を有する連続画素群(2画素)を検出した場合に、即ち、主走査方向の両側の少なくとも一方に隣合う画素のデータ値が注目画素と同一であることをした場合に、検出された連続画素群のうちの一つの画素(図においては画素M2)を間引くことになる(図3(b)参照)。
【0034】
また、図3(c)は、白画素及び黒画素を交番に形成する、解像度変換前の画像データの一部を示しており、図中のM1a,M1bは夫々間引き候補として特定された画素を示している。
図3(c)に示すように、間引き候補として特定された画素M1a,M1b間において、即ち、このような画素間を1単位として、この1単位内で、同一のデータ値を有する隣合う画素が検出されない場合には、画像処理部22は、解像度変換部33により、間引き候補として特定された画素M1aを間引くことにより、間引かれる画素の位置における偏りを防止し、確実に解像度変換処理を行なうことができる。
【0035】
上述した実施の形態では、画像における主走査方向の解像度変換処理(縮小処理)について説明しているが、副走査方向の解像度変換処理についても適用が可能である。また、擬似中間調画像において上述した解像度変換処理を行なった場合には、白又は黒の縦筋の発生を防止することができる。
更に、画像処理部22は、受け付けた縮小率に基づき間引き候補として特定された画素のデータ値が、隣合う画素のデータ値と同一でない場合に、当該間引き候補の画素から主走査方向の左側に向かって、同一のデータ値を有する隣合った画素の存在を検出するように構成してあるが、当該間引き候補の画素から主走査方向の右側に向かって、同一のデータ値を有する隣合った画素の存在を検出する構成としてもよい。
【0036】
【発明の効果】
第1発明による場合は、受け付けた縮小率に基づき、1の画素を間引く各単位に含まれる画素数を算出し、算出した数の画素を1単位とし、各単位毎に間引く画素を特定する。また、特定した画素のデータ値が、該画素に隣合う少なくとも1つの画素のデータ値と同一であるか否かを判断して、同一である場合に、特定した前記画素を間引くことにより、白画素又は黒画素の連結の発生を防止し、画質の劣化を低減する縮小処理を行なうことができる。
【0037】
第2発明による場合は、間引くべく特定された画素のデータ値が、該画素に隣合う画素のデータ値と同一でない場合に、特定された当該画素の近傍から、データ値が同一で隣合う複数の画素を検出し、検出した画素のうちの1つを間引くことにより、特定された前記画素を間引いた場合に発生するおそれのある白画素又は黒画素の連結を防止することができ、この連結による画質の劣化を低減することができる。
【0038】
第3発明による場合は、データ値が同一で隣合う複数の画素を、受け付けた縮小率に基づき算出した数の画素からなる各単位内で検出することにより、間引かれる画素の位置に範囲を設けることができ、間引かれる画素の位置の偏りを防止することができ、また、上述した検出処理の際限のない繰り返しを防止することによる検出処理負担を軽減することができる。
【0039】
第4発明による場合は、上述したように、データ値が同一で隣合う複数の画素を検出できない場合に、間引くべく特定された画素を間引くことにより、間引き処理による縮小処理を確実に行なうことができるとともに、間引かれる画素の位置の偏りを防止することができる。
【図面の簡単な説明】
【図1】本発明に係る複合機の構成例を示すブロック図である。
【図2】本実施の形態に係る画像処理部の構成例を示すブロック図である。
【図3】本実施の形態に係る画像処理部による解像度変換処理を説明するための図である。
【符号の説明】
1 複合機
10 制御部
22 画像処理部(特定手段)
31 比較回路(判断手段、検出手段)
33 解像度変換部(間引手段)
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to an image processing apparatus for thinning out pixels based on a received reduction ratio from an image in which a plurality of pixels are arranged in a matrix and reducing the image.
[0002]
[Prior art]
Generally, an image processing apparatus performs a reduction process by thinning out appropriate pixels on an image configured by arranging a plurality of pixels in a main scanning direction and a sub-scanning direction, and also appropriately performs image processing between adjacent pixels. The enlargement process is performed by inserting an interpolation pixel.
However, when the above-described reduction processing is performed on a pseudo halftone image in which halftone is formed by alternation of black and white by performing dither processing or the like, the dither pattern is broken, and black pixels are separated in the original image. The white pixels or the black pixels which are arranged with the white pixels separated from each other may be connected to each other to cause white streaks or black streaks, thereby deteriorating the image quality. Such white streaks or black streaks are remarkable in the case of a pseudo halftone image.
[0003]
Therefore, for example, when reducing the image, the position of the pixel to be thinned out is determined for each line in the main scanning direction or the sub-scanning direction so that each pixel to be thinned out does not continue in the main scanning direction or the sub-scanning direction. There has been proposed an image processing apparatus that prevents deterioration in image quality by changing and determining pixels to be thinned out at random (for example, see Patent Document 1).
By using such an image processing apparatus, it is possible to prevent not only continuous loss of white pixels or black pixels but also generation of white streaks or black streaks due to the connection of white pixels or black pixels.
[0004]
[Patent Document 1]
JP-A-11-120341
[Problems to be solved by the invention]
However, the image processing apparatus disclosed in Patent Document 1 does not determine the pixels to be thinned out according to the data value of each pixel in the image to be processed, and thus determines the optimum thinned pixels for all the images. There is a problem that, depending on the image, the occurrence of white streaks or black streaks due to the connection of white pixels or black pixels cannot be reliably prevented depending on the image.
[0006]
The present invention has been made in view of such circumstances, and the number of pixels based on the received reduction ratio is defined as one unit, pixels to be thinned out are specified for each unit, and the data value of the specified pixel is adjacent to the pixel. An image processing apparatus that performs reduction processing to prevent the connection of white pixels or black pixels and reduce deterioration in image quality by thinning out the specified pixels when the data values are the same as at least one of the matching pixels. The purpose is to provide.
[0007]
Another object of the present invention is that when the data value of a pixel specified to be decimated is not the same as the data value of a pixel adjacent to the pixel, the data value in the vicinity of the specified pixel is the same and adjacent. It is an object of the present invention to provide an image processing apparatus capable of preventing connection of a white pixel or a black pixel which may occur when the specified pixel is thinned by thinning one of a plurality of pixels. .
[0008]
Still another object of the present invention is to detect a plurality of adjacent pixels having the same data value in each unit consisting of the number of pixels calculated based on the received reduction ratio, thereby determining the positions of the pixels to be thinned out. An object of the present invention is to provide an image processing apparatus which can provide a range and can prevent deviation of positions of pixels to be thinned out.
[0009]
Yet another object of the present invention is to reduce the number of pixels specified to be thinned out when a plurality of adjacent pixels having the same data value cannot be detected. It is an object of the present invention to provide an image processing apparatus capable of preventing deviation of positions of pixels to be thinned out.
[0010]
[Means for Solving the Problems]
The image processing apparatus according to the first invention is configured such that, based on the received reduction ratio, the number of pixels corresponding to the reduction ratio is defined as one unit, from an image in which a plurality of pixels are arranged in a matrix, and one unit for each unit. In an image processing apparatus for thinning out pixels and reducing the image, a specifying means for specifying a pixel to be thinned out for each unit, and a data value of the pixel specified by the specifying means is a data value of at least one pixel adjacent to the pixel. It is characterized by comprising a judging means for judging whether or not the value is the same, and a thinning means for thinning out the pixel specified by the specifying means when the judging means judges the same.
[0011]
In the case of the first invention, the number of pixels included in each unit for thinning out one pixel is calculated based on the received reduction ratio, and the calculated number of pixels is defined as one unit, and the pixel to be thinned out is specified for each unit. Further, it is determined whether or not the data value of the specified pixel is the same as the data value of at least one pixel adjacent to the pixel. If the data value is the same, the specified pixel is thinned out to reduce whiteness. It is possible to perform reduction processing for preventing the occurrence of connection of pixels or black pixels and reducing deterioration of image quality.
[0012]
The image processing apparatus according to a second aspect of the present invention includes a detecting unit that detects a plurality of adjacent pixels having the same data value from the vicinity of the pixel specified by the specifying unit when the determining unit determines that the pixels are not the same. , Wherein the thinning means is configured to thin one of the pixels detected by the detecting means.
[0013]
According to the second aspect, when the data value of a pixel specified to be thinned out is not the same as the data value of a pixel adjacent to the pixel, a plurality of data values adjacent to the specified pixel are identified from the vicinity of the specified pixel. By detecting one of the pixels and decimating one of the detected pixels, it is possible to prevent the connection of white pixels or black pixels that may occur when the specified pixel is decimated. Can reduce the deterioration of the image quality.
[0014]
An image processing apparatus according to a third aspect is characterized in that the detecting means is configured to detect a plurality of adjacent pixels having the same data value in each unit.
[0015]
In the case of the third invention, a plurality of adjacent pixels having the same data value are detected in each unit composed of the number of pixels calculated based on the received reduction ratio, so that the range of the positions of the pixels to be thinned is determined. This can prevent the bias of the positions of the pixels to be thinned out, and can reduce the load of the detection processing by preventing endless repetition of the above-described detection processing.
[0016]
An image processing apparatus according to a fourth aspect is configured such that the thinning-out unit thins out the pixels specified by the specifying unit when the detecting unit cannot detect a plurality of adjacent pixels having the same data value. There is a feature.
[0017]
According to the fourth aspect, as described above, when a plurality of adjacent pixels having the same data value cannot be detected, the pixels identified to be thinned out are thinned out, so that the reduction process by the thinning process can be reliably performed. In addition to this, it is possible to prevent the deviation of the positions of the pixels to be thinned out.
[0018]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, an image processing apparatus according to the present invention will be described in detail based on an embodiment using a multifunction peripheral. FIG. 1 is a block diagram showing a configuration example of a multifunction peripheral according to the present invention. In the figure, reference numeral 1 denotes a multifunction peripheral.
The multifunction device 1 includes a control unit 10, a ROM 11, a RAM 12, an NCU (Network Control Unit) 13, a modem 14, a reading unit 15, a display unit 16, an operation unit 17, a CODEC 18, a code memory 19, an image memory 20, an image recording unit 21, , An image processing unit 22, etc., and are connected to each other via a bus 23.
[0019]
The control unit 10 is specifically configured by a CPU (Central Processing Unit) or an MPU (Micro Processor Unit), and controls the above-described hardware via the bus 23 and is stored in the ROM 11. Various software functions are realized according to the computer program.
The ROM 11 stores various computer programs and the like necessary for the operation of the multifunction peripheral 1 of the present invention in advance.
[0020]
The RAM 12 is configured by an SRAM, a flash memory, or the like, and temporarily stores data generated when the control unit 10 executes the computer program, and the obtained magnification. If a flash memory is used as the RAM 12, the stored contents will not be lost even if the power is cut off due to a power failure, movement of the MFP 1, or the like.
The modem 14 is constituted by a facsimile modem capable of performing facsimile communication, and is also directly connected to the NCU 13. The NCU 13 is connected to the public telephone network L, connects the modem 14 to the public telephone network L as necessary, and performs facsimile communication with another facsimile apparatus via the public telephone network L. It is possible.
[0021]
The display unit 16 is configured by a liquid crystal display (LCD) or the like, and displays an operation state of the multifunction device 1, data to be notified to a user, characters input from the operation unit 17, and the like.
The operation unit 17 includes various function keys necessary for operating the multifunction device 1, keys for inputting a magnification by the user, and the like. By using the touch panel type display unit 16, some or all of the various keys of the operation unit 17 can be substituted.
[0022]
The reading unit 15 reads an original using a scanner using a CCD (Charge Coupled Device), and inputs the read image data to the CODEC 18.
The CODEC 18 encodes the image data read by the reading unit 15 and stores the encoded image data in the code memory 19.
[0023]
The code memory 19 includes a DRAM or the like, and stores image data read by the reading unit 15 and encoded by the CODEC 18, and image data obtained from another facsimile apparatus via the NCU 13 and the modem 14.
In the present embodiment, the image data to be obtained is binary image data in which each pixel is specified by binary data. The scaling factor can be calculated not only by the user but also based on the size of the recording paper to be output specified by the user.
[0024]
The CODEC 18 is configured to decode the encoded image data stored in the code memory 19, decodes the image data read from the code memory 19, and performs image processing according to an instruction from the control unit 10. It is input to the unit 22 or the recording unit 21.
Here, the control unit 10 determines whether or not to perform a reduction process on an image to be printed on a recording sheet or the like, based on a setting of a scaling ratio by a user or a setting of a size of a recording sheet by a user, When the reduction processing is executed, specifically, when the set scaling ratio is smaller than 100%, the decoded image data is input to the image processing unit 22. When the reduction processing is not executed, the CODEC 18 is output. , And causes the recording unit 21 to input the decoded image data.
[0025]
Note that the image processing unit 22 in the present embodiment has a configuration for executing only the reduction processing, and the control unit 10 stores the image data decoded by the CODEC 18 in the recording unit 21 when not executing the reduction processing. However, an image processing unit for performing the enlargement process is separately provided, and when the set scaling ratio is larger than 100%, the decoded image data is input to this image processing unit. You may make it.
[0026]
The image processing unit 22 has a configuration as described later, and, based on image data decoded by the CODEC 18, pixel data (pixel data) constituting the image data based on the reduction ratio indicated by the scaling factor stored in the RAM 12. (Data value) is appropriately thinned out, and the obtained image data is temporarily stored in the image memory 20.
[0027]
The image memory 20 includes a DRAM or the like, stores image data obtained from the image processing unit 22, and inputs the stored image data to the recording unit 21 under the control of the control unit 10.
The recording unit 21 is an electrophotographic printer, and converts the image data obtained from the CODEC 18 or the image based on the image data obtained from the image memory 20 into A3 portrait, B4 portrait, A4 portrait, B5 landscape, and hard copy. An optimum size is selected from recording paper of each size such as A5 width or an OHP (Over Head Projector) sheet and recorded.
[0028]
FIG. 2 is a block diagram illustrating a configuration example of the image processing unit 22 according to the present embodiment. The image processing unit 22 includes a register 30, a comparison circuit 31, a memory 32, a resolution conversion unit 33, and the like.
In the MFP 1 having the above-described configuration, the control unit 10 calculates the number of pixels included in one unit for thinning out one pixel based on the scaling ratio (reduction ratio) stored in the RAM 12. The acquired number of pixels is input to the image processing unit 22, and the image processing unit 22 stores the acquired number of pixels in the register 30.
[0029]
Specifically, for example, when performing a reduction process with a reduction ratio of 99%, the control unit 10 calculates 100 as the number of pixels included in one unit so as to thin out one pixel from 100 pixels, and Stores 100.
The image processing unit 22 sequentially stores each pixel data of the image data obtained from the CODEC 18 in the memory 32, and thins out the pixel data stored in the memory 32 based on the number stored in the register 30. It operates as specifying means for specifying the data value of the candidate pixel. When 100 is stored in the register 30, the image processing unit 22 determines, for each 100 pixels, the data value of one thinning-out candidate pixel for each pixel of the image data stored in the memory 32. To identify.
[0030]
Further, in the image processing unit 22, the comparison circuit 31 compares the data value of the pixel identified as the thinning candidate as described above with the data value of the pixel adjacent to the pixel in the main scanning direction, thereby performing the thinning. It operates as a judging means for judging whether or not the data value of a candidate pixel matches the data value of an adjacent pixel.
As a result of this comparison, when the data value of the pixel of the thinning candidate matches the data value of the adjacent pixel, the resolution conversion unit 33 operates as a thinning unit that thins out the data value of the specified pixel of the thinning candidate, The corresponding data values are thinned out and sequentially stored in the image memory 20.
[0031]
On the other hand, when the data of the pixel of the thinning candidate does not match the data value of the adjacent pixel (when none of the data values of two adjacent pixels on both sides in the main scanning direction match), the comparison circuit 31 sets the register 30 , The unit from the pixel of the thinning candidate to the pixel on the left side of the same line in the main scanning direction and similarly specified as the thinning candidate is defined as one unit. , The data values of two pixels adjacent to each other on both sides in the main scanning direction are sequentially compared, and the device operates as a detecting unit that detects adjacent pixels having the same data value.
That is, the detection unit detects whether or not there is a pixel in at least one of two pixels adjacent in the main scanning direction having the same data value in the detection range.
[0032]
When a pixel having the same data value and an adjacent pixel (a pixel having the same data value as an adjacent pixel) are detected as a result of the comparison by the comparison circuit 31, the resolution conversion unit 33 determines that a continuous pixel having the same data value is present. In order to thin out one of the pixel groups, corresponding data values are thinned out and sequentially stored in the image memory 20.
If the comparison result of the comparison circuit 31 indicates that no adjacent pixel having the same data value is detected in the one unit, the resolution conversion unit 33 determines the number of thinning candidates specified based on the number stored in the register 30. In order to thin out the pixels, the corresponding data values are thinned out and sequentially stored in the image memory 20.
[0033]
3A and 3B are diagrams for explaining a resolution conversion process by the image processing unit 22 according to the present embodiment. FIG. 3A shows a part of image data before resolution conversion, and FIG. Each part of the converted image data is shown.
In FIG. 3A, when the pixel at the position indicated by M1 in the figure is specified as a thinning candidate as described above, the image processing unit 22 causes the comparison circuit 31 to change the data value of the pixel M1 to the pixel M1. Is determined to be the same as the data value of both adjacent pixels. In the figure, since the data values are different on both sides, the image processing unit 22 sequentially shifts the pixel of interest one pixel at a time toward the left side of the pixel M1 in the main scanning direction while changing the data value of each adjacent pixel. When successive pixel groups (two pixels) having the same data value are detected by the sequential comparison circuit 31, the data value of a pixel adjacent to at least one of both sides in the main scanning direction is the same as the target pixel. In this case, one pixel (the pixel M2 in the figure) of the detected continuous pixel group is thinned out (see FIG. 3B).
[0034]
FIG. 3C shows a part of image data before resolution conversion in which white pixels and black pixels are alternately formed, and M1a and M1b in the figure denote pixels identified as thinning candidates, respectively. Is shown.
As shown in FIG. 3 (c), adjacent pixels having the same data value between the pixels M1a and M1b specified as the thinning candidates, that is, such a unit is defined as one unit. Is not detected, the image processing unit 22 prevents the bias in the position of the pixel to be thinned out by thinning out the pixel M1a specified as the thinning candidate by the resolution conversion unit 33, and reliably performs the resolution conversion process. Can do it.
[0035]
In the above-described embodiment, the resolution conversion processing (reduction processing) in the main scanning direction of an image has been described, but the present invention is also applicable to the resolution conversion processing in the sub-scanning direction. Further, when the above-described resolution conversion processing is performed on the pseudo halftone image, it is possible to prevent the generation of white or black vertical stripes.
Further, when the data value of the pixel specified as the thinning candidate based on the received reduction ratio is not the same as the data value of the adjacent pixel, the image processing unit 22 shifts the pixel value of the thinning candidate to the left in the main scanning direction from the pixel of the thinning candidate. To detect the presence of adjacent pixels having the same data value, but from the pixel of the thinning candidate to the right side in the main scanning direction, adjacent pixels having the same data value are configured. It may be configured to detect the presence of a pixel.
[0036]
【The invention's effect】
In the case of the first invention, the number of pixels included in each unit for thinning out one pixel is calculated based on the received reduction ratio, and the calculated number of pixels is defined as one unit, and the pixel to be thinned out is specified for each unit. Also, it is determined whether or not the data value of the specified pixel is the same as the data value of at least one pixel adjacent to the pixel. It is possible to perform reduction processing for preventing the occurrence of connection of pixels or black pixels and reducing deterioration of image quality.
[0037]
According to the second aspect, when the data value of a pixel specified to be thinned out is not the same as the data value of a pixel adjacent to the pixel, a plurality of data values adjacent to the specified pixel are identified from the vicinity of the specified pixel. By detecting one of the pixels and thinning out one of the detected pixels, it is possible to prevent the connection of white pixels or black pixels that may occur when the specified pixel is thinned out. Can reduce the deterioration of the image quality.
[0038]
In the case of the third invention, a plurality of adjacent pixels having the same data value are detected in each unit composed of the number of pixels calculated based on the received reduction ratio, so that the range of the positions of the pixels to be thinned is determined. This can prevent the bias of the positions of the pixels to be thinned out, and can reduce the load of the detection processing by preventing endless repetition of the above-described detection processing.
[0039]
According to the fourth aspect, as described above, when a plurality of adjacent pixels having the same data value cannot be detected, the pixel identified to be thinned is thinned out, so that the reduction process by the thinning process can be reliably performed. In addition to this, it is possible to prevent the deviation of the positions of the pixels to be thinned out.
[Brief description of the drawings]
FIG. 1 is a block diagram illustrating a configuration example of a multifunction peripheral according to the present invention.
FIG. 2 is a block diagram illustrating a configuration example of an image processing unit according to the present embodiment.
FIG. 3 is a diagram for explaining resolution conversion processing by an image processing unit according to the present embodiment.
[Explanation of symbols]
1 MFP 10 control unit 22 image processing unit (specification means)
31 Comparison circuit (judgment means, detection means)
33 Resolution conversion unit (thinning means)

Claims (4)

複数の画素がマトリクス状に配列された画像から、受け付けた縮小率に基づいて、該縮小率に応じた数の画素を1単位として各単位毎に1の画素を間引き、前記画像を縮小する画像処理装置において、
各単位毎に間引く画素を特定する特定手段と、
該特定手段が特定した画素のデータ値が、該画素に隣合う少なくとも1つの画素のデータ値と同一であるか否かを判断する判断手段と、
該判断手段が同一であると判断した場合に、前記特定手段が特定した画素を間引く間引手段とを備えることを特徴とする画像処理装置。
From an image in which a plurality of pixels are arranged in a matrix, based on the received reduction ratio, one pixel is thinned out for each unit with the number of pixels corresponding to the reduction ratio as one unit, and the image is reduced in size. In the processing device,
Specifying means for specifying pixels to be thinned out for each unit;
Determining means for determining whether or not the data value of the pixel specified by the specifying means is the same as the data value of at least one pixel adjacent to the pixel;
An image processing apparatus comprising: a thinning unit that thins out the pixels specified by the specifying unit when the determining unit determines that they are the same.
前記判断手段が同一でないと判断した場合に、前記特定手段が特定した画素の近傍から、データ値が同一で隣合う複数の画素を検出する検出手段を備え、
前記間引手段は、前記検出手段が検出した画素のうちの1つを間引くように構成してあることを特徴とする請求項1に記載の画像処理装置。
When the determination unit determines that the same is not the same, from the vicinity of the pixel specified by the specifying unit, a detection unit that detects a plurality of adjacent pixels having the same data value,
2. The image processing apparatus according to claim 1, wherein the thinning unit is configured to thin one of the pixels detected by the detecting unit.
前記検出手段は、各単位内で、データ値が同一で隣合う複数の画素を検出するように構成してあることを特徴とする請求項2に記載の画像処理装置。The image processing apparatus according to claim 2, wherein the detection unit is configured to detect a plurality of adjacent pixels having the same data value in each unit. 前記間引手段は、
前記検出手段によりデータ値が同一で隣合う複数の画素を検出できない場合に、前記特定手段が特定した画素を間引くように構成してあることを特徴とする請求項2又は3に記載の画像処理装置。
The thinning means,
4. The image processing apparatus according to claim 2, wherein when the plurality of adjacent pixels having the same data value cannot be detected by the detecting unit, the pixels specified by the specifying unit are thinned out. apparatus.
JP2003109558A 2003-04-14 2003-04-14 Image processing apparatus Pending JP2004320258A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003109558A JP2004320258A (en) 2003-04-14 2003-04-14 Image processing apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003109558A JP2004320258A (en) 2003-04-14 2003-04-14 Image processing apparatus

Publications (1)

Publication Number Publication Date
JP2004320258A true JP2004320258A (en) 2004-11-11

Family

ID=33470678

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003109558A Pending JP2004320258A (en) 2003-04-14 2003-04-14 Image processing apparatus

Country Status (1)

Country Link
JP (1) JP2004320258A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009159434A (en) * 2007-12-27 2009-07-16 Ricoh Co Ltd Image processing apparatus, image forming apparatus, image processing program, and recording medium having the program recorded therein
JP2010278618A (en) * 2009-05-27 2010-12-09 Ricoh Co Ltd Image processor, image forming apparatus, image processing method, and image processing program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009159434A (en) * 2007-12-27 2009-07-16 Ricoh Co Ltd Image processing apparatus, image forming apparatus, image processing program, and recording medium having the program recorded therein
JP2010278618A (en) * 2009-05-27 2010-12-09 Ricoh Co Ltd Image processor, image forming apparatus, image processing method, and image processing program

Similar Documents

Publication Publication Date Title
JP4293212B2 (en) Image color determination apparatus, image color determination method, and program
US8554007B2 (en) Image processing apparatus, image processing method, and computer-readable storage medium for computer program
JP5543406B2 (en) Image processing apparatus and image forming apparatus
JP4438834B2 (en) Image color determination apparatus, image color determination method, and program
JP2004320258A (en) Image processing apparatus
JP3912376B2 (en) Image reading device
JP2005191886A (en) Image reading apparatus
JP4983947B2 (en) Halftone image generation apparatus and halftone image generation method
JP2004328444A (en) Image processor and method
JP2004336165A (en) Image processor
JP2004356863A (en) Image reader
JP6688193B2 (en) Image processing apparatus, image forming apparatus, image processing method, and image processing program
JP6025803B2 (en) Image processing device
JP2008227852A (en) Image reader and image reading method
JP4386110B2 (en) Image color determination apparatus, image color determination method, and program
JP2008092323A (en) Image processing equipment, and image reading apparatus and image forming apparatus equipped with the same
JP2004159002A (en) Image reading and recording apparatus
JP3911459B2 (en) Image reading device
JP2006173957A (en) Image processing apparatus
JP2008117248A (en) Image processor
JP5062633B2 (en) Image processing apparatus, image processing method, and program
JP2003283808A (en) Image processor
JP3606160B2 (en) Image reduction method
JPH10147009A (en) Image processing device
JP2012049583A (en) Image processing device, image processing method and program

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20060104

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060131

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20060606