Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP5541007B2 - Image display device, image display method, and image display control program - Google Patents
[go: Go Back, main page]

JP5541007B2 - Image display device, image display method, and image display control program - Google Patents

Image display device, image display method, and image display control program Download PDF

Info

Publication number
JP5541007B2
JP5541007B2 JP2010194646A JP2010194646A JP5541007B2 JP 5541007 B2 JP5541007 B2 JP 5541007B2 JP 2010194646 A JP2010194646 A JP 2010194646A JP 2010194646 A JP2010194646 A JP 2010194646A JP 5541007 B2 JP5541007 B2 JP 5541007B2
Authority
JP
Japan
Prior art keywords
image
reading
conversion
parameter
tone
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.)
Expired - Fee Related
Application number
JP2010194646A
Other languages
Japanese (ja)
Other versions
JP2012053200A5 (en
JP2012053200A (en
Inventor
明弘 塚本
善登 山口
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co 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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP2010194646A priority Critical patent/JP5541007B2/en
Publication of JP2012053200A publication Critical patent/JP2012053200A/en
Publication of JP2012053200A5 publication Critical patent/JP2012053200A5/ja
Application granted granted Critical
Publication of JP5541007B2 publication Critical patent/JP5541007B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Controls And Circuits For Display Device (AREA)
  • User Interface Of Digital Computer (AREA)
  • Processing Or Creating Images (AREA)

Description

本発明は、画像表示装置、画像表示方法及び画像表示制御プログラムに関する。   The present invention relates to an image display device, an image display method, and an image display control program.

近年、デジタルカメラの普及により、写真は、デジタル画像データとして保存することが一般的となっている。従来のフィルムカメラによる撮影の場合、プリントを伴うことが多かったが、画像データの場合、撮影したデジタルカメラで閲覧したり、画像データを取り込んだパーソナルコンピュータなどで閲覧したりすることができるため、写真の楽しみ方にも変化が生じている。   In recent years, with the widespread use of digital cameras, it has become common to store photographs as digital image data. In the case of shooting with a conventional film camera, it was often accompanied by printing, but in the case of image data, it can be browsed with a digital camera that has shot, or it can be browsed with a personal computer that captures image data, etc. There are also changes in the way photos are enjoyed.

このような状況において、画像データでも従来のプリント写真と同様の楽しみ方がでるようにするため、いわゆるデジタルフォトフレームが実現され普及している。デジタルフォトフレームでは、撮影した写真を再生して好きなときに鑑賞したり、スライドショー表示したり、画像データを保存するアルバム端末として使用することができる。   Under such circumstances, so-called digital photo frames are realized and popularized so that image data can be enjoyed in the same way as conventional print photographs. The digital photo frame can be used as an album terminal for reproducing a photograph taken and viewing it at any time, displaying a slide show, or storing image data.

また、画像処理を加えることで、例えば、元の写真をベースとしつつも趣の異なる画調の画像(例えば絵画調など)を生成して表示することができるようにしたものも考案されている(例えば、特許文献1)。   In addition, by adding image processing, for example, it has been devised that it is possible to generate and display an image with a different tone (for example, a painting tone) based on the original photograph. (For example, patent document 1).

特開平8−44867号公報JP-A-8-44867

上記したようなデジタルフォトフレームでは、スライドショー機能によって自動的に複数の画像を切り替えながら表示し続けることができるが、切り換え表示される画像の数には自ずと制限がある。したがって、同じ画像が繰り返し表示されこととなり、ユーザにおいて画像観賞を早期に飽きてしまうという課題があった。   In the digital photo frame as described above, a plurality of images can be continuously displayed while being switched automatically by the slide show function, but the number of images displayed by switching is naturally limited. Therefore, the same image is repeatedly displayed, and there is a problem that the user gets tired of viewing the image at an early stage.

本発明は、かかる従来の課題に鑑みてなされたものであり、切り換え表示される画像の数に制限があっても、スライドショー機能によって異なる画調の画像を切り替えながら表示し続けることのできる画像表示装置、画像表示方法及び画像表示制御プログラムを提供することを目的とする。   The present invention has been made in view of such a conventional problem, and even when the number of images to be switched is limited, an image display that can continue to be displayed while switching images of different tone by the slide show function. It is an object to provide an apparatus, an image display method, and an image display control program.

前記課題を解決するため、請求項1記載の発明に係る画像表示装置にあっては、複数の画像を記憶する画像記憶手段と、前記画像記憶手段により記憶された複数の画像の中から少なくともひとつの画像を読み出す第1画像読み出し手段と、前記画像記憶手段に記憶された画像を順次読み出すとともに、当該読み出し動作を繰り返す第2画像読み出し手段と、前記第1及び第2画像読み出し手段のいずれかで画像が読み出される毎に、複数の変換パラメータの中からひとつの変換パラメータを選択するとともに、前記第1画像読み出し手段にて読み出す場合と前記第2画像読み出し手段にて読み出す場合とで前記選択の対象となる変換パラメータの数を異ならせるパラメータ読み出し手段と、前記読み出された画像の画調を、前記選択された変換パラメータに基づいた変換度合いで変換する画調変換手段と、この画調変換手段にて画調を変換された画像を表示手段に表示させる表示制御手段と、を備えることを特徴とする。   In order to solve the above problem, in the image display device according to the first aspect of the present invention, at least one of the image storage means for storing a plurality of images and the plurality of images stored by the image storage means. Any one of the first image reading means for reading the image, the second image reading means for sequentially reading the images stored in the image storage means and repeating the reading operation, and the first and second image reading means Each time an image is read, one conversion parameter is selected from among a plurality of conversion parameters, and the selection target is selected depending on whether the image is read by the first image reading means or the second image reading means. Parameter reading means for varying the number of conversion parameters to be used, and the tone of the read image to change the selected tone. And image tone conversion means for converting the conversion degree based on the parameter, and a display control means for displaying the image converted to image tone at the image tone conversion means on the display means, characterized in that it comprises a.

また、請求項2記載の発明に係る画像表示装置にあっては、前記画像表示装置はさらに、夫々異なる複数の変換パラメータを記憶するパラメータ記憶手段を有し、前記パラメータ読み出し手段は、前記第1及び第2画像読み出し手段のいずれかで画像が読み出される毎に、前記パラメータ記憶手段に記憶された複数の変換パラメータの中からひとつの変換パラメータを選択して読み出すことを特徴とする。   In the image display device according to the second aspect of the present invention, the image display device further includes parameter storage means for storing a plurality of different conversion parameters, and the parameter reading means is the first display device. Each time an image is read out by any one of the second image reading means, one conversion parameter is selected from a plurality of conversion parameters stored in the parameter storage means and read out.

また、請求項3記載の発明に係る画像表示装置にあっては、前記パラメータ読み出し手段は、前記パラメータ記憶手段に記憶された複数の変換パラメータのうち、前記選択の対象となっている変換パラメータの中からランダムにひとつの変換パラメータを読み出すことを特徴とする。   In the image display device according to the third aspect of the present invention, the parameter reading means includes a conversion parameter to be selected from among a plurality of conversion parameters stored in the parameter storage means. One conversion parameter is randomly read from the inside.

また、請求項4記載の発明に係る画像表示装置にあっては、前記パラメータ読み出し手段は、前記第2画像読み出し手段にて読み出す場合は、前記第1画像読み出し手段にて読み出す場合と比べて前記パラメータ記憶手段から選択の対象となっている変換パラメータの数を多くすることを特徴とする。   In the image display device according to the fourth aspect of the present invention, the parameter reading unit reads the second image reading unit when compared with the first image reading unit. The number of conversion parameters to be selected from the parameter storage means is increased.

また、請求項5記載の発明に係る画像表示装置にあっては、前記パラメータ記憶手段は、変換パラメータとして筆触パターンを表わすパラメータを複数種記憶し、前記画調変換手段は、この筆触パターンに基づいて前記読み出された画像を絵画調に変換することを特徴とする。   In the image display device according to the fifth aspect of the present invention, the parameter storage means stores a plurality of parameters representing a brush pattern as a conversion parameter, and the image tone conversion means is based on the brush pattern. Then, the read image is converted into a painting style.

また、請求項6記載の発明に係る画像表示方法にあっては、複数の画像を記憶する画像記憶手段を有する画像表示装置における画像表示方法であって、前記画像記憶手段により記憶された複数の画像の中から少なくともひとつの画像を読み出す第1画像読み出しステップと、前記画像記憶手段に記憶された画像を順次読み出すとともに、当該読み出し動作を繰り返す第2画像読み出しステップと、前記第1及び第2画像読み出しステップのいずれかで画像が読み出される毎に、複数の変換パラメータの中からひとつの変換パラメータを選択するとともに、前記第1画像読み出しステップにて読み出す場合と前記第2画像読み出しステップにて読み出す場合とで前記選択の対象となる変換パラメータの数を異ならせるパラメータ読み出しステップと、前記読み出された画像の画調を、前記選択された変換パラメータに基づいた変換度合いで変換する画調変換ステップと、この画調変換ステップにて画調を変換された画像を表示手段に表示させる表示制御ステップと、を含むことを特徴とする。   The image display method according to the invention of claim 6 is an image display method in an image display device having an image storage means for storing a plurality of images, wherein the plurality of images stored by the image storage means. A first image reading step of reading at least one image from the images, a second image reading step of sequentially reading the images stored in the image storage means and repeating the reading operation, and the first and second images Each time an image is read in any of the reading steps, one conversion parameter is selected from among a plurality of conversion parameters, and when reading in the first image reading step and reading in the second image reading step And a parameter reading step for varying the number of conversion parameters to be selected. A tone conversion step for converting the tone of the read image with a conversion degree based on the selected conversion parameter, and an image whose tone is converted in the tone conversion step. And a display control step for displaying on the screen.

また、請求項7記載の発明に係る画像表示制御プログラムにあっては、複数の画像を記憶する画像記憶手段を有する画像表示装置として用いられるコンピュータに、前記画像記憶手段により記憶された複数の画像の中から少なくともひとつの画像を読み出す第1画像読み出しステップと、前記画像記憶手段に記憶された画像を順次読み出すとともに、当該読み出し動作を繰り返す第2画像読み出しステップと、前記第1及び第2画像読み出しステップのいずれかで画像が読み出される毎に、複数の変換パラメータの中からひとつの変換パラメータを選択するとともに、前記第1画像読み出しステップにて読み出す場合と前記第2画像読み出しステップにて読み出す場合とで前記選択の対象となる変換パラメータの数を異ならせるパラメータ読み出しステップと、前記読み出された画像の画調を、前記選択された変換パラメータに基づいた変換度合いで変換する画調変換ステップと、この画調変換ステップにて画調を変換された画像を表示手段に表示させる表示制御ステップと、を実行させることを特徴とする。  In the image display control program according to the seventh aspect of the present invention, a plurality of images stored by the image storage means are stored in a computer used as an image display device having image storage means for storing a plurality of images. A first image reading step for reading at least one image from among the above, a second image reading step for sequentially reading the images stored in the image storage means, and repeating the reading operation, and the first and second image reading Each time an image is read out at any one of the steps, one conversion parameter is selected from a plurality of conversion parameters, and when reading out at the first image reading step and when reading out at the second image reading step, To read the parameters to change the number of conversion parameters to be selected. An image conversion step for converting the tone of the read image with a conversion degree based on the selected conversion parameter, and an image whose tone has been converted in the tone conversion step. And a display control step of displaying on the display means.

本発明によれば、切り換え表示される画像の数に制限があっても、スライドショー機能によって異なる画調の画像を切り替えながら表示し続けることができる。その結果、ユーザにおいて画像観賞を早期に飽きてしまうことがなく、スライドショー機能による画像観賞の興趣性を向上させることができる。   According to the present invention, even if there is a limit on the number of images to be switched and displayed, it is possible to continue displaying images with different image tones by switching with the slide show function. As a result, the user is not bored with the image viewing at an early stage, and it is possible to improve the interest of the image viewing with the slide show function.

本発明の実施形態に係る画像表示装置の回路構成、及びシステム構成を示すブロック図である。1 is a block diagram illustrating a circuit configuration and a system configuration of an image display apparatus according to an embodiment of the present invention. 筆触パターンの一例を示す図である。It is a figure which shows an example of a writing pattern. RAMのメモリ構成図である。It is a memory block diagram of RAM. メインルーチンを示すフローチャートである。It is a flowchart which shows a main routine. 表示処理の処理手順を示すフローチャートである。It is a flowchart which shows the process sequence of a display process. SW処理の処理手順を示すフローチャートである。It is a flowchart which shows the process sequence of SW process. スライドショーSW処理の処理手順を示すフローチャートである。It is a flowchart which shows the process sequence of a slide show SW process. 変換SW処理の処理手順を示すフローチャートである。It is a flowchart which shows the process sequence of conversion SW process. 表示切換SW処理の処理手順を示すフローチャートである。It is a flowchart which shows the process sequence of a display switching SW process. スライドショー処理の処理手順を示すフローチャートである。It is a flowchart which shows the process sequence of a slide show process. 変換処理の処理手順を示すフローチャートである。It is a flowchart which shows the process sequence of a conversion process. 図11に続くフローチャートである。It is a flowchart following FIG. 画像における画素の配列を示す説明図である。It is explanatory drawing which shows the arrangement | sequence of the pixel in an image. 変換処理の処理手順を示す遷移図である。It is a transition diagram which shows the process sequence of a conversion process. 図14に続く変換処理の処理手順を示す遷移図である。FIG. 15 is a transition diagram illustrating a processing procedure for conversion processing following FIG. 14.

以下、本発明の実施形態について説明する。図1は、本実施の形態に係る画像表示装置1、及びこれを含む画調変換システムの電気的構成を示したブロック図である。画像表示装置1は、CPU(Central Processing Unit)11と、CPU11に接続されたROM(Read Only Memory)12、RAM(Random Access memory)13、内部メモリ14を備え、ROM12には、CPU11に後述するフローチャートに示す動作を行わせるためのプログラム等が記憶されている。   Hereinafter, embodiments of the present invention will be described. FIG. 1 is a block diagram showing an electrical configuration of an image display device 1 according to the present embodiment and an image tone conversion system including the image display device 1. The image display device 1 includes a CPU (Central Processing Unit) 11, a ROM (Read Only Memory) 12 connected to the CPU 11, a RAM (Random Access memory) 13, and an internal memory 14. The ROM 12 will be described later in the CPU 11. A program or the like for performing the operation shown in the flowchart is stored.

また、CPU11は、写真画像を絵画調の画像に変換する絵画変換エンジン200を含んでいる。絵画変換エンジン200による絵画変換処理は、RAM13に記憶された加工対象の画像を、絵画が有する特徴を備えた絵画調画像、つまり特定の効果を与えた絵画調画像に変換しつつ、液晶表示パネル3に表示する処理である。また、絵画調画像への変換に際して目標とする絵画の種類、つまり筆触パターンがランダムに選択される。   The CPU 11 also includes a painting conversion engine 200 that converts a photographic image into a painting-like image. The painting conversion process performed by the painting conversion engine 200 is a liquid crystal display panel that converts an image to be processed stored in the RAM 13 into a painting-like image having characteristics of the painting, that is, a painting-like image having a specific effect. 3 is displayed. In addition, a target painting type, that is, a brush pattern is selected at random when converting to a painting-like image.

内部メモリ14は、ハードディスク又はフラッシュメモリによる大容量不揮発性メモリであり、後述する処理によりフォルダ141、142・・・が確保されて、絵画調に変換された画像である絵画調画像をフォルダ141、142・・・毎に保存可能となっている。   The internal memory 14 is a large-capacity nonvolatile memory such as a hard disk or a flash memory. Folders 141, 142,... 142... Can be stored every time.

表示制御部16は、CPU11から供給される表示用の画像データに基づいて液晶表示パネル3を駆動することにより、画像や各種メニューを液晶表示パネル3に表示させる。   The display controller 16 causes the liquid crystal display panel 3 to display images and various menus by driving the liquid crystal display panel 3 based on display image data supplied from the CPU 11.

キー入力制御部17はCPU11の制御に基づいてタッチパネル5の操作信号と、キー入力部21の操作信号を入力するものである。本実施の形態において、キー入力部21には、後述するスライドショーSW(スイッチ)、変換SW、表示切換SW、及びその他のスイッチが設けられている。   The key input control unit 17 inputs an operation signal of the touch panel 5 and an operation signal of the key input unit 21 based on the control of the CPU 11. In the present embodiment, the key input unit 21 is provided with a slide show SW (switch), conversion SW, display switching SW, and other switches described later.

メモリカードインターフェース18は、メモリカードスロットに着脱自在に装着された各種のメモリカード60と、CPU11との間におけるデータの入出力を制御する入出力インターフェースである。GPS制御部20は、GPSアンテナ7で受信した情報を元に位置情報を取得する。これにより、画像表示装置1の現在位置を知ることもできる。   The memory card interface 18 is an input / output interface that controls data input / output between the CPU 11 and various memory cards 60 that are detachably mounted in the memory card slot. The GPS control unit 20 acquires position information based on information received by the GPS antenna 7. Thereby, the current position of the image display apparatus 1 can also be known.

人感センサ19はCPU11に接続され、近くに人がいるかどうかを検知するものである。したがって、近くに人がいない状態が所定時間以上続くと自動的に電源を切って節電を図る(オートパワーオフ)。   The human sensor 19 is connected to the CPU 11 and detects whether a person is nearby. Therefore, when a person is not in the vicinity for a predetermined time or longer, the power is automatically turned off to save power (auto power off).

通信制御部30は、電話回線31若しくは無線LAN32を経由して画像やメールの送受信を含む通信制御を行う。アドレス帳33は、メール送受信に使用するものであり、実際は内部メモリ14内に設けられる。   The communication control unit 30 performs communication control including image and mail transmission / reception via the telephone line 31 or the wireless LAN 32. The address book 33 is used for mail transmission / reception, and is actually provided in the internal memory 14.

バックアップサーバ40は、ネットワーク90を介して接続され、自動的に若しくは手動指示により内部メモリ14に記録されたデータのバックアップを行う。コンテンツサーバ50は、多数のコンテンツや画像を有しており、ネットワーク90を介して画像表示装置1へデータを配信することができる。   The backup server 40 is connected via the network 90 and backs up data recorded in the internal memory 14 automatically or by a manual instruction. The content server 50 has a large number of contents and images, and can distribute data to the image display device 1 via the network 90.

撮像装置70は、所謂デジタルカメラであり、撮像素子やこれを制御する撮像制御部、及び画像送信部等を備える。そして、撮像制御部により撮像素子を駆動してカラーからなる被写体の画像を所定の周期(フレームレート)で取り込む制御を行い、取り込んだライブビュー画像を外部に送信する送信手段を備える。この撮像装置70は、ネットワーク90を介して電話回線31あるいは無線LAN32で画像表示装置1の通信制御部30に接続されている。したがって、画像表示装置1のCPU11は、撮像装置70により撮像されて、前記送信手段により転送されたライブビュー画像を逐次取り込むことが可能である。   The imaging device 70 is a so-called digital camera, and includes an imaging device, an imaging control unit that controls the imaging device, an image transmission unit, and the like. In addition, the image capturing device includes a transmission unit that drives the image sensor to capture an image of a color subject at a predetermined period (frame rate) and transmits the captured live view image to the outside. The imaging device 70 is connected to the communication control unit 30 of the image display device 1 via a network 90 via a telephone line 31 or a wireless LAN 32. Therefore, the CPU 11 of the image display device 1 can sequentially capture the live view images captured by the imaging device 70 and transferred by the transmission unit.

このとき、撮像装置70が、ユーザが有している画像表示装置1の場所とは異なる遠隔地に配置されていることにより、ユーザは遠隔地の景色を画像表示装置1の液晶表示パネル3で観賞したり、遠隔地の景色を画調変換する加工対象の画像として選択することができる。   At this time, the imaging device 70 is arranged at a remote location different from the location of the image display device 1 owned by the user, so that the user can view the scenery of the remote location with the liquid crystal display panel 3 of the image display device 1. It can be selected as an image to be processed for viewing or converting the scenery of a remote place.

また、電源制御部80は、電源プラグ31を介してAC電源を取り入れ、直流に変換して各部に電力を供給する。前述したオートパワーオフの制御も行う。   Further, the power control unit 80 takes in AC power through the power plug 31, converts it into direct current, and supplies power to each unit. The auto power-off control described above is also performed.

前記ROM12には、プログラムとともに、図2に示す複数の筆触パターンが記憶されている。この筆触パターンは、例えばパターン(1)〜パターン(10)の10種類とする。また、これら筆触パターン(1)〜(10)は、ゴッホ調、モネ調、ピカソ調などの画家の画調を加味したもの、あるいは油絵調、水彩画調、パステル画調、鉛筆画調、クレヨン画調、イラスト画調、点描画調、エアブラシ画調などの絵の種別毎の画調を加味したものである。   The ROM 12 stores a plurality of stroke patterns shown in FIG. 2 together with a program. For example, there are ten types of brush patterns, Pattern (1) to Pattern (10). In addition, these brushstroke patterns (1) to (10) take into account the painter's painting tone such as Van Gogh, Monet, Picasso, or oil painting, watercolor painting, pastel painting, pencil painting, crayon painting. In addition, the painting style for each type of picture such as illustration style, dot drawing style, airbrush style, etc. is taken into account.

また、各筆触パターン(1)〜(10)において、「1」からの数字は画素を示し、当該筆触パターンにより画調変換される領域の大きさに対応する。また、これら「1」からの数字が示す画素の集合が画調変更する領域の形状を示す。したがって、各筆触パターン(1)〜(10)は、1回の処理で画調変換される領域(面積)の大きさが異なり、あるいは画調変換される領域(面積)の大きさは同一であっても、その形状が異なる。   In each of the stroke patterns (1) to (10), the number from “1” indicates a pixel, and corresponds to the size of a region to be subjected to the tone conversion by the stroke pattern. Also, the set of pixels indicated by the numbers from “1” indicates the shape of the area where the image tone is changed. Therefore, the stroke patterns (1) to (10) have different sizes (areas) of image tone conversion in one process, or the same sizes of areas (area) of image tone conversion. Even if it exists, its shape is different.

つまり、例えば筆触パターン(1)の場合、「1」〜「10」で構成される10個の画素が1回の処理で画調変更される領域(面積)であり、左端上下に2個、その右側に上下4個、上下3個、1個の画素で構成される領域の形状が1回の処理で画調変更される形状である。これに対し、他の筆触パターンは、領域の大きさや形状が筆触パターン(1)とは異なる。   In other words, for example, in the case of the brush pattern (1), 10 pixels composed of “1” to “10” are regions (areas) in which the image tone is changed by one process, and two pixels on the upper and lower left ends. On the right side, the shape of the area composed of four pixels on the upper and lower sides, three on the upper and lower sides, and one pixel is a shape whose image tone is changed by one process. On the other hand, the other brush pattern is different from the brush pattern (1) in the size and shape of the region.

したがって、このように複数の筆触パターンの領域の大きさや形状が相互に異なることにより、撮影された画像を選択された筆触パターンに応じて、明らかに異なる画調に変換することができる。   Therefore, the size and shape of the areas of the plurality of brush pattern patterns are different from each other in this way, so that a photographed image can be clearly converted into a different tone according to the selected brush pattern.

前記RAM13は、CPU11が必要に応じて種々のデータを一時的に記憶する作業用のメモリであり、表示エリア131、元画像エリア132、及び筆触パターンエリア133が設けられている。   The RAM 13 is a working memory in which the CPU 11 temporarily stores various data as necessary, and is provided with a display area 131, an original image area 132, and a brush pattern area 133.

表示エリア131には、CPU11により表示制御部16に送られて液晶表示パネル3に表示される画像の画像データが格納される。また、画調変更処理は、この表示エリア131に格納されている画像に対して行われ、液晶表示パネル3に画調が変換された画像(画調変換画像)が表示されることとなる。元画像エリア132には、画調を変換する元となる表示エリア131内の画像の画像データがコピーされて格納される。筆触パターンエリア133には、後述する図11のステップSH5での処理により、筆触パターン(1)〜(10)のうち、今回の画調変換に使用する選択された筆触パターンが格納される。   In the display area 131, image data of an image sent to the display control unit 16 by the CPU 11 and displayed on the liquid crystal display panel 3 is stored. Also, the image tone changing process is performed on the image stored in the display area 131, and an image (image tone converted image) whose tone is converted is displayed on the liquid crystal display panel 3. In the original image area 132, image data of an image in the display area 131 that is a source for converting the image tone is copied and stored. In the stroke pattern area 133, the selected stroke pattern used for the current tone conversion among the stroke patterns (1) to (10) is stored by the processing in step SH5 of FIG.

次に、以上の構成に係る本実施の形態の動作について説明する。キー入力部21に設けられている電源スイッチがオン操作されると、CPU11はROM12に記憶されているプログラムに従って、各部の制御及び処理を開始する。図4は、CPU11の処理手順を示すメインフローである。CPU11は、先ずイニシャライズ処理を行って、後述するフロー内において用いるフラグをセットあるいはリセットするとともに、図2に示したROM12の取り込み表示エリア131、元画像エリア132、及び筆触パターンエリア133等をクリアする(ステップSA1)。このステップSA1で処理により、スライドフラグSLDF=0、チェンジフラグCF=1、画像カウンタG=0に設定される。   Next, the operation of the present embodiment according to the above configuration will be described. When a power switch provided in the key input unit 21 is turned on, the CPU 11 starts control and processing of each unit in accordance with a program stored in the ROM 12. FIG. 4 is a main flow showing the processing procedure of the CPU 11. The CPU 11 first performs initialization processing to set or reset a flag used in a flow to be described later, and clears the capture display area 131, the original image area 132, the writing pattern area 133, etc. of the ROM 12 shown in FIG. (Step SA1). By the processing in step SA1, the slide flag SLDF = 0, the change flag CF = 1, and the image counter G = 0 are set.

なお、スライドフラグSLDFは、SLDF=1によりスライドショーモードが設定されて、スライドショー処理を実行すべきことを示し、SLDF=0によりスライドショーモードが非設定であり、マニュアルモードが設定されていることを示す。また、チェンジフラグCFは、「1」であることにより、メモリカード60から読み出した次の画像を液晶表示パネル3に表示する切換タイミングであることを示す。   The slide flag SLDF indicates that the slide show mode is set by SLDF = 1 and the slide show process is to be executed, and that the slide show mode is not set and the manual mode is set by SLDF = 0. . Further, the change flag CF being “1” indicates that it is the switching timing for displaying the next image read from the memory card 60 on the liquid crystal display panel 3.

また、画像カウンタGは、その値により、メモリカードスロットに着脱自在に装着されている各種のメモリカード60に記憶されている画像を指定するカウンタである。メモリカード60には、先頭画像をナンバー「0」とし、シリアルナンバーに対応して複数の画像が記憶されている。したがって、この実施の形態においては、電源投入時には、先頭画像を指定すべく、ステップSA1で画像カウンタG=0を設定するようにしている。しかし、画像カウンタG=0とせずに、メモリカード60に記憶されている画像数以下の値であれば、任意の値を設定するようにしてもよい。これにより、電源スイッチがオンされた際に、液晶表示パネル3に最初に表示される画像を異なる画像とすることができる。   The image counter G is a counter that designates an image stored in various memory cards 60 that are detachably attached to the memory card slot according to the value. The memory card 60 stores a plurality of images corresponding to the serial number, with the top image number “0”. Therefore, in this embodiment, when the power is turned on, the image counter G = 0 is set in step SA1 in order to designate the head image. However, an arbitrary value may be set as long as the value is equal to or less than the number of images stored in the memory card 60 without setting the image counter G = 0. As a result, when the power switch is turned on, the image initially displayed on the liquid crystal display panel 3 can be a different image.

引き続き、電源スイッチがオフ操作されるまで、表示処理(ステップSA2)、SW処理(ステップSA3)、スライドショー処理(ステップSA4)、変換処理(ステップSA5)、これら以外のその他の処理(ステップSA6)を順次繰り返す。   Subsequently, display processing (step SA2), SW processing (step SA3), slide show processing (step SA4), conversion processing (step SA5), and other processing (step SA6) are performed until the power switch is turned off. Repeat sequentially.

図5は、表示処理(ステップSA2)の詳細を示すフローチャートである。CPU11は、チェンジフラグCFがセット(=1)されているか否かを判断する(ステップSB1)。このチェンジフラグCFは、前記ステップSA1、及び後述するステップSF5(図9)、ステップSG8(図10)での処理によりセット(=1)され、このフローのステップSB3でリセット(=0)されるフラグである。このチェンジフラグCFが「1」となっている場合には、ステップSB1からステップSB2に進む。   FIG. 5 is a flowchart showing details of the display process (step SA2). The CPU 11 determines whether or not the change flag CF is set (= 1) (step SB1). This change flag CF is set (= 1) by the processing in step SA1, and in step SF5 (FIG. 9) and step SG8 (FIG. 10) described later, and is reset (= 0) in step SB3 of this flow. Flag. When the change flag CF is “1”, the process proceeds from step SB1 to step SB2.

そして、メモリカード60から、画像カウンタGの値で指定されるG番目の画像である画像(G)のデータを読み出して、表示エリア131にストアする(ステップSB2)。このように、表示エリア131に画像(G)のデータがストアされると、前述のように画像(G)のデータがCPU11により表示制御部16に送られ、液晶表示パネル3に画像(G)が表示される。引き続き、チェンジフラグCFをリセット(←0)してリターンする。   Then, data of the image (G) that is the G-th image designated by the value of the image counter G is read from the memory card 60 and stored in the display area 131 (step SB2). Thus, when the image (G) data is stored in the display area 131, the image (G) data is sent to the display control unit 16 by the CPU 11 as described above, and the image (G) is sent to the liquid crystal display panel 3. Is displayed. Subsequently, the change flag CF is reset (← 0) and the process returns.

図6は、前記SW処理(ステップSA3)の処理手順を示すフローチャートである。この処理はキー入力部21に設けられた各種スイッチが操作された際の処理手順を示し、具体的には、スライドショーSW処理(ステップSC1)、変換SW処理(ステップSC2)、表示切換SW処理(ステップSC3)、及びこれら以外のその他のSW処理(ステップSC4)で構成される。   FIG. 6 is a flowchart showing a processing procedure of the SW processing (step SA3). This process shows a process procedure when various switches provided in the key input unit 21 are operated. Specifically, the slide show SW process (step SC1), the conversion SW process (step SC2), and the display switching SW process ( Step SC3) and other SW processing (step SC4) other than these steps.

図7は、スライドショーSW処理(ステップSC1)の処理手順を示すフローチャートである。キー入力部21に設けられているスライドショースイッチが押下されたか否かを判断する(ステップSD1)。スライドショースイッチが押下されたならば、スライドフラグSLDFを反転し(ステップSD2)、その結果スライドフラグSLDF=1となったか否かを判断する(ステップSD3)。SLDF=1となっており、スライドショーモードが設定されたならば、タイマカウンタtに所定時間(例えば、7秒)を設定した後(ステップSD4)、タイマインタラプト禁止を解除する(ステップSD5)。   FIG. 7 is a flowchart showing the procedure of the slide show SW process (step SC1). It is determined whether or not a slide show switch provided in the key input unit 21 has been pressed (step SD1). If the slide show switch is pressed, the slide flag SLDF is inverted (step SD2), and it is determined whether or not the slide flag SLDF = 1 is set as a result (step SD3). If SLDF = 1 and the slide show mode is set, after setting a predetermined time (for example, 7 seconds) to the timer counter t (step SD4), the timer interrupt prohibition is canceled (step SD5).

したがって、このステップSD5の処理でタイマインタラプト禁止が解除されることにより、タイマカウンタtの値はタイマインタラプト毎に減算される。つまり、このタイマカウンタtは、スライドショー処理において液晶表示パネル3に表示されている画像を切り替える時間間隔を計測するカウンタである。よって、ステップSD3での判断がNOであって、SLDF=0となりスライドショーモードが解除された場合には、タイマカウンタtによる時間間隔の計測は不要となることから、タイマインタラプトを禁止する(ステップSD6)。   Therefore, by canceling the timer interrupt prohibition in the process of step SD5, the value of the timer counter t is subtracted for each timer interrupt. That is, the timer counter t is a counter that measures the time interval for switching the image displayed on the liquid crystal display panel 3 in the slide show process. Therefore, if the determination in step SD3 is NO and SLDF = 0 and the slide show mode is canceled, it is not necessary to measure the time interval by the timer counter t, and timer interrupt is prohibited (step SD6). ).

図8は、前記変換SW処理(ステップSC2)の処理手順を示すフローチャートである。CPU11は、キー入力部21に設けられている変換SWが押下されたか否かを判断する(ステップSE1)。変換SWが押下されたならば、変換フラグHFを「1」にセットして(ステップSE2)、リターンする。したがって、変換フラグHFは、後述するスライドショー処理(図10)のステップSG9でセットされるのみならず、マニュアルモードで変換SWが押下された際にもセットされる。   FIG. 8 is a flowchart showing a processing procedure of the conversion SW processing (step SC2). The CPU 11 determines whether or not the conversion SW provided in the key input unit 21 has been pressed (step SE1). If the conversion SW is pressed, the conversion flag HF is set to “1” (step SE2) and the process returns. Therefore, the conversion flag HF is set not only in step SG9 of a slide show process (FIG. 10) described later, but also when the conversion SW is pressed in the manual mode.

図9は、前記表示切換SW処理(ステップSC3)の処理手順を示すフローチャートである。CPU11は、キー入力部21に設けられている表示切換SWが押下されたか否かを判断する(ステップSF1)。表示切換SWが押下されたならば、画像カウンタGの現在値に「1」を加算して、これをカウントアップさせる(ステップSF2)。   FIG. 9 is a flowchart showing a processing procedure of the display switching SW process (step SC3). The CPU 11 determines whether or not the display switching SW provided in the key input unit 21 has been pressed (step SF1). If the display switching SW is pressed, “1” is added to the current value of the image counter G, and this is counted up (step SF2).

したがって、スライドショーモードが設定されずにマニュアルモードが設定されている場合においては、画像カウンタGの値は、ユーザによる表示切換SWに対する操作に応答して、このステップSE5の処理によりカウントアップされる。また、後述するスライドショー処理(図10)においては、ステップSG5での処理により自動的にカウントアップされる。   Therefore, when the slide show mode is not set and the manual mode is set, the value of the image counter G is counted up by the process of step SE5 in response to the user's operation on the display switching SW. In a slide show process (FIG. 10), which will be described later, the count is automatically incremented by the process in step SG5.

次に、このカウントアップさせた画像カウンタGの値が、メモリカードスロットに着脱自在に装着された各種のメモリカード60に記憶されている画像の数である画像数以上になったか否かを判断する(ステップSF3)。G>画像数となっていなければ、ステップSF4の処理を実行することなくステップSF5に進んで、液晶表示パネル3に表示されている画像を表示変更すべきことを示すべく、チェンジフラグCFをセット(←1)する。   Next, it is determined whether or not the counted value of the image counter G has reached the number of images that is the number of images stored in various memory cards 60 that are detachably attached to the memory card slot. (Step SF3). If G> the number of images is not satisfied, the process proceeds to step SF5 without executing the process of step SF4, and the change flag CF is set to indicate that the display of the image displayed on the liquid crystal display panel 3 should be changed. (← 1).

また、G>画像数となった場合には、画像カウンタGに初期値「0」をセットした後(ステップSF4)、ステップSF5の処理を実行する。したがって、画像カウンタGは、0〜画像数の間において変化する。   If G> the number of images, the initial value “0” is set in the image counter G (step SF4), and then the process of step SF5 is executed. Therefore, the image counter G changes between 0 and the number of images.

図10は、前記スライドショー処理(ステップSA4)の処理手順を示すフローチャートである。CPU11は、先ずスライドフラグSLDFがセットされているか否かを判断する(ステップSG1)。前述した図7のステップSD2で、スライドフラグSLDFが反転されることにより、SLDF=0となってスライドショーモードが解除された場合には、以降の処理を実行することなく、メインルーチンにリターンする。また、SLDF=1となっており、スライドショーモードが設定されているならば、最小単位時間が経過したか否かを判断する(ステップSG2)。この最小時間単位とは、タイマカウンタtにより計測される時間間隔tの単位であり、例えば1秒である。   FIG. 10 is a flowchart showing a processing procedure of the slide show processing (step SA4). First, the CPU 11 determines whether or not the slide flag SLDF is set (step SG1). When the slide flag SLDF is inverted in step SD2 of FIG. 7 and SLDF = 0 and the slide show mode is canceled, the process returns to the main routine without executing the subsequent processing. If SLDF = 1 and the slide show mode is set, it is determined whether or not the minimum unit time has elapsed (step SG2). This minimum time unit is a unit of the time interval t measured by the timer counter t, for example, 1 second.

この最小時間単位た経過したならば、タイマカウンタtの値を「1」減算してカウントダウンさせる(ステップSG3)。そして、このカウントダウンさせたタイマカウンタtの値が「0」以下となったか否かを判断し(ステップSG4)、t≦0となるまで、ステップSG1からの処理を繰り返す。したがって、タイマカウンタtの値は、最小単位時間が経過する毎にカウントダウンされていく。その結果、t≧0になると、ステップSG4からステップSG5に進み、画像カウンタGの値をカウントアップさせる。したがって、スライドショーモードが設定されている場合においては、マニュアルモードが設定されている場合とは異なり、画像カウンタGの値は時間間隔tが経過する毎にカウントアップされる。   When the minimum time unit has elapsed, the value of the timer counter t is decremented by “1” and counted down (step SG3). Then, it is determined whether or not the value of the counted-down timer counter t becomes “0” or less (step SG4), and the processing from step SG1 is repeated until t ≦ 0. Therefore, the value of the timer counter t is counted down every time the minimum unit time elapses. As a result, when t ≧ 0, the process proceeds from step SG4 to step SG5, and the value of the image counter G is counted up. Therefore, when the slide show mode is set, the value of the image counter G is incremented every time the time interval t elapses, unlike when the manual mode is set.

次に、このカウントアップさせた画像カウンタGの値が、メモリカードスロットに着脱自在に装着された各種のメモリカード60に記憶されている画像の数である画像数以上になったか否かを判断する(ステップSG6)。G>画像数となっていなければ、ステップSG7の処理を実行することなくステップSG8以降の処理を実行し、G>画像数となった場合には、画像カウンタGに初期値「0」をセットする(ステップSG7)。   Next, it is determined whether or not the counted value of the image counter G has reached the number of images that is the number of images stored in various memory cards 60 that are detachably attached to the memory card slot. (Step SG6). If G> the number of images is not satisfied, the processing after step SG8 is executed without executing the processing of step SG7. If G> the number of images, the initial value “0” is set in the image counter G. (Step SG7).

しかる後に、液晶表示パネル3に表示されている画像を変更すべきことを示すべく、チェンジフラグCFをセット(←1)するとともに(ステップSG8)、変更した画像を画調変換すべきことを示すべく、変換フラグHFをセット(←1)する(ステップSG9)。さらに、タイマカウンタtに前記所定時間をセットして(ステップSG10)、リターンする。   Thereafter, in order to indicate that the image displayed on the liquid crystal display panel 3 should be changed, the change flag CF is set (← 1) (step SG8), and the changed image is to be subjected to the tone conversion. Therefore, the conversion flag HF is set (← 1) (step SG9). Further, the predetermined time is set in the timer counter t (step SG10), and the process returns.

したがって、スライドショーモードが設定されている場合には、このスライドショー処理が実行されることにより、画像カウンタGの値は時間間隔tをもって、自動的にカウントアップされていく。また、画像カウンタGの値がカウントアップされる都度、チェンジフラグCF及び変換フラグHFがセットされ、かつtに所定時間がセットされる。   Therefore, when the slide show mode is set, the value of the image counter G is automatically counted up with the time interval t by executing this slide show process. Each time the value of the image counter G is counted up, the change flag CF and the conversion flag HF are set, and a predetermined time is set at t.

図11及び図12は、前記変換処理(ステップSA5)の処理手順を示す一連のフローチャートである。CPU11は、変換フラグHFがセット(=1)されているか否かを判断し(ステップSH1)、変換フラグHFがセットされていない場合には(=0)、リターンする。変換フラグHFがセットされている場合には、スライドフラグSLDFがセットされているか否か、つまりスライドショーモードが設定されているか否かを判断する(ステップSH2)。   11 and 12 are a series of flowcharts showing the processing procedure of the conversion processing (step SA5). The CPU 11 determines whether or not the conversion flag HF is set (= 1) (step SH1). If the conversion flag HF is not set (= 0), the CPU 11 returns. If the conversion flag HF is set, it is determined whether or not the slide flag SLDF is set, that is, whether or not the slide show mode is set (step SH2).

SLDF=1であって、スライドショーモードが設定されている場合には、最大値がN1である数値から何れかをランダムに発生させた乱数(N1)の値を、第1乱数レジスタR1に格納する(ステップSH3)。SLDF=0であって、スライドショーモードが設定されていない場合、つまり表示切換スイッチの操作により、液晶表示パネル3に表示されている画像を表示変更するマニュアルモードが設定されている場合には、最大値がN2である数値から何れかをランダムに発生させた乱数(N2)の値を、第1乱数レジスタR1に格納する(ステップSH4)。   When SLDF = 1 and the slide show mode is set, a random number (N1) value which is randomly generated from a numerical value whose maximum value is N1 is stored in the first random number register R1. (Step SH3). When SLDF = 0 and the slide show mode is not set, that is, when the manual mode for changing the display of the image displayed on the liquid crystal display panel 3 by the operation of the display changeover switch is set, the maximum A random number (N2) value randomly generated from a numerical value of N2 is stored in the first random number register R1 (step SH4).

ここで、N1とN2との関係は、N1>N2であり、例えばN1は、前述のようにパターン(1)〜パターン(10)からなる10種類筆触パターンに対応して「10」であり、N2はこれよりも小さい値、例えば「4」である。したがって、本例においては、スライドショーモードが設定されている場合には、ステップSH3での処理により、「1」〜「10」の範囲で、何れかの値が第1乱数レジスタR1に設定される。しかし、スライドショーモードが設定されていない場合(マニュアルモードが設定されている場合)には、ステップSH4での処理により、ステップSH3の場合よりも最大値が小さい「1」〜「4」の範囲で、何れかの値が第1乱数レジスタR1に設定される。   Here, the relationship between N1 and N2 is N1> N2, for example, N1 is “10” corresponding to the ten types of touch patterns consisting of patterns (1) to (10) as described above, N2 is a smaller value, for example “4”. Therefore, in this example, when the slide show mode is set, any value in the range of “1” to “10” is set in the first random number register R1 by the process in step SH3. . However, when the slide show mode is not set (when the manual mode is set), the processing in step SH4 causes the maximum value to be in the range of “1” to “4”, which is smaller than in the case of step SH3. Any value is set in the first random number register R1.

そして、ステップSH3又はステップSH4に続くステップSH5においては、第1乱数レジスタR1の値に基づき、筆触パターンを設定する。すなわち、前述したように、ROM12には、ゴッホ調、モネ調、ピカソ調などの画家の画調を加味し、あるいは油絵調、水彩画調、パステル画調、鉛筆画調、クレヨン画調、イラスト画調、点描画調、エアブラシ画調などの絵の種別毎の画調を加味した10種類の筆触パターン、パターン(1)〜パターン(10)が記憶されている。したがって、第1乱数レジスタR1の値に基づき、対応する値のパターン(1)〜パターン(10)の何れかを選択する。   In step SH5 following step SH3 or step SH4, a writing pattern is set based on the value of the first random number register R1. In other words, as described above, the ROM 12 takes into account the painter's artistic styles such as Van Gogh, Monet, Picasso, etc., or oil painting, watercolor painting, pastel painting, pencil painting, crayon painting, illustration painting. In addition, ten types of writing patterns, patterns (1) to (10), which take into account the painting for each type of picture such as dot drawing and airbrush painting, are stored. Therefore, one of the corresponding value patterns (1) to (10) is selected based on the value of the first random number register R1.

このとき、スライドショーモードが設定されている場合には、ステップSH3で最大値がN1(=10)の乱数が用いられ、スライドショーモードが設定されている場合には、ステップSH3で最大値がN2(=4)の乱数が用いられ、N1>N2の関係にある。したがって、スライドショーモードが設定されていない場合には、4種類の筆触パターンから何れかが選択されるのにすぎないのに対し、スライドショーモードが設定されている場合には、10種類の筆触パターンから何れかが選択される。したがって、スライドショーモードが設定されている場合における筆触パターンの種類は、これが設定されていない場合の筆触パターンの種類よりも多い。   At this time, if the slide show mode is set, a random number having a maximum value of N1 (= 10) is used in step SH3. If the slide show mode is set, the maximum value is set to N2 (in step SH3). = 4) is used, and N1> N2. Accordingly, when the slide show mode is not set, only one of the four types of brush patterns is selected, whereas when the slide show mode is set, the ten types of brush patterns are selected. Either one is selected. Therefore, there are more types of stroke patterns when the slide show mode is set than types of stroke patterns when the slide show mode is not set.

