JP2018037828A - Terminal device, image generation program, storage medium, and image generation method - Google Patents
Terminal device, image generation program, storage medium, and image generation method Download PDFInfo
- Publication number
- JP2018037828A JP2018037828A JP2016168970A JP2016168970A JP2018037828A JP 2018037828 A JP2018037828 A JP 2018037828A JP 2016168970 A JP2016168970 A JP 2016168970A JP 2016168970 A JP2016168970 A JP 2016168970A JP 2018037828 A JP2018037828 A JP 2018037828A
- Authority
- JP
- Japan
- Prior art keywords
- image
- image data
- identification information
- unit
- compression method
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Compression Of Band Width Or Redundancy In Fax (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
Description
本発明は、端末装置、画像生成プログラム、記憶媒体および画像生成方法に関する。 The present invention relates to a terminal device, an image generation program, a storage medium, and an image generation method.
パーソナルコンピューターの出力画像データをプロジェクター装置などで拡大投写する場合、両者の間をケーブルで接続し、パーソナルコンピューターが保持する画像データを送信する必要がある。近年では、ケーブルによる接続に替えて、赤外線変調方式や無線LANによるファイル転送技術を用いて画像データを送信する無線通信システムが製品化されている。
周知のように、画像データのような大量のデータを無線により送信する場合、画像データを圧縮してデータ量を減少させた後、圧縮した画像データを送信することで、画像データの効率的な伝送を実現している。
下記特許文献1では、画像データの圧縮時に、画像データが示す画像の特性を取得し、取得した特性に基づいて圧縮方式をJPEG方式またはPNG方式の何れかを選択している。
When the output image data of a personal computer is enlarged and projected by a projector device or the like, it is necessary to connect the two with a cable and transmit the image data held by the personal computer. In recent years, wireless communication systems that transmit image data using an infrared modulation method or a file transfer technique using a wireless LAN instead of using a cable have been commercialized.
As is well known, when a large amount of data such as image data is transmitted wirelessly, the image data is compressed to reduce the data amount, and then the compressed image data is transmitted, so that the image data can be efficiently transmitted. Realizes transmission.
In Patent Document 1 below, when image data is compressed, the characteristics of the image indicated by the image data are acquired, and either the JPEG method or the PNG method is selected as the compression method based on the acquired characteristics.
しかしながら、画像の特性を取得して圧縮方式を決定する決定処理を画像データの圧縮処理の直前に行うため、送信すべき画像データを圧縮して送信するまでに要する時間が長くかかり、画像データを効率的に伝送することはできなかった。
本発明は、上述の課題に鑑みてなされたものであり、圧縮した画像データを効率的に送信することを目的とする。
However, since the determination process for acquiring the image characteristics and determining the compression method is performed immediately before the compression process of the image data, it takes a long time to compress and transmit the image data to be transmitted. It could not be transmitted efficiently.
The present invention has been made in view of the above-described problems, and an object thereof is to efficiently transmit compressed image data.
本発明は、上述の課題の少なくとも一部を解決するためになされたものであり、以下の形態又は適用例として実現することが可能である。 SUMMARY An advantage of some aspects of the invention is to solve at least a part of the problems described above, and the invention can be implemented as the following forms or application examples.
[適用例1]
本適用例にかかる端末装置は、画像データが示す画像のサムネイル画像を前記画像データに基づいて生成するサムネイル画像生成部と、前記サムネイル画像生成部が生成した前記サムネイル画像に基づいて、前記画像データを圧縮する圧縮方式を決定し、決定した前記圧縮方式を含む識別情報を予め付与する識別情報付与部と、前記識別情報付与部が付与した前記識別情報が示す前記圧縮方式に基づいて、前記画像データを圧縮する画像圧縮部と、前記画像圧縮部が圧縮した前記画像データを通信を介して送信する送信部と、を備えることを特徴とする。
[Application Example 1]
The terminal device according to this application example includes a thumbnail image generation unit that generates a thumbnail image of an image indicated by image data based on the image data, and the image data based on the thumbnail image generated by the thumbnail image generation unit. A compression method for compressing the image, and an identification information adding unit that preliminarily assigns identification information including the determined compression method, and the compression method indicated by the identification information provided by the identification information adding unit. An image compression unit that compresses data, and a transmission unit that transmits the image data compressed by the image compression unit via communication.
このような構成によれば、画像データのサムネイル画像に基づいて、画像データを圧縮する圧縮方式を決定し、決定した圧縮方式を含む識別情報を予め付与することにより、画像データを圧縮する時に圧縮方式を決定する必要が無いため、画像データを圧縮して通信により送信する処理を効率よく実行することができる。 According to such a configuration, a compression method for compressing the image data is determined based on the thumbnail image of the image data, and identification information including the determined compression method is given in advance, so that compression is performed when the image data is compressed. Since there is no need to determine the method, it is possible to efficiently execute processing for compressing image data and transmitting it by communication.
[適用例2]
上記適用例にかかる端末装置において、前記識別情報付与部は、前記サムネイル画像を構成する複数の連続する画素における色変化に基づいて前記圧縮方式を決定することが好ましい。
[Application Example 2]
In the terminal device according to the application example, it is preferable that the identification information adding unit determines the compression method based on a color change in a plurality of continuous pixels constituting the thumbnail image.
このような構成によれば、サムネイル画像を構成する複数の連続する画素における色変化に基づいて圧縮方式を決定するため、連続する画素における色変化に応じて圧縮方式を決めることができる。 According to such a configuration, since the compression method is determined based on the color change in a plurality of continuous pixels constituting the thumbnail image, the compression method can be determined according to the color change in the continuous pixels.
[適用例3]
上記適用例にかかる端末装置において、前記識別情報付与部は、前記色変化の頻度を数値化し、所定の基準値と比較することにより前記圧縮方式を決定することが好ましい。
[Application Example 3]
In the terminal device according to the application example described above, it is preferable that the identification information adding unit determines the compression method by digitizing the color change frequency and comparing it with a predetermined reference value.
このような構成によれば、色変化の頻度を数値化し、所定の基準値との比較に応じて圧縮方式を決めることができる。 According to such a configuration, the frequency of color change can be digitized and a compression method can be determined according to comparison with a predetermined reference value.
[適用例4]
上記適用例にかかる端末装置において、前記識別情報付与部は、前記数値化した前記色変化の頻度が前記所定の基準値以上の場合、第1の圧縮方式に決定し、前記数値化した前記色変化の頻度が前記所定の基準値未満の場合、第2の圧縮方式に決定することが好ましい。
[Application Example 4]
In the terminal device according to the application example, when the frequency of the digitized color change is equal to or higher than the predetermined reference value, the identification information adding unit determines a first compression method and the digitized color When the frequency of change is less than the predetermined reference value, it is preferable to determine the second compression method.
このような構成によれば、数値化した色変化の頻度と所定の基準値との大小関係に応じて、第1の圧縮方式または第2の圧縮方式に決めることができる。 According to such a configuration, the first compression method or the second compression method can be determined in accordance with the magnitude relationship between the digitized color change frequency and the predetermined reference value.
[適用例5]
上記適用例にかかる端末装置において、前記第1の圧縮方式はJPEG方式であり、前記第2の圧縮方式はPNG方式であることが好ましい。
[Application Example 5]
In the terminal device according to the application example described above, it is preferable that the first compression method is a JPEG method and the second compression method is a PNG method.
このような構成によれば、色変化の頻度が多い場合にはJPEG方式で圧縮し、色変化の頻度が少ない場合にはPNG方式で圧縮するため、圧縮効率を向上させることができる。 According to such a configuration, when the frequency of color change is high, compression is performed by the JPEG method, and when the frequency of color change is low, compression is performed by the PNG method, so that the compression efficiency can be improved.
[適用例6]
上記適用例にかかる端末装置において、前記サムネイル画像、前記識別情報および前記画像データを関連付けて記憶する記憶部を備えることが好ましい。
[Application Example 6]
The terminal device according to the application example preferably includes a storage unit that stores the thumbnail image, the identification information, and the image data in association with each other.
このような構成によれば、圧縮を行う前にサムネイル画像、識別情報および画像データを関連付けて記憶することができる。 According to such a configuration, thumbnail images, identification information, and image data can be stored in association with each other before compression.
[適用例7]
上記適用例にかかる端末装置において、前記サムネイル画像を表示する表示部と、前記表示部に表示する前記サムネイル画像を決定する表示画像決定部と、を備え、前記表示画像決定部は、前記表示部に表示すべき前記サムネイル画像の数が前記表示部で表示可能な数を越えた場合、次の前記画像データに関連付けされた前記サムネイル画像を前記表示部に表示させることなく、前記サムネイル画像、前記識別情報および前記画像データを前記記憶部に記憶させることが好ましい。
[Application Example 7]
The terminal device according to the application example includes: a display unit that displays the thumbnail image; and a display image determination unit that determines the thumbnail image to be displayed on the display unit, wherein the display image determination unit includes the display unit When the number of the thumbnail images to be displayed exceeds the number that can be displayed on the display unit, the thumbnail image associated with the next image data is not displayed on the display unit, and the thumbnail image, The identification information and the image data are preferably stored in the storage unit.
このような構成によれば、表示部に表示すべきサムネイル画像の数が表示部で表示可能な数を越えた場合、次のサムネイル画像を表示部に表示することなく、サムネイル画像、識別情報および画像データを記憶部に記憶するため、表示処理のバックグラウンドでサムネイル画像、識別情報および画像データの記憶処理を行うことができる。 According to such a configuration, when the number of thumbnail images to be displayed on the display unit exceeds the number that can be displayed on the display unit, the thumbnail image, the identification information, and the thumbnail image are not displayed on the display unit. Since the image data is stored in the storage unit, the thumbnail image, the identification information, and the image data can be stored in the background of the display process.
[適用例8]
上記適用例にかかる端末装置において、前記表示画像決定部は、前記サムネイル画像が前記表示部で表示可能になった場合、前記記憶部に記憶した次の前記画像データに関連付けされた前記サムネイル画像を読み出して前記表示部に表示させることが好ましい。
[Application Example 8]
In the terminal device according to the application example, when the thumbnail image can be displayed on the display unit, the display image determination unit displays the thumbnail image associated with the next image data stored in the storage unit. It is preferable to read out and display on the display unit.
このような構成によれば、サムネイル画像が表示部で表示可能になった場合、記憶部に記憶した次の画像データに関連付けされたサムネイル画像を読み出して表示するため、迅速に表示させることができる。 According to such a configuration, when the thumbnail image can be displayed on the display unit, the thumbnail image associated with the next image data stored in the storage unit is read and displayed, so that it can be displayed quickly. .
[適用例9]
上記適用例にかかる端末装置において、前記表示部に表示された前記サムネイル画像が選択された場合、前記画像圧縮部は、前記サムネイル画像に関連付けされた前記画像データおよび前記識別情報を前記記憶部から読み出し、前記識別情報が示す前記圧縮方式で前記画像データを圧縮することが好ましい。
[Application Example 9]
In the terminal device according to the application example, when the thumbnail image displayed on the display unit is selected, the image compression unit stores the image data and the identification information associated with the thumbnail image from the storage unit. It is preferable to read and compress the image data by the compression method indicated by the identification information.
このような構成によれば、選択されたサムネイル画像に関連付けされた画像データおよび識別情報を記憶部から読み出し、識別情報が示す圧縮方式で画像データを圧縮するため、迅速に画像データを圧縮できる。 According to such a configuration, the image data and the identification information associated with the selected thumbnail image are read from the storage unit, and the image data is compressed by the compression method indicated by the identification information, so that the image data can be quickly compressed.
[適用例10]
本適用例にかかる画像生成プログラムは、画像データが示す画像のサムネイル画像を前記画像データに基づいて生成するサムネイル画像生成機能と、前記サムネイル画像生成機能で生成した前記サムネイル画像に基づいて、前記画像データを圧縮する圧縮方式を決定し、決定した前記圧縮方式を含む識別情報を予め付与する識別情報付与機能と、前記識別情報付与機能で付与した前記識別情報が示す前記圧縮方式に基づいて、前記画像データを圧縮する画像圧縮機能と、前記画像圧縮機能で圧縮した前記画像データを通信を介して送信する送信機能と、をコンピューターに実行させることを特徴とする。
[Application Example 10]
The image generation program according to this application example includes a thumbnail image generation function that generates a thumbnail image of an image indicated by image data based on the image data, and the image based on the thumbnail image generated by the thumbnail image generation function. Determine a compression method for compressing data, based on the identification information providing function that pre-assigns identification information including the determined compression method, and the compression method indicated by the identification information provided by the identification information providing function, An image compression function for compressing image data and a transmission function for transmitting the image data compressed by the image compression function via communication are executed by a computer.
このような構成によれば、画像データのサムネイル画像に基づいて、画像データを圧縮する圧縮方式を決定し、決定した圧縮方式を含む識別情報を予め付与することにより、画像データを圧縮する時に圧縮方式を決定する必要が無いため、画像データを圧縮して通信により送信する処理を効率よく実行することができる。 According to such a configuration, a compression method for compressing the image data is determined based on the thumbnail image of the image data, and identification information including the determined compression method is given in advance, so that compression is performed when the image data is compressed. Since there is no need to determine the method, it is possible to efficiently execute processing for compressing image data and transmitting it by communication.
[適用例11]
本適用例にかかる記憶媒体は、画像生成プログラムを記憶したことを特徴とする。
[Application Example 11]
The storage medium according to this application example stores an image generation program.
[適用例12]
本適用例にかかる画像生成方法は、画像データが示す画像のサムネイル画像を前記画像データに基づいて生成するサムネイル画像生成工程と、前記サムネイル画像生成工程で生成した前記サムネイル画像に基づいて、前記画像データを圧縮する圧縮方式を決定し、決定した前記圧縮方式を含む識別情報を予め付与する識別情報付与工程と、前記識別情報付与工程で付与した前記識別情報が示す前記圧縮方式に基づいて、前記画像データを圧縮する画像圧縮工程と、前記画像圧縮工程で圧縮した前記画像データを通信を介して送信する送信工程と、を有することを特徴とする。
[Application Example 12]
The image generation method according to this application example includes a thumbnail image generation step of generating a thumbnail image of an image indicated by image data based on the image data, and the image based on the thumbnail image generated in the thumbnail image generation step. Determine a compression method for compressing data, and based on the compression method indicated by the identification information assigned step that gives the identification information including the determined compression method in advance, and the identification information given in the identification information provision step, An image compression process for compressing image data, and a transmission process for transmitting the image data compressed in the image compression process via communication.
このような方法によれば、画像データのサムネイル画像に基づいて、画像データを圧縮する圧縮方式を決定し、決定した圧縮方式を含む識別情報を予め付与することにより、画像データを圧縮する時に圧縮方式を決定する必要が無いため、画像データを圧縮して通信により送信する処理を効率よく実行することができる。 According to such a method, the compression method for compressing the image data is determined based on the thumbnail image of the image data, and the identification information including the determined compression method is given in advance, so that the compression is performed when the image data is compressed. Since there is no need to determine the method, it is possible to efficiently execute processing for compressing image data and transmitting it by communication.
以下、本発明の実施形態について図面を参照して説明する。 Embodiments of the present invention will be described below with reference to the drawings.
(実施形態)
図1は、端末装置の1つである情報処理装置5のハードウェア構成を示す図である。本実施形態では、情報処理装置5として高機能携帯電話であるスマートフォンや、多機能携帯端末であるタブレットを想定するが、これらには限定されない。例えば、ノートパソコンやデスクトップパソコンのようなコンピューター装置や、携帯型の画像ビューアー装置も想定できる。
情報処理装置5は、ハードウェアとして、CPU(Central Processing Unit)10、RAM(Random Access Memory)12、ROM(Read Only Memory)14、フラッシュメモリー16、通信装置18、表示装置20、ポインティングデバイス22およびメモリーカードリーダー24を備え、これらはバス26を介して接続されている。
(Embodiment)
FIG. 1 is a diagram illustrating a hardware configuration of an
The
CPU10は、基本ソフトウェアや各装置のデバイスドライバーや、アプリケーションソフトウェアなどの各種プログラム、および各種のデータをROM14やフラッシュメモリー16から読み込み、これらをRAM12内に設けられるメインメモリー領域に展開して実行するプロセッサーである。
尚、CPU10には限定されず、MPU(Micro Processing Unit)、DSP(Digital Signal Processor)、ASIC(Application Specific Integrated Circuit)等も想定できる。
通信装置18は、少なくとも送信機能(送信部)を備え、携帯電話のような公衆通信網を介してネットワークに接続し、ネットワークを介して電子機器と無線により通信する。また、Bluetooth(登録商標)(BTLE:Bluetooth Low Energyを含む)、Wi−Fi(登録商標)、Zigbee(登録商標)、NFC(Near field communication)、ANT+(登録商標)等の近距離無線通信規格に基づいて、ルーター装置や電子機器と接続し通信する態様も想定できる。尚、本実施形態では、情報処理装置5と通信可能に接続する電子機器として、プロジェクター装置60(図2)のような画像表示装置を想定する。
The
In addition, it is not limited to CPU10, MPU (Micro Processing Unit), DSP (Digital Signal Processor), ASIC (Application Specific Integrated Circuit) etc. can be assumed.
The
また、通信装置18は、外部のサーバー装置やコンピューターとの通信を介して画像データを情報処理装置5に取り込むことができる。
表示装置20は、液晶パネル等を想定し、情報処理装置5を操作するための操作画面や、電子機器に表示させる画像を指示するためのユーザーインターフェイス画面を表示する。
ポインティングデバイス22は、表示装置20に表示される操作画面やユーザーインターフェイス画面をユーザーが指示するためのデバイスである。本実施形態では、ポインティングデバイス22は、液晶パネルと組み合わせてタッチパネルを構成するタッチパッドを想定する。
メモリーカードリーダー24は、例えば、SDメモリーカード(登録商標)のような記憶媒体に記憶された画像ファイルや画像生成プログラム等を読み取る装置である。
In addition, the
The
The
The
図2は、情報処理装置5の機能構成を示すブロック図である。情報処理装置5は、画像ファイル受付部30、操作部32、記憶部34、表示部36、通信部38および制御部40を備える。
画像ファイル受付部30は、画像データを含むデータファイルを受け付ける。本実施形態では、画像ファイル受付部30は、メモリーカードリーダー24が記憶媒体を読み込んだり、通信装置18を介して受信したりすることで、データファイルを受け付ける。
FIG. 2 is a block diagram illustrating a functional configuration of the
The image
制御部40は、画像ファイル受付部30が受け付けたデータファイルを開いて画像データを順次読み出す。
本実施形態では、操作部32はポインティングデバイス22が相当し、記憶部34はフラッシュメモリー16が相当する。更に、表示部36は表示装置20が相当し、通信部38は通信装置18が相当する。
制御部40は、サムネイル画像生成部42、識別情報付与部44、表示画像決定部46、圧縮画像決定部48および画像圧縮部50を備える。
制御部40の各機能部は、CPU10やRAM12等からなるハードウェア資源と、ROM14やフラッシュメモリー16等に記憶された種々のソフトウェアとが有機的に協働することにより、それぞれの機能を実現する。
The
In the present embodiment, the
The
Each function unit of the
サムネイル画像生成部42は、画像ファイル受付部30が受け付けたデータファイルから読み出した画像データを順次取得し、取得した画像データが示す画像を縮小したサムネイル画像を生成する。サムネイル画像生成部42は、生成したサムネイル画像を含む画像データを識別情報付与部44に送り、識別情報付与部44から返送される画像データを表示画像決定部46に送る。
識別情報付与部44は、サムネイル画像生成部42から送られるサムネイル画像の画像データに基づいて識別情報を生成する。識別情報は、画像データが示すコンテンツの特性を示す情報である。本実施形態では、識別情報は、画像データを圧縮する場合に採用する圧縮方式を含む。
The thumbnail
The identification
本実施形態では、識別情報付与部44は、画像データの示す画像が写真である場合、第1の圧縮方式、即ち、JPEG(Joint Photographic Experts Group)方式(JPG圧縮と呼ぶ)に決定する。
他方で、画像データの示す画像がテキスト情報であることを示す場合、第2の圧縮方式、即ち、PNG(Portable Network Graphics)方式(PNG圧縮と呼ぶ)に決定する。
周知のように、画像を構成するピクセルの色が隣接するピクセルと異なる場合には、PNG圧縮よりもJPG圧縮が圧縮効率に優れ、ピクセルの色が隣接するピクセルと同一である場合には、JPG圧縮よりもPNG圧縮が圧縮効率に優れる。
In this embodiment, when the image indicated by the image data is a photograph, the identification
On the other hand, when the image indicated by the image data indicates text information, the second compression method, that is, the PNG (Portable Network Graphics) method (referred to as PNG compression) is determined.
As is well known, when the color of a pixel constituting an image is different from that of an adjacent pixel, JPG compression is more efficient than PNG compression, and when the color of the pixel is the same as the adjacent pixel, JPG PNG compression is more efficient than compression.
尚、本実施形態では、圧縮方式はJPG圧縮およびPNG圧縮の何れかであるが、これには限定されない。例えば、GIF(Graphics Interchange Format)方式やランレングス方式を圧縮方式の選択肢に加えても良い。
識別情報付与部44は、生成した識別情報を、画像データが規定するデータ構造の所定領域に書き込み、識別情報を書き込んだ画像データをサムネイル画像生成部42に返送する。
表示画像決定部46は、サムネイル画像生成部42から送られる画像データからサムネイル画像のデータを抽出し、抽出したサムネイル画像のデータが示すサムネイル画像をプロジェクター装置60の投写候補として表示部36に順次表示させる。また、表示画像決定部46は、サムネイル画像生成部42から送られる画像データを記憶部34に順次記憶させる。尚、記憶部34に記憶される画像データには、サムネイル画像のデータや、識別情報も含まれる。
In the present embodiment, the compression method is either JPG compression or PNG compression, but is not limited to this. For example, a GIF (Graphics Interchange Format) method or a run length method may be added to the compression method options.
The identification
The display
また、表示画像決定部46は、送られた画像データのデータ数が表示部36で一度に表示可能な画像数を越えた場合、表示可能な画像数の画像のみを表示させる。他方で、表示画像決定部46は、表示部36での表示の可否に依らず、サムネイル画像生成部42から送られる画像データを記憶部34に順次記憶させる。
そして、ユーザーが操作部32を操作し、表示する画像の変更を指示した場合には、表示画像決定部46は、記憶部34に記憶された画像データを読み出してサムネイル画像のデータを抽出し、表示されているサムネイル画像に替えて抽出したサムネイル画像を表示部36に表示させる。
In addition, when the number of image data sent exceeds the number of images that can be displayed on the
When the user operates the
また、ユーザーが操作部32を操作し、表示されているサムネイル画像の中からプロジェクター装置60に投写する画像を指示した場合、表示画像決定部46は、ユーザーが指示した画像の情報を圧縮画像決定部48に送る。
圧縮画像決定部48は、表示画像決定部46から送られる画像の情報に基づいて画像データを記憶部34から読み出す。ここで、圧縮画像決定部48は、読み出した画像データの所定領域から識別情報を抽出し、識別情報に含まれる圧縮方式を取得する。従って、圧縮方式は、記憶部34が記憶する画像データの所定領域から抽出されるため、画像圧縮時に決定される場合と比較して、迅速に取得できる。
In addition, when the user operates the
The compressed
圧縮画像決定部48は、記憶部34から読み出した画像データおよび圧縮方式を画像圧縮部50に送る。
画像圧縮部50は、圧縮画像決定部48から送られる圧縮方式に従い、画像データを圧縮する。圧縮された画像データは、通信部38からプロジェクター装置60に送信される。
プロジェクター装置60は、情報処理装置5から送られる画像データを受信し、受信した画像データから画像信号を生成し、生成した画像信号に基づいて投写画像を生成する。更に、プロジェクター装置60は、投写画像を光学的に拡大してスクリーン等に投写する。
The compressed
The
The
次に、図3〜図5のフローチャートに従い、情報処理装置5が受け付けた画像ファイルからサムネイル画像を生成し、指示された画像データをプロジェクター装置60に送信する処理(画像生成方法、画像生成プログラム)の流れを説明する。尚、処理の理解を容易にすべく、図6も適宜参照して説明する。
図3は、受け付けた画像ファイルからサムネイル画像を生成する処理の流れを示すフローチャートである。
最初に、制御部40は、受け付けた画像ファイルを開く(ステップS100)。
次に、制御部40は、画像ファイルから画像データを1つ取得する(ステップS102)。
Next, according to the flowcharts of FIGS. 3 to 5, processing for generating a thumbnail image from the image file received by the
FIG. 3 is a flowchart showing a flow of processing for generating a thumbnail image from an accepted image file.
First, the
Next, the
次に、制御部40は、取得した画像データのサムネイル画像を生成する(ステップS104)<サムネイル画像生成工程、サムネイル画像生成機能>。
次に、制御部40は、取得した画像データに対する圧縮方式(圧縮方法)を決定する(ステップS106)。
ここで、図4は、画像データの圧縮方法を決定する処理(ステップS106)の詳細を示すフローチャートであり、図4に従って圧縮方法を決定する処理を説明する。
最初に、制御部40は、サムネイル画像における所定の箇所から所定数の画素を抽出する(ステップS120)。本実施形態では、図6に示すように、所定の抽出ウィンドウ202A〜202Dを設けた抽出フィルター200を予め設定する。制御部40は、抽出フィルター200をサムネイル画像に適用し、抽出ウィンドウ202A〜202Dの位置に合致する箇所から複数の画素のデータを得る。そして、制御部40は、取得した複数の画素のデータを抽出ウィンドウ202A〜202Dの順序で直列に並べて画素データとして保持する。
Next, the
Next, the
FIG. 4 is a flowchart showing details of the process for determining the compression method of image data (step S106). The process for determining the compression method will be described with reference to FIG.
First, the
尚、抽出ウィンドウ202A〜202Dは、サムネイル画像の水平方向に限定されるものではなく、垂直方向や斜め方向を含めて設定されても良い。また、抽出ウィンドウ202A〜202Dは直線状には限定されず、曲線状であっても良い。また、抽出ウィンドウ202A〜202Dの位置や個数は、所定の頻度で再設定されても良い。
次に、制御部40は、画素データに対して一方向に隣り合う画素の画素データと排他的論理和を行う(ステップS122)。本実施形態では、隣接する画素データにおいて色変化が生じる頻度を数値化することになる。
一般的には、画像データが示す画像が写真データ205である場合、各画素は被写体のイメージの一部に対応するため、隣接する画素の色は微妙に異なることが多い。他方で、画像データが示す画像がテキストデータ210である場合、文字情報は連続する線分で描画されるため、隣接する画素の色は線分の太さや長さに応じて同一であり、突然に変化することが多い。
Note that the
Next, the
In general, when the image indicated by the image data is the
従って、図6に示すように、写真データ205の排他的論理和値XOR1は、真値「1」が連続するデータになる。また、テキストデータ210の排他的論理和値XOR2は、偽値「0」が連続し、真値「1」が分散するデータになる。
次に、制御部40は、演算結果の各値を積算する(ステップS124)。例えば、図6では、排他的論理和値XOR1の場合には、積算値nは「400」になる。他方で、排他的論理和値XOR2の場合には、積算値nは「10」になる。
次に、制御部40は、積算値nと基準値と、を比較し、積算値nが基準値以上か、否かを判定する(ステップS126)。
Therefore, as shown in FIG. 6, the exclusive OR value XOR1 of the
Next, the
Next, the
ここで、積算した値が基準値以上である場合(ステップS126でYes)、制御部40は、圧縮方法をJPG圧縮に決定し(ステップS128)、圧縮方法を決定する処理を終了する。
他方で、積算した値が基準値未満である場合(ステップS126でNo)、制御部40は、圧縮方法をPNG圧縮に決定し(ステップS130)、圧縮方法を決定する処理を終了する。
尚、基準値(所定の基準値)は、例えば、「200」のように予め決定される。
図3に戻り、制御部40は、決定した圧縮方法を識別情報に書き込み、識別情報を画像データに付加する(ステップS108)<識別情報付与工程、識別情報付与機能>。
If the integrated value is greater than or equal to the reference value (Yes in step S126), the
On the other hand, when the integrated value is less than the reference value (No in step S126), the
The reference value (predetermined reference value) is determined in advance, for example, “200”.
Returning to FIG. 3, the
次に、制御部40は、サムネイル画像および識別情報を含む画像データを記憶部34に記憶する(ステップS109)。
次に、制御部40は、画像データのサムネイル画像を表示部36に表示できるか、否かを判定する(ステップS110)。
ここで、サムネイル画像を表示部36に表示できる場合(ステップS110でYes)、制御部40は、サムネイル画像を表示部36に表示し(ステップS112)、ステップS116に進む。
他方で、表示部36で一度に表示可能な画像数を越え、サムネイル画像を表示部36に表示できない場合(ステップS110でNo)、ステップS116に進む。
Next, the
Next, the
If the thumbnail image can be displayed on the display unit 36 (Yes in step S110), the
On the other hand, if the number of images that can be displayed at one time on the
ステップS116では、制御部40は、画像ファイルから全ての画像データを取得したか否かを判定し、全ての画像データを取得した場合(ステップS116でYes)、一連の処理を終了する。
他方で、全ての画像データを取得していない場合(ステップS116でNo)、ステップS102に戻り、取得していない次の画像データに対して同様の処理を行う。
以上の処理により、表示部36に次のサムネイル画像を表示できない場合であっても、次のサムネイル画像を生成して圧縮方法を決定し、次のサムネイル画像および圧縮方法を予め記憶しておく処理を、表示状態に関係なくバックグラウンドで実行できる。
In step S116, the
On the other hand, if not all image data has been acquired (No in step S116), the process returns to step S102, and the same processing is performed on the next image data that has not been acquired.
Even if the next thumbnail image cannot be displayed on the
次に、図5は、表示部36に表示されたサムネイル画像の中からユーザーによりサムネイル画像が選択された場合の処理の流れを示すフローチャートである。
最初に、制御部40は、選択されたサムネイル画像の画像データに付加された識別情報を取得する(ステップS140)。
次に、制御部40は、識別情報が示す圧縮方式を判定する(ステップS142)。
ここで、識別情報が示す圧縮方式はJPG圧縮である場合(ステップS142でYes)、制御部40は画像データをJPG圧縮により圧縮し(ステップS144)、ステップS148に進む<画像圧縮工程、画像圧縮機能>。
Next, FIG. 5 is a flowchart showing a processing flow when a user selects a thumbnail image from thumbnail images displayed on the
First, the
Next, the
If the compression method indicated by the identification information is JPG compression (Yes in step S142), the
他方で、識別情報が示す圧縮方式はPNG圧縮である場合(ステップS142でNo)、制御部40は画像データをPNG圧縮により圧縮し(ステップS146)、ステップS148に進む<画像圧縮工程、画像圧縮機能>。
ステップS148では、制御部40は圧縮した画像データをプロジェクター装置60に送信し、一連の処理を終了する<送信工程、送信機能>。
On the other hand, when the compression method indicated by the identification information is PNG compression (No in step S142), the
In step S148, the
以上述べた実施形態によれば、画像データを圧縮する工程よりも前に、圧縮方式が予め決定されているため、所望の画像データを選択してプロジェクター装置60に送る場合、圧縮方式を決定する処理が不要であることから、予め決定された圧縮方式で選択した画像データを圧縮し、圧縮した画像データをプロジェクター装置60に送ることができる。従って、情報処理装置5で選択したサムネイル画像をプロジェクター装置60に拡大して投写するまでに要する時間を短縮できる。
以上、本発明を図示した実施形態に基づいて説明したが、本発明は、本実施形態に限定されるものではなく、以下に述べるような変形例も想定できる。
(1)画素の色変化に基づいて圧縮方式を決定したが、色変化に加えて、画素の明るさの変化に基づいて圧縮方式を決定しても良い。
(2)また、画像表示装置は、プロジェクター装置60には限定されず、液晶表示パネルに画像/画像を表示する液晶モニターまたは液晶テレビ、或いは、PDP(プラズマディスプレイパネル)に画像/画像を表示するモニター装置またはテレビ受像機、OLED(Organic light-emitting diode)、OEL(Organic Electro-Luminescence)等と呼ばれる有機EL表示パネルに画像/画像を表示するモニター装置またはテレビ受像機等の自発光型の表示装置など、各種の表示装置も含まれる。
According to the embodiment described above, since the compression method is determined in advance before the step of compressing the image data, when the desired image data is selected and sent to the
As mentioned above, although this invention was demonstrated based on embodiment shown in figure, this invention is not limited to this embodiment, The modification as described below can also be assumed.
(1) Although the compression method is determined based on the color change of the pixel, the compression method may be determined based on the change in the brightness of the pixel in addition to the color change.
(2) The image display device is not limited to the
5…情報処理装置、10…CPU、12…RAM、14…ROM、16…フラッシュメモリー、18…通信装置、20…表示装置、22…ポインティングデバイス、24…メモリーカードリーダー、26…バス、30…画像ファイル受付部、32…操作部、34…記憶部、36…表示部、38…通信部、40…制御部、42…サムネイル画像生成部、44…識別情報付与部、46…表示画像決定部、48…圧縮画像決定部、50…画像圧縮部、60…プロジェクター装置、200…抽出フィルター、202A〜202D…抽出ウィンドウ、205…写真データ、210…テキストデータ。
5 ... Information processing device, 10 ... CPU, 12 ... RAM, 14 ... ROM, 16 ... Flash memory, 18 ... Communication device, 20 ... Display device, 22 ... Pointing device, 24 ... Memory card reader, 26 ... Bus, 30 ... Image file receiving unit, 32 ... operation unit, 34 ... storage unit, 36 ... display unit, 38 ... communication unit, 40 ... control unit, 42 ... thumbnail image generation unit, 44 ... identification information addition unit, 46 ... display
Claims (12)
前記サムネイル画像生成部が生成した前記サムネイル画像に基づいて、前記画像データを圧縮する圧縮方式を決定し、決定した前記圧縮方式を含む識別情報を予め付与する識別情報付与部と、
前記識別情報付与部が付与した前記識別情報が示す前記圧縮方式に基づいて、前記画像データを圧縮する画像圧縮部と、
前記画像圧縮部が圧縮した前記画像データを通信を介して送信する送信部と、を備えることを特徴とする端末装置。 A thumbnail image generating unit that generates a thumbnail image of an image indicated by the image data based on the image data;
An identification information adding unit that determines a compression method for compressing the image data based on the thumbnail image generated by the thumbnail image generation unit, and that assigns in advance identification information including the determined compression method;
An image compression unit that compresses the image data based on the compression method indicated by the identification information provided by the identification information addition unit;
And a transmission unit that transmits the image data compressed by the image compression unit via communication.
前記識別情報付与部は、前記サムネイル画像を構成する複数の連続する画素における色変化に基づいて前記圧縮方式を決定することを特徴とする端末装置。 The terminal device according to claim 1,
The terminal device characterized in that the identification information adding unit determines the compression method based on a color change in a plurality of continuous pixels constituting the thumbnail image.
前記識別情報付与部は、前記色変化の頻度を数値化し、所定の基準値と比較することにより前記圧縮方式を決定することを特徴とする端末装置。 The terminal device according to claim 2,
The terminal device characterized in that the identification information adding unit determines the compression method by digitizing the color change frequency and comparing it with a predetermined reference value.
前記識別情報付与部は、前記数値化した前記色変化の頻度が前記所定の基準値以上の場合、第1の圧縮方式に決定し、前記数値化した前記色変化の頻度が前記所定の基準値未満の場合、第2の圧縮方式に決定することを特徴とする端末装置。 The terminal device according to claim 3,
The identification information adding unit determines a first compression method when the digitized frequency change frequency is equal to or greater than the predetermined reference value, and the digitized color change frequency is the predetermined reference value. If it is less, the terminal device is determined to be the second compression method.
前記第1の圧縮方式はJPEG方式であり、前記第2の圧縮方式はPNG方式であることを特徴とする端末装置。 The terminal device according to claim 4,
The terminal apparatus according to claim 1, wherein the first compression method is a JPEG method, and the second compression method is a PNG method.
前記サムネイル画像、前記識別情報および前記画像データを関連付けて記憶する記憶部を備えることを特徴とする端末装置。 The terminal device according to any one of claims 1 to 5,
A terminal device comprising: a storage unit that stores the thumbnail image, the identification information, and the image data in association with each other.
前記サムネイル画像を表示する表示部と、
前記表示部に表示する前記サムネイル画像を決定する表示画像決定部と、を備え、
前記表示画像決定部は、前記表示部に表示すべき前記サムネイル画像の数が前記表示部で表示可能な数を越えた場合、次の前記画像データに関連付けされた前記サムネイル画像を前記表示部に表示させることなく、前記サムネイル画像、前記識別情報および前記画像データを前記記憶部に記憶させることを特徴とする端末装置。 The terminal device according to claim 6,
A display unit for displaying the thumbnail image;
A display image determination unit that determines the thumbnail image to be displayed on the display unit,
When the number of the thumbnail images to be displayed on the display unit exceeds the number that can be displayed on the display unit, the display image determining unit displays the thumbnail image associated with the next image data on the display unit. A terminal device, wherein the thumbnail image, the identification information, and the image data are stored in the storage unit without being displayed.
前記表示画像決定部は、前記サムネイル画像が前記表示部で表示可能になった場合、前記記憶部に記憶した次の前記画像データに関連付けされた前記サムネイル画像を読み出して前記表示部に表示させることを特徴とする端末装置。 The terminal device according to claim 7,
When the thumbnail image can be displayed on the display unit, the display image determination unit reads the thumbnail image associated with the next image data stored in the storage unit and displays the thumbnail image on the display unit. A terminal device characterized by the above.
前記表示部に表示された前記サムネイル画像が選択された場合、
前記画像圧縮部は、前記サムネイル画像に関連付けされた前記画像データおよび前記識別情報を前記記憶部から読み出し、前記識別情報が示す前記圧縮方式で前記画像データを圧縮することを特徴とする端末装置。 The terminal device according to any one of claims 7 to 8,
When the thumbnail image displayed on the display unit is selected,
The terminal device, wherein the image compression unit reads the image data and the identification information associated with the thumbnail image from the storage unit, and compresses the image data by the compression method indicated by the identification information.
前記サムネイル画像生成機能で生成した前記サムネイル画像に基づいて、前記画像データを圧縮する圧縮方式を決定し、決定した前記圧縮方式を含む識別情報を予め付与する識別情報付与機能と、
前記識別情報付与機能で付与した前記識別情報が示す前記圧縮方式に基づいて、前記画像データを圧縮する画像圧縮機能と、
前記画像圧縮機能で圧縮した前記画像データを通信を介して送信する送信機能と、をコンピューターに実行させることを特徴とする画像生成プログラム。 A thumbnail image generation function for generating a thumbnail image of an image indicated by the image data based on the image data;
An identification information providing function for determining a compression method for compressing the image data based on the thumbnail image generated by the thumbnail image generation function, and for providing identification information including the determined compression method in advance;
An image compression function for compressing the image data based on the compression method indicated by the identification information given by the identification information giving function;
An image generation program causing a computer to execute a transmission function of transmitting the image data compressed by the image compression function via communication.
前記サムネイル画像生成工程で生成した前記サムネイル画像に基づいて、前記画像データを圧縮する圧縮方式を決定し、決定した前記圧縮方式を含む識別情報を予め付与する識別情報付与工程と、
前記識別情報付与工程で付与した前記識別情報が示す前記圧縮方式に基づいて、前記画像データを圧縮する画像圧縮工程と、
前記画像圧縮工程で圧縮した前記画像データを通信を介して送信する送信工程と、を有することを特徴とする画像生成方法。 A thumbnail image generation step of generating a thumbnail image of an image indicated by the image data based on the image data;
An identification information providing step of determining a compression method for compressing the image data based on the thumbnail image generated in the thumbnail image generating step and pre-applying identification information including the determined compression method;
An image compression step for compressing the image data based on the compression method indicated by the identification information given in the identification information giving step;
And a transmitting step of transmitting the image data compressed in the image compressing step via communication.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2016168970A JP2018037828A (en) | 2016-08-31 | 2016-08-31 | Terminal device, image generation program, storage medium, and image generation method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2016168970A JP2018037828A (en) | 2016-08-31 | 2016-08-31 | Terminal device, image generation program, storage medium, and image generation method |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2018037828A true JP2018037828A (en) | 2018-03-08 |
Family
ID=61566135
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2016168970A Pending JP2018037828A (en) | 2016-08-31 | 2016-08-31 | Terminal device, image generation program, storage medium, and image generation method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2018037828A (en) |
-
2016
- 2016-08-31 JP JP2016168970A patent/JP2018037828A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9753629B2 (en) | Terminal and controlling method thereof | |
KR101813196B1 (en) | Method, device, program, and recording medium for video communication | |
CN109670427B (en) | Image information processing method and device and storage medium | |
US20030017846A1 (en) | Wireless display | |
CN108173742B (en) | Image data processing method and device | |
KR101644868B1 (en) | Inter-terminal image sharing method, terminal device, and communications system | |
US20150002369A1 (en) | Information processing apparatus, and information processing method | |
CN107810472B (en) | Electronic device and method for controlling display of panoramic image | |
JP2005287035A (en) | Method and system for displaying multimedia data | |
JP2011060215A5 (en) | ||
US9037749B2 (en) | Information processing apparatus and image transmission method | |
US9392063B2 (en) | Information processing apparatus that controls transfer of image, control method therefor, and storage medium | |
US20150186095A1 (en) | Inter-terminal image sharing method, terminal device, and communications system | |
CN109388726A (en) | A kind of image display method, device, equipment and computer-readable medium | |
US9571600B2 (en) | Relay device, relay method and thin client system | |
JP2018037828A (en) | Terminal device, image generation program, storage medium, and image generation method | |
US20070124065A1 (en) | Map transmission system and method thereof | |
CN113852751B (en) | Image processing method, device, terminal and storage medium | |
US20050128054A1 (en) | Method, system, and apparatus to identify and transmit data to an image display | |
JP6527573B1 (en) | Portable information terminal, data management system, data management method, and data management program | |
US20150106733A1 (en) | Terminal device, thin client system, display method, and recording medium | |
CN108540726B (en) | Method and device for processing continuous shooting image, storage medium and terminal | |
US8688799B2 (en) | Methods, apparatuses and computer program products for reducing memory copy overhead by indicating a location of requested data for direct access | |
US9407938B2 (en) | Method for processing image and electronic device for the method | |
KR101830324B1 (en) | Terminal Device, method for streaming UI, and storage medium thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
RD05 | Notification of revocation of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7425 Effective date: 20180907 |
|
RD03 | Notification of appointment of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7423 Effective date: 20181120 |