JP2005124078A - Reduced image creation method and mobile information apparatus - Google Patents

Reduced image creation method and mobile information apparatus Download PDF

Info

Publication number
JP2005124078A
JP2005124078A JP2003359622A JP2003359622A JP2005124078A JP 2005124078 A JP2005124078 A JP 2005124078A JP 2003359622 A JP2003359622 A JP 2003359622A JP 2003359622 A JP2003359622 A JP 2003359622A JP 2005124078 A JP2005124078 A JP 2005124078A
Authority
JP
Japan
Prior art keywords
capacity
image
image data
clusters
reduced image
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
JP2003359622A
Other languages
Japanese (ja)
Inventor
Yoshiaki Otaki
由章 大瀧
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.)
Toshiba Corp
Original Assignee
Toshiba Corp
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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP2003359622A priority Critical patent/JP2005124078A/en
Publication of JP2005124078A publication Critical patent/JP2005124078A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Television Signal Processing For Recording (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To dynamically determine a capacitance of a thumbnail image so as not to generate a cluster gap when creating the thumbnail image. <P>SOLUTION: When storing an image, a cluster gap (k) is calculated from a main image and image information and when it is greater than or is the same as a predetermined minimum thumbnail image capacitance (m), a thumbnail image capacitance (n) is changed into the same value as the cluster gap (k). When it is smaller than the minimum thumbnail image capacitance (m), on the other hand, the thumbnail image capacitance (n) is changed into a value that is the sum of the cluster gap (k) and a single cluster size (j). After the size of the thumbnail image is thus determined, a thumbnail image is created and stored in accordance with the thumbnail image capacitance (n). <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

本発明は、入力画像からサムネイル画像を作成する際に、クラスタギャップをつくらな
いような縮小画像作成方法および携帯情報機器に関する。
The present invention relates to a reduced image creation method and a portable information device that do not create a cluster gap when creating a thumbnail image from an input image.

近年、画像を入力する手段を有し、その入力した画像を保存できるような記憶装置を備
えた携帯電話機やデジタルカメラ、PDA等の携帯情報機器が、世の中に多く普及してい
る。このような携帯情報機器では、カメラで撮影した被写体の画像を保存して、他の機器
に送信をしたり、印刷をしたりすることができる。そして、保存した多数の画像の中から
所望の画像を選択して出力する際に、出力候補一覧として使用するために、サムネイル画
像(縮小画像)をあらかじめ作成して保存している機器がある(例えば、特許文献1)。
2. Description of the Related Art In recent years, mobile information devices such as mobile phones, digital cameras, and PDAs that have a means for inputting an image and have a storage device that can store the input image have been widely used. In such a portable information device, an image of a subject photographed by a camera can be stored and transmitted to another device or printed. When a desired image is selected from a large number of stored images and output, there is a device that creates and stores thumbnail images (reduced images) in advance for use as an output candidate list ( For example, Patent Document 1).

従来の携帯情報機器におけるサムネイル画像を含む画像データの保存について、図7お
よび図8を参照して説明する。
Saving of image data including thumbnail images in a conventional portable information device will be described with reference to FIGS.

図7は、従来の携帯電話機の概略構成を示すブロック図である。従来の携帯電話機は、
CPU101、表示部102、記憶部103、操作部104、通信部105、アンテナ1
06、カメラ107などから構成されている。その画像の処理としては、カメラ107に
よって読み込まれている画像を表示部102に表示している状態で、操作部104によっ
て画像の取り込み操作(シャッタ操作)がなされると、CPU101はカメラ107から
の画像を読み込み記憶部103に記憶する。そこで、操作部104から表示部102を用
いて記憶部103に記憶された画像に対しサムネイル画像の作成操作が行われると、複数
取り込んだ画像が一覧表示できるように編集される。なお、従来のサムネイル画像の作成
操作は、携帯電話機内で予め決められたサムネイル画像ピクセルサイズで間引きされ、予
め決められた圧縮率によって圧縮されることによりサムネイル画像が作成される。
FIG. 7 is a block diagram showing a schematic configuration of a conventional mobile phone. Conventional mobile phones
CPU 101, display unit 102, storage unit 103, operation unit 104, communication unit 105, antenna 1
06, the camera 107, and the like. As processing of the image, when an operation for capturing an image (shutter operation) is performed by the operation unit 104 in a state where an image read by the camera 107 is displayed on the display unit 102, the CPU 101 receives the image from the camera 107. The image is read and stored in the storage unit 103. Therefore, when a thumbnail image creation operation is performed on the image stored in the storage unit 103 using the display unit 102 from the operation unit 104, a plurality of captured images are edited so that they can be displayed as a list. In the conventional thumbnail image creation operation, a thumbnail image is created by thinning out a predetermined thumbnail image pixel size in the mobile phone and compressing the thumbnail image by a predetermined compression rate.

次に、図8は、主画像202bと、この主画像の画像情報202aと、一覧表示用のサ
ムネイル画像202cとを有する新しい画像データ202が記憶部103に記憶された場
合における、記憶部103の記憶形態を示したものである。
Next, FIG. 8 shows a case where new image data 202 having a main image 202b, image information 202a of the main image, and thumbnail images 202c for list display is stored in the storage unit 103. This shows the storage form.

ここでは、記憶部103の1つのクラスタのサイズ(1ブロックのサイズであり、以下
1クラスタサイズという)を1キロバイトとする。そして、既存の画像データ201が既
に格納されている状態で、新しい画像データ202が格納された状態を示す。新しい画像
データ202は、128バイトの画像情報202aと、5800バイトの主画像202b
と、600バイトのサムネイル画像202cとで構成されるとする。
Here, the size of one cluster in the storage unit 103 (the size of one block, hereinafter referred to as one cluster size) is assumed to be 1 kilobyte. Then, a state in which new image data 202 is stored while existing image data 201 is already stored is shown. The new image data 202 includes 128-byte image information 202a and a 5800-byte main image 202b.
And a 600-byte thumbnail image 202c.

記憶部103では、クラスタ単位でファイル管理が行われるため、1つのファイルは1
クラスタサイズの整数倍長となる。また、新しい画像データ202を保存する際には、空
き領域203へ、画像情報202aと主画像202bとサムネイル画像202cを同一フ
ァイル情報として保存する必要があるため、同一ファイル内では前詰めの形式で記憶され
る。
In the storage unit 103, file management is performed in cluster units, so one file is 1
It is an integer multiple of the cluster size. In addition, when storing new image data 202, it is necessary to store the image information 202a, the main image 202b, and the thumbnail image 202c as the same file information in the empty area 203. Remembered.

ここで新しい画像データ202の記憶領域を考察すると、総画像データ量は6528バ
イト(128+5800+600)であり、1クラスタサイズが1キロバイトであるから
連続する7つのクラスタの空き領域を使用して前詰めの形式で保存される。したがって、
472バイト(7000−6528)の空き領域は、クラスタギャップ202dとなって
何も記憶されず、且つ他のファイルとしても使用できない部分となる。
特許第3072852号公報(第2A図、第2B図、頁5、頁6)
Considering the storage area of the new image data 202, the total image data amount is 6528 bytes (128 + 5800 + 600), and one cluster size is 1 kilobyte. Are stored in the front-end format. Therefore,
A free area of 472 bytes (7000-6528) is a part that cannot be stored as a cluster gap 202d and cannot be used as another file.
Japanese Patent No. 3072852 (FIG. 2A, FIG. 2B, page 5, page 6)

この従来の携帯情報機器では、サムネイル画像を含む画像データを記憶部に記憶する際
には、クラスタ単位で記憶されていた。そのため、1クラスタサイズの整数倍長に満たな
い画像データを保存する場合、空き領域が発生し、クラスタギャップとなって何も記憶さ
れず、且つ他のファイルとしても使用できない部分となる。したがって、記憶部の容量が
小さい携帯情報機器においては、貴重な保存領域を有効に利用できていないという問題が
あった。
In this conventional portable information device, when image data including thumbnail images is stored in the storage unit, it is stored in units of clusters. Therefore, when saving image data that is less than an integral multiple of one cluster size, an empty area is generated, nothing is stored as a cluster gap, and it cannot be used as another file. Therefore, a portable information device having a small storage unit has a problem that a valuable storage area cannot be effectively used.

従って、本発明は上記問題点を解決するためになされたもので、携帯情報機器内の記憶
部の保存領域を有効利用できるよう、1クラスタサイズやクラスタギャップに応じてサム
ネイル画像の容量を動的に変更できるような縮小画像作成方法および縮小画像作成機能を
備えた携帯情報機器を提供することを目的とする。
Accordingly, the present invention has been made to solve the above-described problems, and the capacity of the thumbnail image is dynamically changed according to one cluster size or cluster gap so that the storage area of the storage unit in the portable information device can be effectively used. An object of the present invention is to provide a portable information device having a reduced image creation method and a reduced image creation function that can be changed to

上記目的を達成するために、本発明の縮小画像作成方法は、各々が同一容量の複数のク
ラスタから構成された記憶手段に対して保存する画像データから縮小画像を作成す
る方法であって、前記画像データを前記記憶手段に保存する際に必要なクラスタ数を求め
るとともに、該求められたクラスタ数の容量で前記画像データが書き込まれない容量を算
出するステップと、前記算出された容量が予め定められた閾値以上の場合は、該算出され
た容量を用いて縮小画像を作成するステップと、前記算出された容量が前記閾値より小さ
い場合は、該算出された容量に1クラスタを加えた容量を用いて縮小画像を作成するステ
ップとを有することを特徴とする。
In order to achieve the above object, a reduced image creation method of the present invention is a method for creating a reduced image from image data stored in a storage means each composed of a plurality of clusters having the same capacity, Obtaining a number of clusters required for storing image data in the storage means, calculating a capacity at which the image data is not written with a capacity of the obtained number of clusters, and the calculated capacity is determined in advance. If the calculated capacity is equal to or larger than the threshold value, a step of creating a reduced image using the calculated capacity; and if the calculated capacity is smaller than the threshold value, a capacity obtained by adding one cluster to the calculated capacity is calculated. And using the method of creating a reduced image.

また、本発明の携帯情報機器は、カメラと、基地局から送信される音声又は画像データ
を受信する無線手段と、各々が同一容量の複数のクラスタから構成され、前記カメラで撮
影した画像データ又は前記無線手段により受信した画像データが記憶される記憶手段と、
前記画像データを表示する表示手段と、前記画像データから縮小画像を作成する制
御手段とを有し、前記制御手段は、前記画像データを前記記憶手段に保存する際に必要な
クラスタ数を求めるとともに、該求められたクラスタ数の容量で前記画像データが書き込
まれない容量を算出し、前記算出された容量が前記閾値以上の場合は、該算出された容量
を用いて縮小画像を作成し、前記算出された容量が前記閾値より小さい場合は、該算出さ
れた容量に1クラスタを加えた容量を用いて縮小画像を作成することを特徴とする。
Further, the portable information device of the present invention comprises a camera, wireless means for receiving audio or image data transmitted from a base station, and a plurality of clusters each having the same capacity, and image data captured by the camera or Storage means for storing image data received by the wireless means;
A display unit configured to display the image data; and a control unit configured to create a reduced image from the image data. The control unit obtains the number of clusters necessary for storing the image data in the storage unit. , Calculating the capacity of the obtained number of clusters in which the image data is not written, and if the calculated capacity is equal to or greater than the threshold, create a reduced image using the calculated capacity, If the calculated capacity is smaller than the threshold, a reduced image is created using a capacity obtained by adding one cluster to the calculated capacity.

本発明によれば、サムネイル画像を作成する場合、1クラスタサイズやクラスタギャッ
プに応じてサムネイル画像の容量を動的に変更することができるため、保存領域を無駄な
く有効に利用することが出来る。
According to the present invention, when creating a thumbnail image, the capacity of the thumbnail image can be dynamically changed according to one cluster size or cluster gap, so that the storage area can be used effectively without waste.

以下に本発明による実施の形態を説明する。   Embodiments according to the present invention will be described below.

本発明による縮小画像作成方法および携帯情報機器の第1の実施の形態を図1乃至図3
を参照して説明する。
1 to 3 show a reduced image creating method and a portable information device according to a first embodiment of the present invention.
Will be described with reference to FIG.

図1は、本発明を携帯電話機に適用した場合の内部構成を示すブロック図である。携帯
電話機の内部には携帯電話機全体の制御を行う制御部1と、制御部1の一部であって、画
像を保存する際にサムネイルの作成、制御を行うサムネイル機能制御部1aと、記憶部2
と、表示部3と、操作部4と、通信部5と、図示しない無線基地局との間で無線信号を送
受信するアンテナ6と、カメラ7とを有している。
FIG. 1 is a block diagram showing an internal configuration when the present invention is applied to a mobile phone. Inside the mobile phone are a control unit 1 that controls the entire mobile phone, a thumbnail function control unit 1a that is a part of the control unit 1 and that creates and controls thumbnails when storing images, and a storage unit 2
A display unit 3, an operation unit 4, a communication unit 5, an antenna 6 for transmitting and receiving radio signals to and from a radio base station (not shown), and a camera 7.

制御部1は、RAMなどで構成される記憶部2、LCDなどで構成される表示部3、キ
ーボードなどで構成される操作部4、アンテナ6との間で無線通信制御を行う通信部5、
携帯電話機の外部筐体に設けられたカメラ7などと接続され、携帯電話機全体の制御を行
う。
The control unit 1 includes a storage unit 2 configured by a RAM, a display unit 3 configured by an LCD, an operation unit 4 configured by a keyboard, a communication unit 5 that performs wireless communication control with the antenna 6,
It is connected to a camera 7 or the like provided in the external casing of the mobile phone and controls the entire mobile phone.

制御部1内のサムネイル機能制御部1aは、操作部4から表示部3を用いて記憶部2に
記憶された主画像12bに対しサムネイル画像12cの作成操作が行われると、主画像1
2bを縮小して、一覧表示できるように編集して、記憶部2に記憶する。なお、サムネイ
ル画像12cの作成操作については、この方法に限定する必要なく、記憶部2内にサムネ
イル画像12cのない画像が入力された場合に自動的に作成操作に移行しても良い。
When the thumbnail image control unit 1a in the control unit 1 creates the thumbnail image 12c from the operation unit 4 to the main image 12b stored in the storage unit 2 using the display unit 3, the main image 1 is displayed.
2b is reduced, edited so that it can be displayed as a list, and stored in the storage unit 2. Note that the operation for creating the thumbnail image 12c is not limited to this method, and may be automatically transferred to the creation operation when an image without the thumbnail image 12c is input in the storage unit 2.

記憶部2には、制御部1が実行するプログラム、各種の情報データおよび実施形態の画
像データなどが保存されている。
The storage unit 2 stores a program executed by the control unit 1, various information data, image data of the embodiment, and the like.

表示部3は、例えばLCDの表示装置であり、制御部1から出力される表示データを表
示する。そして、制御部1からの新たな起動がない限り、表示部3には同じ内容が表示さ
れる。
The display unit 3 is an LCD display device, for example, and displays display data output from the control unit 1. As long as there is no new activation from the control unit 1, the same content is displayed on the display unit 3.

操作部4は、数字キーや、画像編集の決定・中止などのファンクションキーを含む複数
のキーからなり、利用者が入力操作したキー入力に応じて、キーを識別する識別信号を制
御部1へ通知し、制御部1がその動作を開始する。
The operation unit 4 includes a plurality of keys including numeric keys and function keys for determining and canceling image editing. An identification signal for identifying the key is input to the control unit 1 in accordance with a key input input by the user. The control unit 1 starts its operation.

通信部5は、アンテナ6が基地局から受信した高周波信号を周波数変換し、雑音を除去
した音に復調してディジタル信号にし、制御信号を制御部1に送信する。また、制御部1
1から出力される制御信号を変調、周波数変換および増幅し、アンテナ6から基地局に送
信する。
The communication unit 5 frequency-converts the high-frequency signal received by the antenna 6 from the base station, demodulates the noise-removed sound into a digital signal, and transmits the control signal to the control unit 1. Control unit 1
The control signal output from 1 is modulated, frequency-converted and amplified, and transmitted from the antenna 6 to the base station.

カメラ7は、例えばCCDカメラであり、操作部4から表示部3を用いた画像入力指示
に応答して制御部1により起動され、画像入力を行う。そして、入力された画像は制御部
1の制御によって表示部3に表示される。また、カメラ7によって入力されている画像を
表示部3に表示している状態で、操作部4によって画像の取り込み操作(シャッタ操作)
がなされると、制御部1はカメラ7からの画像を読み込み、記憶部2に記憶することが出
来る。
The camera 7 is a CCD camera, for example, and is activated by the control unit 1 in response to an image input instruction using the display unit 3 from the operation unit 4 and performs image input. The input image is displayed on the display unit 3 under the control of the control unit 1. In addition, an image input operation (shutter operation) is performed by the operation unit 4 while an image input by the camera 7 is displayed on the display unit 3.
Then, the control unit 1 can read an image from the camera 7 and store it in the storage unit 2.

次に、実施形態のサムネイル機能制御部1aによって処理される画像編集動作を、図2
、図3を用いて説明する。なお、以下では説明の便宜上、1つのクラスタの容量を1クラ
スタサイズj(jと略すこともある)、サムネイル画像12cを作成せずに画像情報12
aと主画像12bのみを保存したときのクラスタギャップをクラスタギャップkとし(k
と略すこともある)、サムネイル画像12cを表示部3に表示した場合において、ユーザ
が目視可能な最低限度のサムネイル画像を作成するために必要な画像容量を、サムネイル
画像最小容量mとし(mと略すこともある)、新たに作成するサムネイル画像12cの容
量を、サムネイル画像容量n(nと略すこともある)とする。
Next, an image editing operation processed by the thumbnail function control unit 1a of the embodiment is shown in FIG.
This will be described with reference to FIG. In the following, for convenience of explanation, the capacity of one cluster is one cluster size j (sometimes abbreviated as j), and the image information 12 is created without creating the thumbnail image 12c.
The cluster gap when only a and the main image 12b are stored is defined as a cluster gap k (k
In the case where the thumbnail image 12c is displayed on the display unit 3, the image capacity necessary for creating the minimum thumbnail image that can be viewed by the user is the thumbnail image minimum capacity m (m and The capacity of the newly created thumbnail image 12c is assumed to be a thumbnail image capacity n (may be abbreviated as n).

図2(a)、図2(b)は、実施形態における記憶部2にサムネイル画像を含む画像デ
ータを記憶したときの記憶部2の記憶形態を示したものである。記憶部2への書き込み及
び読み出し制御は、全て制御部1またはサムネイル機能制御部1aによって行われる。
FIG. 2A and FIG. 2B show the storage form of the storage unit 2 when image data including thumbnail images is stored in the storage unit 2 in the embodiment. Control of writing to and reading from the storage unit 2 are all performed by the control unit 1 or the thumbnail function control unit 1a.

そして、記憶部2のファイルはクラスタ単位で管理されており、既存の画像データ11
をファイル移動やファイル送受信する際は、1ないし複数のクラスタに分割して処理され
る。また、新しい画像データ12を記憶部2に保存する際には、画像情報12aと主画像
12bとサムネイル画像12cを同一ファイル内に前詰めで保存する。なお、画像情報1
2a、主画像12b、サムネイル画像12cの保存は、どの順番で保存しても良い。
The files in the storage unit 2 are managed in units of clusters, and the existing image data 11
When moving a file or sending / receiving a file, it is divided into one or a plurality of clusters. Further, when the new image data 12 is stored in the storage unit 2, the image information 12a, the main image 12b, and the thumbnail image 12c are stored in the same file in the left-justified manner. Image information 1
2a, main image 12b, and thumbnail image 12c may be stored in any order.

図3は、サムネイル機能制御部1aによるサムネイル画像作成及び保存の動作手順を示
したフローチャートである。なお、入力画像はカメラ7に限らず、アンテナ6、通信部5
によって基地局から受信した画像であってもよいが、ここではカメラ7で撮影した入力画
像を例に説明する。
FIG. 3 is a flowchart showing an operation procedure of thumbnail image creation and storage by the thumbnail function control unit 1a. The input image is not limited to the camera 7, but the antenna 6 and the communication unit 5.
However, here, an input image taken by the camera 7 will be described as an example.

まず、カメラ7が制御部1により起動されると、画像入力の動作を開始する。即ち、カ
メラ7から得た入力画像を制御部1が受信して、記憶部2の表示用記憶部に一時保存する
。次に、制御部1は、記憶部2の表示用記憶部に一時保存した画像データを読み出して、
表示部3に表示する。
First, when the camera 7 is activated by the control unit 1, an image input operation is started. That is, the control unit 1 receives an input image obtained from the camera 7 and temporarily stores it in the display storage unit of the storage unit 2. Next, the control unit 1 reads out the image data temporarily stored in the display storage unit of the storage unit 2, and
Displayed on the display unit 3.

そして、利用者が操作部4から撮影決定操作(シャッタ操作)を行うと、制御部1はそ
の操作時点で記憶部2の表示用記憶部に一時保存していた画像データを確定し、その確定
した画像データを表示部3に表示する。制御部1は、この確定した画像データを主画像1
2bとして記憶部2に記憶すると共に、その画像情報12aを作成して記憶部2に記憶す
る。
When the user performs a shooting determination operation (shutter operation) from the operation unit 4, the control unit 1 determines the image data temporarily stored in the display storage unit of the storage unit 2 at the time of the operation, and the determination The obtained image data is displayed on the display unit 3. The control unit 1 converts the determined image data into the main image 1
2b is stored in the storage unit 2 and the image information 12a is created and stored in the storage unit 2.

次に、利用者が操作部4から画像保存決定の指示を行うと、制御部1のサムネイル機能
制御部1aは、記憶部2から主画像12bを読み取る(ステップ31)。
Next, when the user gives an instruction to determine image saving from the operation unit 4, the thumbnail function control unit 1a of the control unit 1 reads the main image 12b from the storage unit 2 (step 31).

次に、サムネイル機能制御部1aは、画像情報12aと主画像12bの合計容量を計算
し、クラスタギャップk(空き領域)を計算する(ステップ32)。なお、このステップ
32は、ステップ31の画像確定時点でクラスタギャップkの計算を始めてもよい。
Next, the thumbnail function control unit 1a calculates the total capacity of the image information 12a and the main image 12b, and calculates the cluster gap k (empty area) (step 32). In this step 32, the calculation of the cluster gap k may be started at the time when the image is determined in step 31.

次に、サムネイル機能制御部1aは、ステップ32で計算されたクラスタギャップkの
大きさにより、サムネイル画像容量nを決定する。その前提としてサムネイル画像最小容
量mをあらかじめ決定しておく必要がある。サムネイル画像最小容量mとは、表示部3の
大きさ、一度に表示するサムネイル画像の枚数、解像度、カメラの画素数などによって異
なるが、サムネイル画像12cを表示部3に表示してユーザが目視可能なサムネイル画像
を作成し、それを保存するために最低限度必要な画像容量である。ただ、これに限定する
ことなく、カメラ7によって撮影することの出来る画像容量より小さい値であれば任意な
値に設定してもよい。
Next, the thumbnail function control unit 1a determines the thumbnail image capacity n based on the size of the cluster gap k calculated in step 32. As a precondition, it is necessary to determine the minimum thumbnail image capacity m in advance. The thumbnail image minimum capacity m differs depending on the size of the display unit 3, the number of thumbnail images to be displayed at once, the resolution, the number of pixels of the camera, etc., but the thumbnail image 12c is displayed on the display unit 3 and can be viewed by the user. This is the minimum image capacity required to create a thumbnail image and save it. However, the present invention is not limited to this, and any value that is smaller than the image capacity that can be captured by the camera 7 may be set.

そして、サムネイル機能制御部1aは、ステップ32で計算したクラスタギャップkと
サムネイル画像最小容量mとを比較する(ステップ33)。クラスタギャップkがサムネ
イル画像最小容量mと同じであるか、それ以上であれば(k≧m)、サムネイル画像容量
nをステップ32で計算したクラスタギャップkの容量(n=k)とする(図2(a)参
照)(ステップ34a)。一方、クラスタギャップkがサムネイル画像最小容量mより小
さいものであれば(k<m)、サムネイル画像容量nを、ステップ32で計算したクラス
タギャップkと1クラスタサイズj(例えば、1キロバイト)を加えた容量(n=k+j
)とする(図2(b)参照)(ステップ34b)。なお、1クラスタサイズjを加えた段
階で、(k+j)の値がまだサムネイル画像最小容量mより小さい場合は、サムネイル画
像最小容量mを越えるまで1クラスタサイズjを加えつづけ、その値(k+xj、x=1
、2、3…)をサムネイル画像容量nとしてステップ35へ進むものとする。
Then, the thumbnail function control unit 1a compares the cluster gap k calculated in step 32 with the thumbnail image minimum capacity m (step 33). If the cluster gap k is equal to or larger than the minimum thumbnail image capacity m (k ≧ m), the thumbnail image capacity n is set to the capacity of the cluster gap k calculated in step 32 (n = k) (FIG. 2 (a)) (step 34a). On the other hand, if the cluster gap k is smaller than the thumbnail image minimum capacity m (k <m), the thumbnail gap n is added to the cluster gap k calculated in step 32 and one cluster size j (for example, 1 kilobyte). Capacity (n = k + j
(See FIG. 2B) (step 34b). When the value of (k + j) is still smaller than the thumbnail image minimum capacity m at the stage of adding one cluster size j, the one cluster size j is continuously added until the thumbnail image minimum capacity m is exceeded, and the value (k + xj, x = 1
2, 3...) As a thumbnail image capacity n, and the process proceeds to step 35.

例えば、新しい画像データ12の画像情報12aが128バイト、主画像12bが52
00バイト、サムネイル画像最小容量mが600バイト、1クラスタサイズjが1キロバ
イトであったと想定すると、画像情報12aと主画像12bとを記憶するための容量とし
て5328バイトが必要である。このため、新しい画像データ12を記憶する容量として
6つの連続するクラスタが必要とし、クラスタギャップkは672(=6000−128
−5200)バイトとなる。そして、クラスタギャップk(=672バイト)とサムネイ
ル画像最小容量m(=600バイト)とを比較すると、k≧mの条件が成立する。即ち、
図2(a)に示すように、クラスタギャップk(=672バイト)にサムネイル画像最小
容量m(=600バイト)を記憶させることが可能であると判断できる。そこで本実施の
形態では、ステップ34aが実行され、サムネイル画像容量nをクラスタギャップk(=
672バイト)に変更して次のステップ35へ進む。
For example, the image information 12a of the new image data 12 is 128 bytes, and the main image 12b is 52
Assuming 00 bytes, the thumbnail image minimum capacity m is 600 bytes, and the cluster size j is 1 kilobyte, 5328 bytes are required as a capacity for storing the image information 12a and the main image 12b. Therefore, six consecutive clusters are required as a capacity for storing the new image data 12, and the cluster gap k is 672 (= 6000−128).
−5200) bytes. When the cluster gap k (= 672 bytes) and the thumbnail image minimum capacity m (= 600 bytes) are compared, the condition of k ≧ m is established. That is,
As shown in FIG. 2A, it can be determined that the thumbnail image minimum capacity m (= 600 bytes) can be stored in the cluster gap k (= 672 bytes). Therefore, in the present embodiment, step 34a is executed, and the thumbnail image capacity n is set to the cluster gap k (=
672 bytes) and proceed to the next step 35.

また、新しい画像データ12の画像情報12aが128バイト、主画像12bが580
0バイト、サムネイル画像最小容量mが600バイト、1クラスタサイズjが1キロバイ
トであったと想定すると、画像情報12aと主画像12bとを記憶するための容量として
5928バイトが必要である。このため、新しい画像データ12を記憶する領域として6
つの連続するクラスタが必要とし、クラスタギャップkは72(=6000−128−5
800)バイトとなる。そして、クラスタギャップk(=72バイト)とサムネイル画像
最小容量m(=600バイト)とを比較すると、k<mの条件が成立する。即ち、図2(
b)に示すように、クラスタギャップk(=72バイト)にはサムネイル画像最小容量m
(=600バイト)を記憶させるのに必要な容量ではないため、更に1クラスタ分の容量
を確保する必要があると判断できる。そこで本実施形態では、ステップ34bが実行され
、サムネイル画像容量nをクラスタギャップk(72バイト)に1クラスタサイズ(1k
バイト(=1000バイト))を加算した1072バイトに変更して、次のステップ35
へ進む。
The image information 12a of the new image data 12 is 128 bytes, and the main image 12b is 580.
Assuming that 0 bytes, thumbnail image minimum capacity m is 600 bytes, and cluster size j is 1 kilobyte, 5928 bytes are required as a capacity for storing image information 12a and main image 12b. For this reason, the area for storing new image data 12 is 6
Two consecutive clusters are required, and the cluster gap k is 72 (= 6000−128−5).
800) bytes. When the cluster gap k (= 72 bytes) and the thumbnail image minimum capacity m (= 600 bytes) are compared, the condition of k <m is satisfied. That is, FIG.
As shown in b), the thumbnail image minimum capacity m is included in the cluster gap k (= 72 bytes).
Since it is not a capacity necessary for storing (= 600 bytes), it can be determined that it is necessary to further secure a capacity for one cluster. Therefore, in the present embodiment, step 34b is executed, and the thumbnail image capacity n is set to a cluster gap k (72 bytes) and one cluster size (1k).
Byte (= 1000 bytes)) is added to 1072 bytes and the next step 35
Proceed to