次に、表示エリア131表示画像のデータを元画像エリア132にコピーする(ステップSH6)。したがって、このステップSH6での処理により、表示エリア131と元画像エリア132には、図13に示すように、n行m列からなり、1番目の画素(ドット)P(0)から最終番目の画素P(n×m)までのn×m個の画素からなる同一画像の画像データが格納されることとなる。   Next, the data of the display area 131 display image is copied to the original image area 132 (step SH6). Therefore, as a result of the processing in step SH6, the display area 131 and the original image area 132 are composed of n rows and m columns as shown in FIG. 13, and the first pixel (dot) P (0) to the last one. The image data of the same image composed of n × m pixels up to the pixel P (n × m) is stored.

次に、元画像エリア132に格納されている変換元画像の開始画素Pを指定する(ステップSH7)。この開始画素Pの指定は、1番目の画素P(0)又は1番目の画素P(0)に近い画素であることが好ましい。   Next, the start pixel P of the conversion original image stored in the original image area 132 is designated (step SH7). The designation of the start pixel P is preferably a pixel close to the first pixel P (0) or the first pixel P (0).

引き続き、スライドフラグSLDF=1であるか否かを判断する(ステップSH8)。SLDF=1であって、スライドショーモードが設定されている場合には、最大値がN3である数値から何れかをランダムに発生させた乱数(N3)の値を、第2乱数レジスタR2に格納する(ステップSH9)。SLDF=0であって、スライドショーモードが設定されていない場合、つまり表示切換スイッチの操作により、液晶表示パネル3に表示されている画像を表示変更する場合には、最大値がN4である数値から何れかをランダムに発生させた乱数(N4)の値を、第2乱数レジスタR2に格納する(ステップSH10)。   Subsequently, it is determined whether or not the slide flag SLDF = 1 (step SH8). When SLDF = 1 and the slide show mode is set, a random number (N3) value randomly generated from a numerical value having a maximum value of N3 is stored in the second random number register R2. (Step SH9). When SLDF = 0 and the slide show mode is not set, that is, when changing the display of the image displayed on the liquid crystal display panel 3 by operating the display changeover switch, the maximum value starts from a numerical value of N4. The random number (N4) value generated randomly is stored in the second random number register R2 (step SH10).