次に、サムネイル機能制御部1aは、サムネイル画像容量nが決定したら、主画像12
bのサムネイル画像をサムネイル画像容量nに合わせて作成する(ステップ35)。この
作成方法の例として、間引き方法や解像度減少等の後に圧縮する方法等、様々なものがあ
るが、ここでは限定しない。なお、圧縮する際に、画像圧縮の規格によりサムネイル画像
容量nに完全に一致できない場合は、サムネイル画像容量nより小さく、且つサムネイル
画像容量nに一番近い最適な値に設定する。
Next, when the thumbnail image capacity n is determined, the thumbnail function control unit 1a determines the main image 12
The thumbnail image b is created in accordance with the thumbnail image capacity n (step 35). Examples of this creation method include various methods such as a thinning method and a method of compressing after resolution reduction, but are not limited here. Note that, when the compression cannot be made to completely match the thumbnail image capacity n due to the image compression standard, an optimal value that is smaller than the thumbnail image capacity n and closest to the thumbnail image capacity n is set.

最後に、サムネイル機能制御部1aは、サムネイル画像12cの作成を完了したら、画
像情報12aと主画像12bとサムネイル画像12cを1つのファイルとして記憶部2に
保存する(ステップ36)。なお、この場合、画像情報12aと主画像12bとサムネイ
ル画像12cの保存順序はどの様にしても良い。
Finally, when the thumbnail function control unit 1a completes the creation of the thumbnail image 12c, it stores the image information 12a, the main image 12b, and the thumbnail image 12c as one file in the storage unit 2 (step 36). In this case, the image information 12a, the main image 12b, and the thumbnail image 12c may be stored in any order.

本発明の実施の形態によれば、サムネイル画像12cの画像容量nを主画像12bの容
量と画像情報12aとの合計容量と、サムネイル画像最小容量mによって動的に決めるこ
とが出来るため、クラスタギャップの発生を抑えることができる。そして、本発明の実施
の形態では、サムネイル画像最小容量m以上の容量でサムネイル画像を作成し、記憶部2
に保存することができるため、サムネイル画像の画質を向上することができる。
According to the embodiment of the present invention, since the image capacity n of the thumbnail image 12c can be dynamically determined by the total capacity of the main image 12b and the image information 12a and the thumbnail image minimum capacity m, the cluster gap Can be suppressed. In the embodiment of the present invention, a thumbnail image is created with a capacity equal to or greater than the minimum thumbnail image capacity m, and the storage unit 2
Therefore, it is possible to improve the image quality of thumbnail images.

本発明による縮小画像作成方法および携帯情報機器の第2の実施の形態を図4、図5を
参照して説明する。
A second embodiment of the reduced image creation method and portable information device according to the present invention will be described with reference to FIGS.

図4は、本発明を携帯電話機に適用した場合のサムネイル機能制御部の動作を示すフロー
チャートを表したものである。この第2の実施の形態を携帯電話機に適用した場合の内部
構成のブロック図は図1に示された第1の実施の形態を携帯電話機に適用した場合と同一
であり、サムネイル機能制御部1aの内部の動作が異なる。また、図4に示す第2の実施
の形態のサムネイル機能制御部1aの内部の動作において、図3に示す第1の実施の形態
と同一ステップの場合は同一符号で示し、その説明を省略する。
FIG. 4 is a flowchart showing the operation of the thumbnail function control unit when the present invention is applied to a mobile phone. The block diagram of the internal configuration when this second embodiment is applied to a mobile phone is the same as when the first embodiment shown in FIG. 1 is applied to a mobile phone, and the thumbnail function control unit 1a. The internal operation of is different. Also, in the internal operation of the thumbnail function control unit 1a of the second embodiment shown in FIG. 4, the same steps as those of the first embodiment shown in FIG. .