ここで、N3とN4との関係は、N3<N4であり、例えばN3=10、N4=30である。このステップSH9及びステップSH10で第2乱数レジスタR2に設定される値は、選択された筆触パターンで画調変換を行う際の画素の間隔を示し、その値が小さければ、画像中においてより短い間隔毎に当該筆触パターンでの画調変換がなされ、変換度合いの強い画調変換画像、つまり画像に対する変換率の高い画調変換画像が生成されることとなる。逆に、その値が大きければ、画像中においてより長い間隔毎に当該筆触パターンでの画調変換がなされ、変換度合いの弱い画調変換画像が生成されることとなる。   Here, the relationship between N3 and N4 is N3 <N4, for example, N3 = 10 and N4 = 30. The value set in the second random number register R2 in the steps SH9 and SH10 indicates the pixel interval when the tone conversion is performed with the selected writing pattern. If the value is small, the interval is shorter in the image. Every time the tone conversion is performed with the brush pattern, a tone conversion image with a high degree of conversion, that is, a tone conversion image with a high conversion rate for the image is generated. On the contrary, if the value is large, the image tone conversion is performed with the stroke pattern at every longer interval in the image, and the image tone conversion image with a low conversion degree is generated.

したがって、SLDF=1であってスライドショーモードが設定されている場合には、より高い頻度で当該筆触パターンでの画調変換がなされて、変換率の高い画調変換画像が生成されるように、乱数を設定する。   Therefore, when SLDF = 1 and the slide show mode is set, the tone conversion with the brush pattern is performed at a higher frequency so that a tone conversion image with a high conversion rate is generated. Set a random number.