まず、入力画像を確定、読み取りを行い(ステップ31)、クラスタギャップkを計算
する(ステップ32)。ここまでは第1の実施の形態と同一である。
First, the input image is confirmed and read (step 31), and the cluster gap k is calculated (step 32). The steps so far are the same as those in the first embodiment.

その後、主画像12bを機器に定められたサムネイル画像ピクセルサイズ(以後縦f1
×横f2とする)に合わせて間引き等を行い、更にあらかじめ定められた圧縮率pで圧縮
した際のサムネイル画像容量(以下この容量をn1とする)を求める(ステップ43)。
After that, the main image 12b is converted into a thumbnail image pixel size (hereinafter referred to as vertical f1) determined for the device.
In step 43, the thumbnail image capacity (hereinafter referred to as n1) when the image is compressed at a predetermined compression rate p is obtained.

ここで、あらかじめ定められた圧縮率pとは、サムネイル画像12cを表示部3に表示し
てユーザが目視して他画像と識別可能な可能である最高の圧縮率であることが望ましいが
、特に限定しない。
Here, the predetermined compression rate p is preferably the highest compression rate at which the thumbnail image 12c is displayed on the display unit 3 and visually distinguishable from other images by the user. Not limited.

次に、ステップ43で求めたサムネイル画像容量n1と、ステップ32で計算したクラ
スタギャップkと比較する(ステップ44)。そして、ステップ44で求めたn1がステ
ップ32で計算したクラスタギャップより小さいものであれば(n1<k)、サムネイル
画像容量nを、ステップ32で計算したクラスタギャップkの容量(n=k)とする(図
2(a)参照)(ステップ45a)。一方、n1がクラスタギャップk以上の場合は(n
1≧k)、サムネイル画像容量nを、ステップ32で計算したクラスタギャップkと1ク
ラスタサイズj(例えば、1キロバイト)を加えた容量(n=k+j)とする(図2(b
)参照)(ステップ45b)。
Next, the thumbnail image capacity n1 obtained in step 43 is compared with the cluster gap k calculated in step 32 (step 44). If n1 obtained in step 44 is smaller than the cluster gap calculated in step 32 (n1 <k), the thumbnail image capacity n is set to the cluster gap k capacity (n = k) calculated in step 32. (See FIG. 2A) (step 45a). On the other hand, when n1 is greater than or equal to the cluster gap k, (n
1 ≧ k), and the thumbnail image capacity n is set to a capacity (n = k + j) obtained by adding the cluster gap k calculated in step 32 and one cluster size j (for example, 1 kilobyte) (FIG. 2B).
)) (Step 45b).

次に、サムネイル機能制御部1aは、サムネイル画像容量nが決定したら、主画像12
bをサムネイル画像容量nに合わせて圧縮する(ステップ46)。なお、圧縮する際に、
画像圧縮の規格によりサムネイル画像容量nに一致しない場合は、サムネイル画像容量n
より小さく、且つサムネイル画像容量nに一番近い最適な値に設定する。
Next, when the thumbnail image capacity n is determined, the thumbnail function control unit 1a determines the main image 12
b is compressed in accordance with the thumbnail image capacity n (step 46). When compressing,
If the image compression standard does not match the thumbnail image capacity n, the thumbnail image capacity n
It is set to an optimum value that is smaller and closest to the thumbnail image capacity n.

最後に、サムネイル機能制御部1aは、サムネイル画像12cの作成を完了したら、画
像情報12aと主画像12bとサムネイル画像12cを1つのファイルとして記憶部2に
保存する(ステップ47)。なお、この場合、画像情報12aと主画像12bとサムネイ
ル画像12cの保存順序はどの様にしても良い。
Finally, after completing the creation of the thumbnail image 12c, the thumbnail function control unit 1a stores the image information 12a, the main image 12b, and the thumbnail image 12c as one file in the storage unit 2 (step 47). In this case, the image information 12a, the main image 12b, and the thumbnail image 12c may be stored in any order.

また、ステップ32以降は次のようにしてもよい。図5は、本発明を携帯電話機に適用
した場合のサムネイル機能制御部1aの動作を示すフローチャートを表したものである。
Further, after step 32, the following may be performed. FIG. 5 is a flowchart showing the operation of the thumbnail function control unit 1a when the present invention is applied to a mobile phone.

ステップ32が終わると、主画像12bを機器に定められたサムネイル画像ピクセルサイ
ズ(f1×f2)に合わせて間引き等を行い、サムネイル画像容量nをステップ32で計
算したクラスタギャップkとする(n=k)(ステップ53)。そして、サムネイル画像
容量nに合うように圧縮して、サムネイル画像を作成する。更に、その作成時の圧縮率も
求める(以下、この圧縮率をp1とする)(ステップ54)。その後、ステップ54で求
めた圧縮率p1とあらかじめ定められた圧縮率pとを比較する(ステップ55)。ここで
、あらかじめ定められた圧縮率pとは、サムネイル画像12cを表示部3に表示してユー
ザが目視して他の画像と識別可能な可能である最高の圧縮率であることが望ましいが、特
に限定しない。
When step 32 is completed, the main image 12b is thinned out in accordance with the thumbnail image pixel size (f1 × f2) determined for the device, and the thumbnail image capacity n is set to the cluster gap k calculated in step 32 (n = k) (step 53). Then, a thumbnail image is created by compressing it so as to fit the thumbnail image capacity n. Further, the compression rate at the time of creation is also obtained (hereinafter, this compression rate is referred to as p1) (step 54). Thereafter, the compression rate p1 obtained in step 54 is compared with a predetermined compression rate p (step 55). Here, the predetermined compression rate p is preferably the highest compression rate at which the thumbnail image 12c is displayed on the display unit 3 and visually distinguishable from other images by the user. There is no particular limitation.

その後、ステップ54で求めた圧縮率p1があらかじめ定められた圧縮率pより大きい
場合は(p1>p)、サムネイル画像容量nの値を1クラスタサイズjだけ加えた容量に
変更して(n=k+j)、再度主画像12bを機器に定められたサムネイル画像ピクセル
サイズ(f1×f2)に合わせて間引き等を行い、サムネイル画像容量nの容量に合わせ
て圧縮しステップ54に戻る(ステップ56)。また、ステップ54で求めた圧縮率p1
があらかじめ定められた圧縮率p以下であった場合は(p1≦p)、ステップ54で圧縮
した画像をサムネイル画像12cとして、画像情報12aと主画像12bとサムネイル画
像12cを1つのファイルとして記憶部2に保存する(ステップ56)。なお、この場合
、画像情報12aと主画像12bとサムネイル画像12cの保存順序はどの様にしても良
い。
Thereafter, when the compression rate p1 obtained in step 54 is larger than the predetermined compression rate p (p1> p), the value of the thumbnail image capacity n is changed to a capacity obtained by adding one cluster size j (n = k + j), the main image 12b is thinned again according to the thumbnail image pixel size (f1 × f2) determined for the device, compressed according to the thumbnail image capacity n, and the process returns to step 54 (step 56). Also, the compression rate p1 obtained in step 54
Is equal to or less than a predetermined compression ratio p (p1 ≦ p), the image compressed in step 54 is used as the thumbnail image 12c, and the image information 12a, the main image 12b, and the thumbnail image 12c are stored as one file. 2 (step 56). In this case, the image information 12a, the main image 12b, and the thumbnail image 12c may be stored in any order.

本発明の第2の実施の形態によれば、サムネイル画像12cの画像容量nを主画像12
bの容量と圧縮率pによって動的に決めることが出来るため、クラスタギャップの発生を
抑えることができる。また、従来のサムネイル画像作成方法(予め決められたサムネイル
画像ピクセルサイズや予め決められた圧縮率によるサムネイル画像方法)によって記憶部
2に画像を保存する際に必要なクラスタ数を変化させずに、圧縮率を最大限に下げてサム
ネイル画像を作成し、記憶部2に保存することができるため、サムネイル画像の画質を向
上することができる。
According to the second embodiment of the present invention, the image capacity n of the thumbnail image 12 c is set to the main image 12.
Since it can be determined dynamically by the capacity of b and the compression rate p, the occurrence of a cluster gap can be suppressed. Further, without changing the number of clusters necessary for storing an image in the storage unit 2 by a conventional thumbnail image creation method (thumbnail image method with a predetermined thumbnail image pixel size or a predetermined compression rate), Since the thumbnail image can be created with the compression ratio reduced to the maximum and stored in the storage unit 2, the image quality of the thumbnail image can be improved.

本発明による縮小画像作成方法および携帯情報機器の第3の実施の形態を図6を参照し
て説明する。
A third embodiment of the reduced image creating method and portable information device according to the present invention will be described with reference to FIG.

図6は、本発明を携帯電話機に適用した場合のサムネイル機能制御部1aの動作を示すフ
ローチャートを表したものである。この第3の実施の形態を携帯電話機に適用した場合の
内部構成のブロック図は図1に示された第1の実施の形態を携帯電話機に適用した場合と
同一であり、サムネイル機能制御部1aの内部の動作だけが異なる。また、図6に示す第
3の実施の形態のサムネイル機能制御部1aの内部の動作において、図3に示す第1の実
施の形態と同一ステップの場合は同一符号で示し、その説明を省略する。
FIG. 6 is a flowchart showing the operation of the thumbnail function control unit 1a when the present invention is applied to a mobile phone. The block diagram of the internal configuration when this third embodiment is applied to a mobile phone is the same as when the first embodiment shown in FIG. 1 is applied to a mobile phone, and the thumbnail function control unit 1a Only the internal operation of is different. Further, in the internal operation of the thumbnail function control unit 1a of the third embodiment shown in FIG. 6, the same steps as those of the first embodiment shown in FIG. .

まず、入力画像を確定、読み取りを行い(ステップ31)、クラスタギャップkを計算
する(ステップ32)。ここまでは第1の実施の形態と同一である。
First, the input image is confirmed and read (step 31), and the cluster gap k is calculated (step 32). The steps so far are the same as those in the first embodiment.