そして、ステップSH9又はステップSH10に続く図12のステップSH11においては、前記ステップSH7で指定された元画像エリア132の画素Pの色Cpを取得する。したがって、図14(a)に示すように、元画像エリア132内の画像データにおいてP1がPに対応する画素であるとすると、この画素P1の色Cpを取得する。また、筆触パターンにおける処理した画素をカウントするためのカウンタnの値に初期値「1」を設定する(ステップSH12)。   Then, in step SH11 of FIG. 12 following step SH9 or step SH10, the color Cp of the pixel P of the original image area 132 designated in step SH7 is acquired. Therefore, as shown in FIG. 14A, if P1 is a pixel corresponding to P in the image data in the original image area 132, the color Cp of the pixel P1 is acquired. Also, an initial value “1” is set as the value of the counter n for counting the processed pixels in the brush pattern (step SH12).

次に、表示エリア131で、Pに対応する画素と選択された筆触パターンの1番目の画素を合わせる(ステップSH13)。つまり、例えば図14(b)に示すように、表示エリア131内の画像データにおいてP1がPに対応する画素であるとし、また、図2(a)に示した筆触パターン(1)が選択されていたとする。この場合、図14(b)に示すように、画素P1に筆触パターン(1)における画素「1」を合わせる。   Next, in the display area 131, the pixel corresponding to P is matched with the first pixel of the selected brush pattern (step SH13). That is, for example, as shown in FIG. 14B, in the image data in the display area 131, P1 is a pixel corresponding to P, and the stroke pattern (1) shown in FIG. 2A is selected. Suppose that In this case, as shown in FIG. 14B, the pixel “1” in the writing pattern (1) is aligned with the pixel P1.