その後、主画像12bを機器に定められたサムネイル画像ピクセルサイズ(以後、縦f
1×横f2とする)に合わせて間引き等を行い、更にあらかじめ定められた圧縮率pで圧
縮した際のサムネイル画像容量(以下この容量をn1とする)を求める(ステップ63)
。ここで、あらかじめ定められた圧縮率pとは、サムネイル画像12cを表示部3に表示
してユーザが目視して他画像と識別可能な可能である最高の圧縮率であることが望ましい
が、特に限定しない。
Thereafter, the main image 12b is converted into a thumbnail image pixel size (hereinafter referred to as vertical f) determined for the device.
The thumbnail image capacity (hereinafter, this capacity is referred to as n1) when compressed at a predetermined compression rate p is obtained (step 63).
. Here, the predetermined compression rate p is preferably the highest compression rate at which the thumbnail image 12c is displayed on the display unit 3 and visually distinguishable from other images by the user. Not limited.

その後、ステップ63で求めた容量n1とステップ32で求めたクラスタギャップkを比
較する(ステップ64)。そして、クラスタギャップkが容量n1以上であれば(n1≦
k)、サムネイル画像容量nをクラスタギャップkの値として(n=k)、ステップ66
へ進む(ステップ65a)。また、クラスタギャップkが容量n1より小さいならば(n
1>k)、サムネイル画像容量nをクラスタギャップkの値に1クラスタサイズjを加え
た値として(n=k+j)、ステップ66へ進む(ステップ65b)。なお、1クラスタ
サイズjを加えた段階で、(k+j)の値がまだ容量n1より小さい場合は、容量n1を
越えるまで1クラスタサイズjを加えつづけ、その値(k+xj、x=1、2、3…)を
サムネイル画像容量nとしてステップ65へ進むものとする。
Thereafter, the capacity n1 obtained in step 63 is compared with the cluster gap k obtained in step 32 (step 64). If the cluster gap k is greater than or equal to the capacitance n1, n1 ≦
k), with the thumbnail image capacity n as the value of the cluster gap k (n = k), step 66
(Step 65a). If the cluster gap k is smaller than the capacitance n1, (n
1> k), the thumbnail image capacity n is set to a value obtained by adding one cluster size j to the value of the cluster gap k (n = k + j), and the process proceeds to Step 66 (Step 65b). When the value of (k + j) is still smaller than the capacity n1 at the stage of adding the one cluster size j, the one cluster size j is continuously added until the capacity n1 is exceeded, and the value (k + xj, x = 1, 2, 3) is assumed to be the thumbnail image capacity n, and the process proceeds to step 65.

次にステップ63で使用した予め決められたサムネイル画像ピクセルサイズ(f1×f
2)(縦がf1、横がf2)を1だけ大きい値としそれぞれfr1、fr2とする(fr
1=f1+1、fr2=f2+1)(ステップ66)。その後、ステップ66で算出され
たサムネイル画像ピクセルサイズ(fr1×fr2)と、ステップ63で用いた予め決め
られた圧縮率pとを用いて、主画像12bのサムネイル画像を作成した際の画像容量を計
算し、その画像容量をn2とする(以下、容量n2とする)(ステップ67)。
Next, the predetermined thumbnail image pixel size used in step 63 (f1 × f
2) (vertical is f1, horizontal is f2) is set to a larger value by 1 and is fr1 and fr2, respectively (fr
1 = f1 + 1, fr2 = f2 + 1) (step 66). Thereafter, using the thumbnail image pixel size (fr1 × fr2) calculated in step 66 and the predetermined compression ratio p used in step 63, the image capacity when the thumbnail image of the main image 12b is created is calculated. The calculated image capacity is set to n2 (hereinafter referred to as capacity n2) (step 67).

その後、ステップ67で求められた容量n2と、ステップ65aまたはステップ65b
で求められたサムネイル画像容量nとを比較する(ステップ68)。この時、ステップ6
7で求められた容量n2が、ステップ65aまたはステップ65bで求められたサムネイ
ル画像容量nより小さい場合は(n2<n)、ステップ67で用いたサムネイル画像ピク
セルサイズfr1およびfr2の値を1増やし(fr1=fr1+1、fr2=fr2+
1)(図6のa方向、ステップ68a)、その後、ステップ67に戻り、ステップ67の
動作を再度行う。
Thereafter, the capacity n2 obtained in step 67 and the step 65a or step 65b.
The thumbnail image capacity n obtained in step (1) is compared (step 68). At this time, step 6
When the capacity n2 obtained in step 7 is smaller than the thumbnail image capacity n obtained in step 65a or step 65b (n2 <n), the values of the thumbnail image pixel sizes fr1 and fr2 used in step 67 are increased by 1 ( fr1 = fr1 + 1, fr2 = fr2 +
1) (direction a in FIG. 6, step 68a). Thereafter, the process returns to step 67 and the operation of step 67 is performed again.

また、n2とnを比較した結果、ステップ67で求められた容量nが、ステップ65a
またはステップ65bで求められたサムネイル画像容量nと等しければ(n2=n)、ス
テップ67で用いたサムネイル画像ピクセルサイズfr1およびfr2の値と、予め決め
られた圧縮率pとを用いて、サムネイル画像容量nに合うようにサムネイル画像を作成し
、ステップ69へ進む(図6のb方向、ステップ68b)。
Further, as a result of comparing n2 and n, the capacity n obtained in step 67 is equal to step 65a.
Alternatively, if it is equal to the thumbnail image capacity n obtained in step 65b (n2 = n), the thumbnail image pixel sizes fr1 and fr2 used in step 67 and a predetermined compression rate p are used to generate a thumbnail image. A thumbnail image is created so as to match the capacity n, and the process proceeds to step 69 (direction b in FIG. 6, step 68b).

また、n2とnを比較した結果、ステップ67で求められた容量n2が、ステップ65
aまたはステップ65bで求められたサムネイル画像容量nより大きい場合は(n2>n
)、ステップ67で用いたサムネイル画像ピクセルサイズfr1およびfr2の値を1減
らし(fr1=fr1−1、fr2=fr2−1)、求められたサムネイル画像ピクセル
サイズfr1およびfr2の値と、ステップ67で用いた予め決められた圧縮率pとを用
いて、ステップ65aおよびステップ65bで求められたサムネイル画像容量nに合うよ
うにサムネイル画像を作成し、ステップ69へ進む(図6のc方向、ステップ68c)。
Further, as a result of comparing n2 and n, the capacity n2 obtained in step 67 is equal to step 65.
If the thumbnail image capacity n obtained in step a or step 65b is larger than (n2> n
), The thumbnail image pixel sizes fr1 and fr2 used in step 67 are reduced by 1 (fr1 = fr1-1, fr2 = fr2-1), and the obtained thumbnail image pixel sizes fr1 and fr2 are Using the predetermined compression ratio p used, a thumbnail image is created so as to fit the thumbnail image capacity n obtained in step 65a and step 65b, and the process proceeds to step 69 (direction c in FIG. 6, step 68c). ).

なお、ステップ68a、ステップ68b、およびステップ68cにおいて、ステップ6
7で用いたfr1、fr2の値が複数ある場合は、最後に用いたものを採用するものとす
る。
In step 68a, step 68b, and step 68c, step 6 is performed.
When there are a plurality of fr1 and fr2 values used in step 7, the last used one is adopted.

最後に、サムネイル機能制御部1aは、サムネイル画像12cの作成を完了したら、画
像情報12aと主画像12bとサムネイル画像12cを1つのファイルとして記憶部2に
保存する(ステップ69)。なお、この場合、画像情報12aと主画像12bとサムネイ
ル画像12cの保存順序はどの様にしても良い。
Finally, after completing the creation of the thumbnail image 12c, the thumbnail function control unit 1a stores the image information 12a, the main image 12b, and the thumbnail image 12c as one file in the storage unit 2 (step 69). In this case, the image information 12a, the main image 12b, and the thumbnail image 12c may be stored in any order.

なお、ステップ66乃至ステップ69では、予め決められた圧縮率pを固定して、サム
ネイル画像容量nに合うようにサムネイル画像ピクセルサイズ(f1×f2)を縦横同時
に1ずつ増やして決定した後(fr1×fr2)にサムネイル画像を作成していたが、サ
ムネイル画像ピクセルサイズは縦横同時に1ずつ増やすことに限定されず、縦サイズだけ
1ずつ増やす、横サイズだけ1ずつ増やすなど(fr1、fr2を可変にする)、趣旨を
逸脱しない範囲で応用してもよい。
In steps 66 to 69, a predetermined compression rate p is fixed, and the thumbnail image pixel size (f1 × f2) is increased by 1 at a time in the vertical and horizontal directions so as to fit the thumbnail image capacity n (fr1). Although the thumbnail image was created at xfr2), the pixel size of the thumbnail image is not limited to incrementing by 1 at the same time in the vertical and horizontal directions, but the vertical size is increased by 1 or the horizontal size is increased by 1 (fr1 and fr2 are made variable May be applied within a range not departing from the spirit.

本発明の第3の実施の形態によれば、サムネイル画像12cの画像容量nを主画像12
bの容量とサムネイル画像ピクセルサイズfr1・fr2によって動的に決めることが出
来るため、クラスタギャップの発生を抑えることができる。そして、従来のサムネイル画
像作成方法(予め決められたサムネイル画像ピクセルサイズや予め決められた圧縮率によ
るサムネイル画像方法)で記憶部2に保存する際のクラスタ数を変化させずに、サムネイ
ル画像ピクセルサイズを最大限にしてサムネイル画像を作成し、記憶部2に保存すること
ができるため、表示部3に表示されるサムネイル画像を大きくすることができる。
According to the third embodiment of the present invention, the image capacity n of the thumbnail image 12 c is set to the main image 12.
Since it can be dynamically determined by the capacity of b and the thumbnail image pixel sizes fr1 and fr2, the occurrence of a cluster gap can be suppressed. Then, the thumbnail image pixel size can be changed without changing the number of clusters when the image is stored in the storage unit 2 by a conventional thumbnail image creation method (a thumbnail image method with a predetermined thumbnail image pixel size or a predetermined compression rate). Can be created and saved in the storage unit 2, so that the thumbnail image displayed on the display unit 3 can be enlarged.

なお、以上の第1ないし第3の実施の形態は携帯情報機器のうち携帯電話を想定したも
のであるが、デジタルカメラ、PDAなどに応用可能である。
The first to third embodiments described above are assumed to be mobile phones among portable information devices, but can be applied to digital cameras, PDAs, and the like.

本発明の縮小画像作成方法を携帯電話機に適用した場合における実施例1のブロック図。1 is a block diagram of Embodiment 1 when a reduced image creation method of the present invention is applied to a mobile phone. 本発明の縮小画像作成方法を携帯電話機に適用した場合における実施例1の記憶部のファイル構造を示す図。The figure which shows the file structure of the memory | storage part of Example 1 at the time of applying the reduction image creation method of this invention to a mobile telephone. 本発明の縮小画像作成方法を携帯電話機に適用した場合における第1の実施例のサムネイル機能制御部の動作を示すフローチャート。6 is a flowchart showing the operation of the thumbnail function control unit of the first embodiment when the reduced image creation method of the present invention is applied to a mobile phone. 本発明の縮小画像作成方法を携帯電話機に適用した場合における第2の実施例のサムネイル機能制御部の動作を示すフローチャート。12 is a flowchart showing the operation of the thumbnail function control unit of the second embodiment when the reduced image creation method of the present invention is applied to a mobile phone. 本発明の縮小画像作成方法を携帯電話機に適用した場合における第2の実施例のサムネイル機能制御部の動作を示すフローチャート。12 is a flowchart showing the operation of the thumbnail function control unit of the second embodiment when the reduced image creation method of the present invention is applied to a mobile phone. 本発明の縮小画像作成方法を携帯電話機に適用した場合における第3の実施例のサムネイル機能制御部の動作を示すフローチャート。10 is a flowchart showing the operation of the thumbnail function control unit of the third embodiment when the reduced image creation method of the present invention is applied to a mobile phone. 従来の携帯電話機内の記憶部のファイル構造。The file structure of the memory | storage part in the conventional mobile telephone. 従来の携帯電話機の内部ブロック図。The internal block diagram of the conventional mobile telephone.

符号の説明Explanation of symbols

1 制御部
1a サムネイル機能制御部
2 記憶部
3 表示部
4 操作部
5 通信部
6 アンテナ
7 カメラ
11 既存の画像データ
12a 画像情報
12b 主画像
12c サムネイル画像
13 空き領域
DESCRIPTION OF SYMBOLS 1 Control part 1a Thumbnail function control part 2 Memory | storage part 3 Display part 4 Operation part 5 Communication part 6 Antenna 7 Camera 11 Existing image data 12a Image information 12b Main image 12c Thumbnail image 13 Empty area

Claims (8)

各々が同一容量の複数のクラスタから構成された記憶手段に対して保存する画像データ
から縮小画像を作成する方法であって、
前記画像データを前記記憶手段に保存する際に必要なクラスタ数を求めるとともに、該求
められたクラスタ数の容量で前記画像データが書き込まれない容量を算出するステップと

前記算出された容量が予め定められた閾値以上の場合は、該算出された容量を用いて縮小
画像を作成するステップと、
前記算出された容量が前記閾値より小さい場合は、該算出された容量に1クラスタを加え
た容量を用いて縮小画像を作成するステップと
を有することを特徴とする縮小画像作成方法。
A method for creating a reduced image from image data stored in a storage means each composed of a plurality of clusters having the same capacity,
Obtaining the number of clusters required when storing the image data in the storage means, and calculating a capacity at which the image data is not written with a capacity of the obtained number of clusters;
If the calculated capacity is greater than or equal to a predetermined threshold, creating a reduced image using the calculated capacity; and
And a step of creating a reduced image using a capacity obtained by adding one cluster to the calculated capacity when the calculated capacity is smaller than the threshold.
カメラと、
基地局から送信される音声又は画像データを受信する無線手段と、
各々が同一容量の複数のクラスタから構成され、前記カメラで撮影した画像データ又は前
記無線手段により受信した画像データが記憶される記憶手段と、
前記画像データを表示する表示手段と、
前記画像データから縮小画像を作成する制御手段とを有し、
前記制御手段は、
前記画像データを前記記憶手段に保存する際に必要なクラスタ数を求めるとともに、該求
められたクラスタ数の容量で前記画像データが書き込まれない容量を算出し、
前記算出された容量が予め定められた閾値以上の場合は、該算出された容量を用いて縮小
画像を作成し、
前記算出された容量が前記閾値より小さい場合は、該算出された容量に1クラスタを加え
た容量を用いて縮小画像を作成する
ことを特徴とした携帯情報機器。
A camera,
Wireless means for receiving audio or image data transmitted from the base station;
Storage means for storing image data captured by the camera or image data received by the wireless means, each consisting of a plurality of clusters of the same capacity,
Display means for displaying the image data;
Control means for creating a reduced image from the image data,
The control means includes
Obtaining the number of clusters required when storing the image data in the storage means, and calculating the capacity at which the image data is not written with the capacity of the determined number of clusters,
If the calculated capacity is equal to or greater than a predetermined threshold, a reduced image is created using the calculated capacity,
When the calculated capacity is smaller than the threshold, a reduced image is created using a capacity obtained by adding one cluster to the calculated capacity.
各々が同一容量の複数のクラスタから構成された記憶手段に対して保存する画像データ
から縮小画像を作成する方法であって、
前記画像データを前記記憶手段に保存する際に必要なクラスタ数を求めるとともに、該求
められたクラスタ数の容量で前記画像データが書き込まれない第1の容量を算出するステ
ップと、
前記画像データをあらかじめ定められた圧縮率で圧縮した画像の第2の容量を算出するス
テップと、
前記第1の容量が前記第2の容量以上の場合は、前記第1の容量を用いて縮小画像を作成
するステップと、
前記第1の容量が前記第2の容量より小さい場合は、前記第1の容量に1クラスタを加え
た容量を用いて縮小画像を作成するステップと
を有することを特徴とする縮小画像作成方法。
A method for creating a reduced image from image data stored in a storage means each composed of a plurality of clusters having the same capacity,
Obtaining a number of clusters required when storing the image data in the storage means, and calculating a first capacity in which the image data is not written with a capacity of the obtained number of clusters;
Calculating a second capacity of an image obtained by compressing the image data at a predetermined compression rate;
If the first capacity is greater than or equal to the second capacity, creating a reduced image using the first capacity;
And a step of creating a reduced image using a capacity obtained by adding one cluster to the first capacity when the first capacity is smaller than the second capacity.
カメラと、
基地局から送信される音声又は画像データを受信する無線手段と、
各々が同一容量の複数のクラスタから構成され、前記カメラで撮影した画像データ又は前
記無線手段により受信した画像データが記憶される記憶手段と、
前記画像データを表示する表示手段と、
前記画像データから縮小画像を作成する制御手段とを有し、
前記制御手段は、
前記画像データを前記記憶手段に保存する際に必要なクラスタ数を求めるとともに、該求
められたクラスタ数の容量で前記画像データが書き込まれない第1の容量を算出し、
前記画像データをあらかじめ定められた圧縮率で圧縮した画像の第2の容量を算出し、
前記第1の容量が前記第2の容量以上の場合は、前記第1の容量を用いて縮小画像を作成
し、
前記第1の容量が前記第2の容量より小さい場合は、前記第1の容量に1クラスタを加え
た容量を用いて縮小画像を作成する
ことを特徴とした携帯情報機器。
A camera,
Wireless means for receiving audio or image data transmitted from the base station;
Storage means for storing image data captured by the camera or image data received by the wireless means, each consisting of a plurality of clusters of the same capacity,
Display means for displaying the image data;
Control means for creating a reduced image from the image data,
The control means includes
Obtaining the number of clusters required when storing the image data in the storage means, and calculating a first capacity in which the image data is not written with a capacity of the obtained number of clusters,
Calculating a second capacity of an image obtained by compressing the image data at a predetermined compression rate;
If the first capacity is greater than or equal to the second capacity, a reduced image is created using the first capacity,
When the first capacity is smaller than the second capacity, a reduced image is created using a capacity obtained by adding one cluster to the first capacity.
各々が同一容量の複数のクラスタから構成された記憶手段に対して保存する画像データ
から縮小画像を作成する方法であって、
前記画像データを前記記憶手段に保存する際に必要なクラスタ数を求めるとともに、該求
められたクラスタ数の容量で前記画像データが書き込まれない容量を算出するステップと

前記算出された容量を用いて縮小画像を作成するステップと、
前記作成された縮小画像の圧縮率があらかじめ定められた圧縮率以上の場合は、前記算出
された容量を更に1クラスタを加えた容量におきかえて再度縮小画像を作成するステップ

を有することを特徴とする縮小画像作成方法。
A method for creating a reduced image from image data stored in a storage means each composed of a plurality of clusters having the same capacity,
Obtaining the number of clusters required when storing the image data in the storage means, and calculating a capacity at which the image data is not written with a capacity of the obtained number of clusters;
Creating a reduced image using the calculated capacity;
When the compression rate of the created reduced image is equal to or greater than a predetermined compression rate, the method further comprises the step of creating a reduced image again by replacing the calculated capacity with a capacity obtained by adding one cluster. Reduced image creation method.
カメラと、
基地局から送信される音声又は画像データを受信する無線手段と、
各々が同一容量の複数のクラスタから構成され、前記カメラで撮影した画像データ又は前
記無線手段により受信した画像データが記憶される記憶手段と、
前記画像データを表示する表示手段と、
前記画像データから縮小画像を作成する制御手段とを有し、
前記制御手段は、
前記画像データを前記記憶手段に保存する際に必要なクラスタ数を求めるとともに、該求
められたクラスタ数の容量で前記画像データが書き込まれない容量を算出し、
前記算出された容量を用いて縮小画像を作成し、
前記作成された縮小画像の圧縮率があらかじめ定められた圧縮率以上の場合は、前記算出
された容量を更に1クラスタを加えた容量におきかえて再度縮小画像を作成する
ことを特徴とした携帯情報機器。
A camera,
Wireless means for receiving audio or image data transmitted from the base station;
Storage means for storing image data captured by the camera or image data received by the wireless means, each consisting of a plurality of clusters of the same capacity,
Display means for displaying the image data;
Control means for creating a reduced image from the image data,
The control means includes
Obtaining the number of clusters required when storing the image data in the storage means, and calculating the capacity at which the image data is not written with the capacity of the determined number of clusters,
Create a reduced image using the calculated capacity,
When the compression rate of the generated reduced image is equal to or higher than a predetermined compression rate, the calculated capacity is replaced with a capacity obtained by adding one cluster, and a reduced image is generated again. machine.
各々が同一容量の複数のクラスタから構成された記憶手段に対して保存する画像データ
から縮小画像を作成する方法であって、
前記画像データを前記記憶手段に保存する際に必要なクラスタ数を求めるとともに、該求
められたクラスタ数の容量で前記画像データが書き込まれない第1の容量を算出するステ
ップと、
あらかじめ決められたピクセルサイズ、およびあらかじめ決められた圧縮率で縮小画像を
作成した場合の第2の容量を算出するステップと、
前記第2の容量が前記第1の容量より大きい場合は、前記第1の容量に1クラスタを加え
た容量と前記圧縮率とを用いて縮小画像を作成するステップと、
前記第2の容量が前記第1の容量以下の場合は、前記第1の容量と前記圧縮率とを用いて
縮小画像を作成するステップと
を有することを特徴とする縮小画像作成方法。
A method for creating a reduced image from image data stored in a storage means each composed of a plurality of clusters having the same capacity,
Obtaining a number of clusters required when storing the image data in the storage means, and calculating a first capacity in which the image data is not written with a capacity of the obtained number of clusters;
Calculating a second capacity when a reduced image is created with a predetermined pixel size and a predetermined compression rate;
When the second capacity is larger than the first capacity, creating a reduced image using a capacity obtained by adding one cluster to the first capacity and the compression ratio;
And a step of creating a reduced image using the first capacity and the compression ratio when the second capacity is equal to or less than the first capacity.
カメラと、
基地局から送信される音声又は画像データを受信する無線手段と、
各々が同一容量の複数のクラスタから構成され、前記カメラで撮影した画像データ又は前
記無線手段により受信した画像データが記憶される記憶手段と、
前記画像データを表示する表示手段と、
前記画像データから縮小画像を作成する制御手段とを有し、
前記制御手段は、
前記画像データを前記記憶手段に保存する際に必要なクラスタ数を求めるとともに、該求
められたクラスタ数の容量で前記画像データが書き込まれない第1の容量を算出し、
あらかじめ決められたピクセルサイズ、およびあらかじめ決められた圧縮率で縮小画像を
作成した場合の第2の容量を算出し、
前記第2の容量が前記第1の容量より大きい場合は、前記第1の容量に1クラスタを加え
た容量と前記圧縮率とを用いて縮小画像を作成し、
前記第2の容量が前記第1の容量以下の場合は、前記第1の容量と前記圧縮率とを用いて
縮小画像を作成する
ことを特徴とした携帯情報機器。
A camera,
Wireless means for receiving audio or image data transmitted from the base station;
Storage means for storing image data captured by the camera or image data received by the wireless means, each consisting of a plurality of clusters of the same capacity,
Display means for displaying the image data;
Control means for creating a reduced image from the image data,
The control means includes
Obtaining the number of clusters required when storing the image data in the storage means, and calculating a first capacity in which the image data is not written with a capacity of the obtained number of clusters,
Calculate the second capacity when creating a reduced image with a predetermined pixel size and a predetermined compression rate,
When the second capacity is larger than the first capacity, a reduced image is created using the capacity obtained by adding one cluster to the first capacity and the compression ratio,
When the second capacity is equal to or less than the first capacity, a reduced image is created using the first capacity and the compression rate.
JP2003359622A 2003-10-20 2003-10-20 Reduced image creation method and mobile information apparatus Pending JP2005124078A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003359622A JP2005124078A (en) 2003-10-20 2003-10-20 Reduced image creation method and mobile information apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003359622A JP2005124078A (en) 2003-10-20 2003-10-20 Reduced image creation method and mobile information apparatus

Publications (1)

Publication Number Publication Date
JP2005124078A true JP2005124078A (en) 2005-05-12

Family

ID=34615789

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003359622A Pending JP2005124078A (en) 2003-10-20 2003-10-20 Reduced image creation method and mobile information apparatus

Country Status (1)

Country Link
JP (1) JP2005124078A (en)

Similar Documents

Publication Publication Date Title
US6961087B1 (en) Portable electronic apparatus, image processing method, photographic apparatus, and computer readable recording medium
US20060197849A1 (en) Methods, electronic devices, and computer program products for processing images using multiple image buffers
EP1768388B1 (en) Portable information terminal and image management program
JP2005102126A (en) Image pickup device with communication function and display processing method
CN101150669A (en) Apparatus and method for photographing panoramic image
JP6164317B2 (en) Image display apparatus, image display method, and image display program
JP2002101226A (en) Imaging device, imaging method, memory medium, communication apparatus and method and memory medium
JP2008543203A (en) Temporary image buffer for image processor using compressed raw image
KR20140092517A (en) Compressing Method of image data for camera and Electronic Device supporting the same
CN113810604A (en) Document shooting method and device
JP2010528508A (en) Communication apparatus and image transmission method
JP4618356B2 (en) Electronic device and program
US20070216810A1 (en) Image compositing method and apparatus
CN110049247B (en) Image optimization method and device, electronic equipment and readable storage medium
CN114143471B (en) Image processing method, system, mobile terminal and computer readable storage medium
JP2005124078A (en) Reduced image creation method and mobile information apparatus
KR100605803B1 (en) Apparatus and method for multi-division photograph using hand-held terminal
CN102209193A (en) Transmission apparatus, method and program
KR20070006335A (en) Method for saving and displaying image in wireless terminal
JP2005182629A (en) Information transmitting/receiving system and method, transmitting device and transmitting method, receiving device and receiving method, and program
KR102166331B1 (en) Method and device for quick changing to playback mode
CN115802144B (en) Video shooting method and related equipment
US20060244858A1 (en) Method and system for changing image state in wireless terminal
KR101587106B1 (en) Mobile terminal and method for porcessing digital image thereof
JP2005303397A (en) Communication terminal device, terminal device, operation control method and program

Legal Events

Date Code Title Description
RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20050415

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20050606