引き続き、表示エリア131内の筆触パターン内のn番目の画素に対応する画素を検索する(ステップSH14)。つまり、現時点がn=1であったとすると、図14(b)に示す筆触パターン(1)において「1」に対応する画素を検索する。   Subsequently, a pixel corresponding to the nth pixel in the brushstroke pattern in the display area 131 is searched (step SH14). In other words, if the current time is n = 1, a pixel corresponding to “1” is searched for in the writing pattern (1) shown in FIG.

この検索した画素が表示エリア131内であるか否かを判断し(ステップSH15)、表示エリア131内である場合には、当該検索した画素の色をCpに変更する(ステップSH16)。また、nの値をカウントアップさせて(ステップSH17)、このnの値が選択されている筆触パターンの最終画素数以上となったか否かを判断し(ステップSH18)、筆触パターンの最終画素数≦nとなるまで、ステップSH14〜ステップSH18の処理を繰り返す。   It is determined whether or not the searched pixel is within the display area 131 (step SH15). If it is within the display area 131, the color of the searched pixel is changed to Cp (step SH16). Also, the value of n is counted up (step SH17), and it is determined whether or not the value of n is equal to or greater than the final pixel number of the selected brush pattern (step SH18), and the final pixel number of the brush pattern is determined. Steps SH14 to SH18 are repeated until ≦ n.

この例においては、筆触パターン(1)が選択されており、当該筆触パターン(1)は、「1」〜「10」からなる10個の画素で構成され、最終画素数は「10」である。したがって、ステップSH14〜ステップSH18の処理が10回繰り返され、これにより、図14(c)に示すように、表示エリア131内において筆触パターン(1)に対応する画素「1」〜「10」の色がCp(画素P1の色)に変更される。   In this example, the stroke pattern (1) is selected, and the stroke pattern (1) is composed of 10 pixels “1” to “10”, and the final number of pixels is “10”. . Accordingly, the processing of step SH14 to step SH18 is repeated 10 times, and as a result, as shown in FIG. 14C, the pixels “1” to “10” corresponding to the stroke pattern (1) in the display area 131 are displayed. The color is changed to Cp (the color of the pixel P1).

次に、現在のPの値に、乱数R2を加算してPの値を更新する(ステップSH19)。また、この更新したPの値が示す位置が、表示エリア131内の画像データにおける画素の最終位置を超えるか否かを判断する(ステップSH20)。超えない場合には、ステップSH11からの処理を再度実行する。   Next, the random number R2 is added to the current value of P to update the value of P (step SH19). Further, it is determined whether or not the position indicated by the updated value P exceeds the final position of the pixel in the image data in the display area 131 (step SH20). If not, the process from step SH11 is executed again.

そして、ステップSH11においては、前記ステップSH19で更新されたPの値に基づき、元画像エリア132の画素Pの色Cpを取得する。したがって、図15(a)に示すように、元画像エリア132内の画像データにおいてP2が今回のPに対応する画素であるとすると、この画素P2の色Cpを取得する。また、筆触パターンにおける処理した画素をカウントするためのカウンタnの値に初期値「1」を設定する(ステップSH12)。   In step SH11, the color Cp of the pixel P in the original image area 132 is acquired based on the value of P updated in step SH19. Therefore, as shown in FIG. 15A, if P2 is a pixel corresponding to the current P in the image data in the original image area 132, the color Cp of the pixel P2 is acquired. Also, an initial value “1” is set as the value of the counter n for counting the processed pixels in the brush pattern (step SH12).

次に、表示エリア131で、Pに対応する画素と選択された筆触パターンの1番目の画素を合わせる(ステップSH13)。つまり、例えば図15(b)に示すように、表示エリア131内の画像データにおいてP2がPに対応する画素であるとし、また、筆触パターン(1)が選択されている。この場合、図15(b)に示すように、画素P2に筆触パターン(1)における画素「1」を合わせる。   Next, in the display area 131, the pixel corresponding to P is matched with the first pixel of the selected brush pattern (step SH13). That is, for example, as shown in FIG. 15B, it is assumed that P2 is a pixel corresponding to P in the image data in the display area 131, and the stroke pattern (1) is selected. In this case, as shown in FIG. 15B, the pixel “1” in the writing pattern (1) is aligned with the pixel P2.

引き続き、表示エリア131内の筆触パターン内のn番目の画素に対応する画素を検索し(ステップSH14)、この検索した画素が表示エリア131内であるか否かを判断する(ステップSH15)。表示エリア131内である場合には、当該検索した画素の色をCpに変更する(ステップSH16)。また、nの値をカウントアップさせて(ステップSH17)、このnの値が選択されている筆触パターンの最終画素数以上となったか否かを判断し(ステップSH18)、筆触パターンの最終画素数≦nとなるまで、ステップSH14〜ステップSH18の処理を繰り返す。   Subsequently, a pixel corresponding to the nth pixel in the brushstroke pattern in the display area 131 is searched (step SH14), and it is determined whether or not the searched pixel is in the display area 131 (step SH15). If it is within the display area 131, the color of the searched pixel is changed to Cp (step SH16). Also, the value of n is counted up (step SH17), and it is determined whether or not the value of n is equal to or greater than the final pixel number of the selected brush pattern (step SH18), and the final pixel number of the brush pattern is determined. Steps SH14 to SH18 are repeated until ≦ n.

したがって、前述と同様にステップSH14〜ステップSH18の処理が10回繰り返され、これにより、図15(c)に示すように、表示エリア131内において筆触パターン(1)に対応する画素「1」〜「10」の色がCp(画素P2の色)に変更される。   Accordingly, the processing from step SH14 to step SH18 is repeated 10 times in the same manner as described above, and as a result, as shown in FIG. 15C, the pixels “1” to “1” corresponding to the stroke pattern (1) in the display area 131 The color “10” is changed to Cp (the color of the pixel P2).

このとき、前記ステップSH9で第2乱数レジスタR2に設定される値が小さければ、画像中においてより短い間隔毎に当該筆触パターンでの画調変換がなされ、例えば図15(c)における画素「5」「6」のように、前回P1の色に変更された画素の一部が、今回P2の色に変更される場合もあり得ることから、変換率の高い画調変換画像を生成することができる。   At this time, if the value set in the second random number register R2 in step SH9 is small, the tone conversion is performed with the brush pattern at shorter intervals in the image. For example, the pixel “5” in FIG. “6”, a part of the pixels changed to the color of P1 last time may be changed to the color of P2 this time, so that it is possible to generate a tone conversion image with a high conversion rate. it can.

次に、現在のPの値に、乱数R2を加算してPの値を更新する(ステップSH19)。
このとき、前記ステップSH8〜ステップSH10で説明したように、N3とN4との関係は、N3<N4であり、スライドショーモードが設定されている場合には、最大値が小さい乱数R2が設定される。したがって、スライドショーモードにおけるPの変化幅はマニュアルモード時よりも小さい。その結果、スライドショーモードが設定されている場合には、1つの画像に対して高い頻度で多くの画調変換がなされ、画像に対する変換率はたかいものとなる。
Next, the random number R2 is added to the current value of P to update the value of P (step SH19).
At this time, as described in steps SH8 to SH10, the relationship between N3 and N4 is N3 <N4, and when the slide show mode is set, a random number R2 having a small maximum value is set. . Therefore, the change width of P in the slide show mode is smaller than that in the manual mode. As a result, when the slide show mode is set, many image tone conversions are performed with high frequency for one image, and the conversion rate for the image is high.

したがって、メモリカード60から順次読み出されて液晶表示パネル3にて切り換え表示される画像の数に制限があっても、スライドショー機能によって異なる画調の画像を切り替えながら表示し続けることができる。   Therefore, even if there is a limit to the number of images that are sequentially read from the memory card 60 and switched and displayed on the liquid crystal display panel 3, it is possible to continue to display images with different image tones while switching by the slide show function.

しかも、スライドショーモードにおいて選択される筆触パターンの種類もマニュアルモード時よりも多いことから、より一層異なる画調の画像を切り替えながらスライドショー表示を行うことができる。   In addition, since there are more types of brushstroke patterns selected in the slide show mode than in the manual mode, it is possible to perform a slide show display while switching images with even different tone.

その結果、ユーザにおいて画像観賞を早期に飽きてしまうことがなく、スライドショー機能による画像観賞の興趣性を向上させることができる。   As a result, the user is not bored with the image viewing at an early stage, and it is possible to improve the interest of the image viewing with the slide show function.

そして、前述のようにステップSH20において、Pの値が示す位置が、表示エリア131内の画像データにおける画素の最終位置を超えるか否かを判断する。超えた場合には、選択された筆触パターンであって設定された変換率での当該画像に対する画調変換が完了したことから、変換フラグHFをリセット(←0)して、リターンする。   Then, as described above, in step SH20, it is determined whether or not the position indicated by the value P exceeds the final position of the pixel in the image data in the display area 131. If exceeded, the tone conversion for the image at the conversion rate that has been selected and the set conversion rate has been completed, so the conversion flag HF is reset (← 0) and the process returns.

なお、本実施の形態においては、メモリカード60に記憶されている画像を表示するようにしたが、これに限ることなく内部メモリ14に予め記憶されている画像、あるいはネットワーク90を介してコンテンツサーバ50からダウンロードし、RAM12又は内部メモリ14に格納した画像等、他の記憶媒体に記憶されている画像であってもよい。   In the present embodiment, an image stored in the memory card 60 is displayed. However, the present invention is not limited to this. An image stored in advance in the internal memory 14 or a content server via the network 90 is used. It may be an image stored in another storage medium such as an image downloaded from 50 and stored in the RAM 12 or the internal memory 14.

また、本実施の形態においては、図11及び図12のフローチャートに示す変換処理を行うようにしたが、変換処理はこれに限ることなく、他の画調変換アルゴリズム等どのようなアルゴリズムを用いてもよい。また、筆触パターンの種類及び数も実施の形態に示したものに限るものではない。   In the present embodiment, the conversion processing shown in the flowcharts of FIGS. 11 and 12 is performed. However, the conversion processing is not limited to this, and any other algorithm such as another tone conversion algorithm is used. Also good. Also, the types and number of writing patterns are not limited to those shown in the embodiment.

また、実施の形態においては、スライドショーモードが設定された場合には、マニュアルモードが設定された場合よりも多くの筆触パターンからランダムに選択でき、かつより変換率が高くなるようにした。しかし、いずれか一方のみ、つまり選択可能な筆触パターンの数は同一で、変換率が高くなるようにし、あるいは選択可能な筆触パターンの数は多くし、変換率は同一としてもよい。   Further, in the embodiment, when the slide show mode is set, more brush patterns can be selected at random and the conversion rate is higher than when the manual mode is set. However, only one of them, that is, the number of selectable brush patterns is the same and the conversion rate is increased, or the number of selectable brush patterns is increased and the conversion rate may be the same.

1 画像表示装置
3 液晶表示パネル
11 CPU
12 RAM
12 ROM
13 RAM
14 内部メモリ
16 表示制御部
17 キー入力制御部
18 メモリカードインターフェース
21 キー入力部
60 メモリカード
70 撮像装置
80 電源制御部
90 ネットワーク
131 表示エリア
132 元画像エリア
133 筆触パターンエリア
200 絵画変換エンジン
DESCRIPTION OF SYMBOLS 1 Image display apparatus 3 Liquid crystal display panel 11 CPU
12 RAM
12 ROM
13 RAM
DESCRIPTION OF SYMBOLS 14 Internal memory 16 Display control part 17 Key input control part 18 Memory card interface 21 Key input part 60 Memory card 70 Imaging device 80 Power supply control part 90 Network 131 Display area 132 Original image area 133 Brush pattern area 200 Painting conversion engine

Claims (7)

複数の画像を記憶する画像記憶手段と、
前記画像記憶手段により記憶された複数の画像の中から少なくともひとつの画像を読み出す第1画像読み出し手段と、
前記画像記憶手段に記憶された画像を順次読み出すとともに、当該読み出し動作を繰り返す第2画像読み出し手段と、
前記第1及び第2画像読み出し手段のいずれかで画像が読み出される毎に、複数の変換パラメータの中からひとつの変換パラメータを選択するとともに、前記第1画像読み出し手段にて読み出す場合と前記第2画像読み出し手段にて読み出す場合とで前記選択の対象となる変換パラメータの数を異ならせるパラメータ読み出し手段と、
前記読み出された画像の画調を、前記選択された変換パラメータに基づいた変換度合いで変換する画調変換手段と、
この画調変換手段にて画調を変換された画像を表示手段に表示させる表示制御手段と、
を備える画像表示装置。
Image storage means for storing a plurality of images;
First image reading means for reading at least one image from a plurality of images stored by the image storage means;
Second image reading means for sequentially reading the images stored in the image storage means and repeating the reading operation;
Each time an image is read out by one of the first and second image reading means, one conversion parameter is selected from a plurality of conversion parameters, and when the first image reading means reads the conversion parameter, the second image reading means Parameter reading means for changing the number of conversion parameters to be selected according to the case of reading by the image reading means;
Tone conversion means for converting the tone of the read image with a conversion degree based on the selected conversion parameter;
Display control means for displaying on the display means an image whose tone has been converted by the tone conversion means;
An image display device comprising:
前記画像表示装置はさらに、夫々異なる複数の変換パラメータを記憶するパラメータ記憶手段を有し、
前記パラメータ読み出し手段は、前記第1及び第2画像読み出し手段のいずれかで画像が読み出される毎に、前記パラメータ記憶手段に記憶された複数の変換パラメータの中からひとつの変換パラメータを選択して読み出す、請求項1記載の画像表示装置。
The image display device further includes parameter storage means for storing a plurality of different conversion parameters,
The parameter reading means selects and reads one conversion parameter from among a plurality of conversion parameters stored in the parameter storage means every time an image is read by any one of the first and second image reading means. The image display device according to claim 1.
前記パラメータ読み出し手段は、前記パラメータ記憶手段に記憶された複数の変換パラメータのうち、前記選択の対象となっている変換パラメータの中からランダムにひとつの変換パラメータを読み出す、請求項2記載の画像表示装置。   3. The image display according to claim 2, wherein the parameter reading unit reads one conversion parameter randomly from among the plurality of conversion parameters stored in the parameter storage unit. apparatus. 前記パラメータ読み出し手段は、前記第2画像読み出し手段にて読み出す場合は、前記第1画像読み出し手段にて読み出す場合と比べて前記パラメータ記憶手段から選択の対象となっている変換パラメータの数を多くする、請求項3記載の画像表示装置。   The parameter reading means increases the number of conversion parameters to be selected from the parameter storage means when reading by the second image reading means compared to reading by the first image reading means. The image display device according to claim 3. 前記パラメータ記憶手段は、変換パラメータとして筆触パターンを表わすパラメータを複数種記憶し、前記画調変換手段は、この筆触パターンに基づいて前記読み出された画像を絵画調に変換する請求項2記載の画像表示装置。   The parameter storage means stores a plurality of types of parameters representing a brush pattern as conversion parameters, and the image tone conversion means converts the read image into a painting tone based on the brush pattern. Image display device. 複数の画像を記憶する画像記憶手段を有する画像表示装置における画像表示方法であって、
前記画像記憶手段により記憶された複数の画像の中から少なくともひとつの画像を読み出す第1画像読み出しステップと、
前記画像記憶手段に記憶された画像を順次読み出すとともに、当該読み出し動作を繰り返す第2画像読み出しステップと、
前記第1及び第2画像読み出しステップのいずれかで画像が読み出される毎に、複数の変換パラメータの中からひとつの変換パラメータを選択するとともに、前記第1画像読み出しステップにて読み出す場合と前記第2画像読み出しステップにて読み出す場合とで前記選択の対象となる変換パラメータの数を異ならせるパラメータ読み出しステップと、
前記読み出された画像の画調を、前記選択された変換パラメータに基づいた変換度合いで変換する画調変換ステップと、
この画調変換ステップにて画調を変換された画像を表示手段に表示させる表示制御ステップと、
を含む画像表示方法。
An image display method in an image display device having an image storage means for storing a plurality of images,
A first image reading step of reading at least one image from a plurality of images stored by the image storage means;
A second image reading step of sequentially reading the images stored in the image storage means and repeating the reading operation;
Each time an image is read in any of the first and second image reading steps, one conversion parameter is selected from a plurality of conversion parameters, and the second image reading step and the second image reading step are selected. A parameter reading step for changing the number of conversion parameters to be selected in the case of reading in the image reading step;
A tone conversion step of converting the tone of the read image with a conversion degree based on the selected conversion parameter;
A display control step for displaying on the display means the image whose tone has been converted in this tone conversion step;
An image display method including:
複数の画像を記憶する画像記憶手段を有する画像表示装置として用いられるコンピュータに、
前記画像記憶手段により記憶された複数の画像の中から少なくともひとつの画像を読み出す第1画像読み出しステップと、
前記画像記憶手段に記憶された画像を順次読み出すとともに、当該読み出し動作を繰り返す第2画像読み出しステップと、
前記第1及び第2画像読み出しステップのいずれかで画像が読み出される毎に、複数の変換パラメータの中からひとつの変換パラメータを選択するとともに、前記第1画像読み出しステップにて読み出す場合と前記第2画像読み出しステップにて読み出す場合とで前記選択の対象となる変換パラメータの数を異ならせるパラメータ読み出しステップと、
前記読み出された画像の画調を、前記選択された変換パラメータに基づいた変換度合いで変換する画調変換ステップと、
この画調変換ステップにて画調を変換された画像を表示手段に表示させる表示制御ステ
ップと、
を実行させる画像表示制御プログラム。
In a computer used as an image display device having image storage means for storing a plurality of images,
A first image reading step of reading at least one image from a plurality of images stored by the image storage means;
A second image reading step of sequentially reading the images stored in the image storage means and repeating the reading operation;
Each time an image is read in any of the first and second image reading steps, one conversion parameter is selected from a plurality of conversion parameters, and the second image reading step and the second image reading step are selected. A parameter reading step for changing the number of conversion parameters to be selected in the case of reading in the image reading step;
A tone conversion step of converting the tone of the read image with a conversion degree based on the selected conversion parameter;
A display control step for displaying on the display means the image whose tone has been converted in this tone conversion step;
An image display control program for executing
JP2010194646A 2010-08-31 2010-08-31 Image display device, image display method, and image display control program Expired - Fee Related JP5541007B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010194646A JP5541007B2 (en) 2010-08-31 2010-08-31 Image display device, image display method, and image display control program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010194646A JP5541007B2 (en) 2010-08-31 2010-08-31 Image display device, image display method, and image display control program

Publications (3)

Publication Number Publication Date
JP2012053200A JP2012053200A (en) 2012-03-15
JP2012053200A5 JP2012053200A5 (en) 2013-07-18
JP5541007B2 true JP5541007B2 (en) 2014-07-09

Family

ID=45906592

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010194646A Expired - Fee Related JP5541007B2 (en) 2010-08-31 2010-08-31 Image display device, image display method, and image display control program

Country Status (1)

Country Link
JP (1) JP5541007B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6003325B2 (en) * 2012-07-19 2016-10-05 カシオ計算機株式会社 Image display control device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5621868A (en) * 1994-04-15 1997-04-15 Sony Corporation Generating imitation custom artwork by simulating brush strokes and enhancing edges
JP2009141678A (en) * 2007-12-06 2009-06-25 Fujifilm Corp Digital photo frame and image display method thereof

Also Published As

Publication number Publication date
JP2012053200A (en) 2012-03-15

Similar Documents

Publication Publication Date Title
JP5384190B2 (en) Method and apparatus for performing touch adjustment in an imaging device
JP5110098B2 (en) Display processing apparatus and program
CN103227894A (en) Image processing apparatus, image processing method, and recording medium
JP5229360B2 (en) Image processing apparatus, image data conversion method, print order receiving apparatus, program
KR20080058779A (en) Image forming apparatus and control method of continuous shooting image thereof
JP5541007B2 (en) Image display device, image display method, and image display control program
JP2010021656A (en) Image processor and image processing method
JP5083389B2 (en) Image conversion device, image conversion system, image conversion method and program
US20110285739A1 (en) Image display apparatus, image display method, and program storage medium
JP7110163B2 (en) Image processing device, imaging device, image processing method, and image processing program
JP2012033012A (en) Image tone conversion device, image tone conversion system, image tone conversion method and program
JP2011137899A (en) Image processor and program
JP4905124B2 (en) Image display device, image display method, and program
JP5671889B2 (en) Image display device, image display method, and image display control program
JP2006042330A (en) Video shooting method
KR100690855B1 (en) A method of displaying a subject image during shooting and a mobile terminal to which the method is applied
JP2012249211A (en) Image file generating device, image file generating program and image file generating method
JP2005225025A (en) Face image processing system
KR100543902B1 (en) 3D graphic processing system and method for utilizing camera preview image
JP2012053396A (en) Image display device, image display program and image display method
JP2005283694A (en) Image scaling processing method, image processing apparatus, program, and recording medium
KR101337383B1 (en) Mobile terminal and method for editing image thereof
JP5548963B2 (en) Image display device, image display method, and program
JP2012039558A (en) Reference image identification device and program
JP6003325B2 (en) Image display control device

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130530

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20130530

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20140128

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20140225

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140306

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20140408

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140421

R150 Certificate of patent or registration of utility model

Ref document number: 5541007

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees