JP2022164258A - Information processing apparatus, information processing method, and program - Google Patents
Information processing apparatus, information processing method, and program Download PDFInfo
- Publication number
- JP2022164258A JP2022164258A JP2021069641A JP2021069641A JP2022164258A JP 2022164258 A JP2022164258 A JP 2022164258A JP 2021069641 A JP2021069641 A JP 2021069641A JP 2021069641 A JP2021069641 A JP 2021069641A JP 2022164258 A JP2022164258 A JP 2022164258A
- Authority
- JP
- Japan
- Prior art keywords
- image
- memory
- editing
- information processing
- information
- 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
- Processing Or Creating Images (AREA)
- Editing Of Facsimile Originals (AREA)
Abstract
Description
本発明は、複数の画像を編集して表示するための情報処理技術に関する。 The present invention relates to information processing technology for editing and displaying a plurality of images.
近年、フォトアルバム作成アプリケーションを使って、複数の画像をフォトアルバム用のテンプレートに配置し、フォトアルバムを作成する製品がリリースされている。フォトアルバム作成アプリケーションでは、ユーザにとってより魅力的なフォトアルバムを作成可能とするために、フォトアルバムの表紙や本身に複数の画像をユーザの好みの位置に配置できることが一般的になっている。また、ユーザは配置した画像に対して、コントラストや明るさを調整したり、モノクロやセピアなどの色調を調整したりする様々な効果をかけることで、より好みの画像に編集することも可能になっている。 In recent years, a product has been released that creates a photo album by arranging a plurality of images in a photo album template using a photo album creation application. In order to create a more attractive photo album for the user, photo album creation applications generally allow a plurality of images to be placed on the cover or main body of the photo album at desired positions of the user. In addition, users can edit images to their liking by applying various effects such as adjusting contrast and brightness, and adjusting color tones such as monochrome and sepia. It's becoming
特許文献1には、このような各種効果のパラメータを変更するなどの画像編集を行う際に、パラメータの変化に応じた効果の変化をユーザがリアルタイムに確認できるようにする方法が開示されている。
しかしながら、画像に対する効果の適用結果をリアルタイムに描画するには、メモリ上で画像データに対して処理を行い、効果が適用された新たな画像データを生成する必要があるため、扱う画像が増えるとメモリの使用量が増加する。そのため、多数の画像を同時に表示するフォトアルバム作成アプリケーションなどにおいて効果の適用結果をリアルタイムに描画しようとすると、メモリ使用量が増大するという課題がある。 However, in order to draw the result of applying an effect to an image in real time, it is necessary to process the image data in memory and generate new image data with the effect applied. Increased memory usage. Therefore, when trying to draw the effect application results in real time in a photo album creation application that displays a large number of images at the same time, there is a problem that the amount of memory used increases.
上記課題を解決するために、本発明は、メモリを有するコンピュータに、複数の確定画像が配置されているアルバムデータを編集するための方法であって、前記複数の確定画像のうち編集対象として選択された確定画像を検出する検出ステップと、記憶装置に保存された前記検出ステップで検出された前記選択された確定画像に対応する元画像を、前記メモリに読み出す読み出しステップと、前記確定画像に関する設定値を含む前記編集情報の変更を受け付けるステップと、前記読み出しステップで前記メモリに読み出した前記元画像に対して、前記変更を受け付けるステップで受け付けた前記変更を反映した前記編集情報を適用して編集画像を前記メモリに生成する生成ステップと、前記生成ステップで前記編集画像を生成すると、前記選択された確定画像に代えて前記メモリから前記編集画像を読み出して配置する配置ステップと、を含む方法の各ステップを実行させることを特徴とする。 In order to solve the above problems, the present invention provides a method for editing album data in which a plurality of confirmed images are arranged in a computer having a memory, comprising: a detection step of detecting the selected definite image; a reading step of reading an original image corresponding to the selected definite image detected in the detection step and stored in a storage device into the memory; a step of receiving changes to the editing information including values, and editing by applying the editing information reflecting the changes received in the step of receiving changes to the original image read into the memory in the reading step. a generating step of generating an image in the memory; and an arranging step of reading out and arranging the edited image from the memory in place of the selected final image when the edited image is generated in the generating step. It is characterized by executing each step.
本発明によれば、編集を行う際のメモリの使用量を低減することができる。 According to the present invention, it is possible to reduce the amount of memory used when editing.
以下、添付図面を参照して本発明の好適な実施の形態を詳しく説明する。尚、以下の実施の形態は特許請求の範囲に係る本発明を限定するものでなく、また本実施の形態で説明されている特徴の組み合わせの全てが本発明の解決手段に必須のものとは限らない。 Preferred embodiments of the present invention will now be described in detail with reference to the accompanying drawings. It should be noted that the following embodiments do not limit the present invention according to the claims, and all the combinations of features described in the embodiments are not essential to the solution means of the present invention. Not exclusively.
<実施形態1>
実施形態1では、ユーザが編集対象として選択した画像と、そうでない画像とで異なる処理を行う。ユーザが編集対象として選択した画像については、メモリに読み込んだ編集前の元画像の画像データに対して編集内容に応じた処理を施して新たな画像データをメモリ上に生成し、生成した新たな画像データに基づく画像を表示する。編集内容に変更があると、変更された編集内容に応じた画像データをメモリ上に、元画像と編集内容とに基づいてリアルタイムに生成し、変更された編集内容が反映された画像をリアルタイムに表示する。
<
In the first embodiment, different processing is performed for an image selected by the user as an object to be edited and for an image that is not. For the image selected by the user to be edited, the image data of the original image before editing read into memory is processed according to the content of editing, and new image data is generated in memory. Display an image based on the image data. When there is a change in the editing content, image data corresponding to the changed editing content is generated on a memory in real time based on the original image and the editing content, and an image reflecting the changed editing content is generated in real time. indicate.
一方、選択された画像以外の画像(つまり選択されていない画像)については、メモリに読み込んだ画像データに基づく画像を表示し、表示を行っている間に、メモリ上への元画像の画像データの読み込みおよび新たな画像データの生成を行わない。 On the other hand, for images other than the selected image (that is, the unselected image), the image based on the image data loaded into the memory is displayed, and while the image is being displayed, the image data of the original image is stored in the memory. , and does not generate new image data.
このようなことから本実施形態では、編集結果をリアルタイムに表示しながら編集する際のメモリ使用量を低減することができる。 For this reason, in this embodiment, it is possible to reduce the amount of memory used when editing while displaying the editing result in real time.
まず図1を用いて、本実施形態で用いる情報処理装置1004の構成について説明する。本実施形態に用いる情報処理装置1004は、入力された画像データからアルバムデータ(フォトアルバム、フォトブック)を作成することが可能なフォトアルバム作成アプリケーションがインストールされている。情報処理装置1004は、作成したアルバムデータを印刷データとして出力することや、外部サーバーにアップロードすることが可能である。情報処理装置1004は、ROM1009、RAM1010、CPU1011を有する。また、プリンター1005、モニタ1006、入力装置1007、記憶装置1008、ネットワーク1003と接続するための入出力インターフェース(不図示)を有する。
First, the configuration of the
CPU1011は、中央演算装置であり、記憶装置1008やROM1009、RAM1010に記憶されているオペレーションシステムプログラム(以下、OSと略す)を実行することにより情報処理装置1004全体の制御を行う。また、CPU1011は、ROM1009やRAM1010に記憶されているプログラムを実行することによって、情報処理装置1004の各機能構成の実現や情報の演算や加工、各ハードウェアの制御を行う。
The
ROM1009は、読み出し専用メモリであり、フォトアルバム作成アプリケーションなどの各プログラムが格納されている。RAM1010は、ランダムアクセスメモリであり、CPU1011のワークメモリや不揮発性のRAMであれば各プログラムが格納されている。RAM1010には、上述したリアルタイムに生成され、表示される画像データが格納される。ネットワーク1003(例えば、インターネット)は、情報処理装置1004、外部サーバー1002と接続されており、接続されているそれぞれの情報の伝達を行うための通信網である。
A
外部サーバー1002は、プリンター1001と接続するための入出力インターフェース(不図示)を有しており、プリンター1001に接続されている。情報処理装置1004で作成したアルバムデータは、ネットワーク1003を介して外部サーバー1002にアップロードされる。外部サーバーでは、アップロードされたアルバムデータが印刷可能であれば、プリンター1001に出力する。外部サーバー1002は、例えばフォトアルバム受注・管理サーバーであり、ユーザが自身の情報処理装置1004で作成したアルバムデータをアップロードし、必要なフォトアルバム購入手続きが取られたら、プリンター1001で出力する。その後、出力された印刷物は製本され、ユーザ手元に届けられる。
The
プリンター1005は、情報処理装置1004で作成された印刷物を印刷するためのプリンターである。形態によっては、作成したアルバムデータを自身が所有しているプリンター1005で印刷し、ユーザが製本し、印刷物としてのフォトアルバムに仕上げてもよい。
A
モニタ1006は、情報処理装置1004において出力された画像情報を表示する表示装置である。入力装置1007は、情報処理装置1004に入力を行うためのキーボードやポインティングデバイスなどの入力装置である。入力装置の形態によってはモニタと一体となっており、モニタに直接触れ入力する構成の装置もある。記憶装置1008は、画像データやテンプレートなどを保存するHDDやSSDなどの記憶装置である。記憶装置1008に記憶される画像データには、上述のリアルタイムに生成され、表示される画像データは含まれない。ブロック図では、情報処理装置1004とモニタ1006、入力装置1007、記憶装置1008が別個なものとして記載されている。しかしこれらの構成は、情報処理装置1004の形態によっては、モニタ、入力装置、記憶装置(情報処理装置のRAMと共有となる場合もある)が一体化された情報処理装置であってもよい。
A
次に図2を用いて、フォトアルバムの各ページに配置された画像に関する編集情報を保存管理する方法について説明する。図2に、本実施形態において情報処理装置1004で保存管理するフォトアルバムに関する編集情報の一例を表す。図2に示す例は、8ページで構成されるフォトアルバムに関して生成された編集情報であり、記憶装置1008に保存されている。編集情報は、フォトアルバム作成アプリケーションの起動に応じてRAM1010に読み込まれるとよい。以下、図2に示す編集情報の各項目について説明する。
Next, with reference to FIG. 2, a method for saving and managing edit information regarding images arranged on each page of the photo album will be described. FIG. 2 shows an example of edit information related to photo albums stored and managed by the
「スロットID」に対しては、画像が配置されたフォトブックのページ上のスロットを識別するための識別情報が格納される。尚、本例では、スロットという概念を用いて説明するが、必ずしもスロットを用いなくてもよい。例えば、フォトブックのページ上に配置された画像を識別するための識別情報である画像IDを格納するようにしてもよい。 The “slot ID” stores identification information for identifying the slot on the page of the photobook in which the image is arranged. In this example, the concept of slots will be used for explanation, but slots may not necessarily be used. For example, an image ID, which is identification information for identifying an image arranged on a page of a photobook, may be stored.
「ページ番号」に対しては、画像が配置されるフォトアルバムにおけるページの番号が格納される。つまり、ページ番号が「1」であるということは、画像がフォトアルバムの1ページ目に配置されることを示す。なお、本実施形態ではフォトアルバムのページ単位を見開きとする。尚、「見開き」とは、例えば表示においては一つの表示用ウィンドウに相当し、印刷物においては、本を開いた際にユーザが一度に鑑賞可能な互いに隣接する1対のページ(つまり2ページ分)に相当する。尚、見開き内の2ページは、それぞれ異なる用紙に印刷されたものが隣接するよう綴じられることで見開きを形成する場合と、1枚の用紙に印刷されたものが真ん中で折られることで見開きを形成する場合と、がある。ここでは、このような見開きの概念を用いて説明するが、ページでもよい。即ち、見開きの左右ページをそれぞれ単位ページとして保存管理してもよい。 The "page number" stores the number of the page in the photo album on which the image is arranged. In other words, the page number "1" indicates that the image is placed on the first page of the photo album. Note that, in the present embodiment, each page of the photo album is a double-page spread. In addition, the "spread" corresponds to, for example, one display window in terms of display, and in terms of printed matter, a pair of pages adjacent to each other (that is, two pages) that can be viewed by the user at once when the book is opened. ). In addition, two pages in a double-page spread are printed on different sheets of paper and bound together to form a double-page spread. There is a case to form and a case to form. Here, the concept of double-page spreads will be used for explanation, but pages may also be used. In other words, the left and right pages of the two-page spread may be stored and managed as unit pages.
「元画像」に対しては、効果が適用される前の画像の画像データについてのファイル名、つまり、その画像データのファイルパスを特定可能にする情報が格納される。なお、本実施形態では、画像データが予め定められた所定のフォルダに保存され、所定のフォルダパスとファイル名からファイルパスを特定できるものとする。また、ファイル名を格納する項目に関しては、ファイル名に代えてファイルパスを格納するようにしてもよい。元画像のファイルパスは、例えば記憶装置1008の格納領域となる。
The "original image" stores the file name of the image data of the image before the effect is applied, that is, the information that allows the file path of the image data to be specified. In this embodiment, image data is stored in a predetermined folder, and the file path can be identified from the predetermined folder path and file name. As for the item storing the file name, the file path may be stored instead of the file name. The file path of the original image is the storage area of the
「x」、「y」、「width」、「height」に対しては、画像をフォトアルバムのページに配置するスロットの位置情報を表すx座標、y座標、幅、高さを示す値が格納される。本実施形態においては、座標の原点位置(0、0)は見開きページの左上端とする。 'x', 'y', 'width', and 'height' store values indicating the x-coordinate, y-coordinate, width, and height of the slot where the image is placed on the photo album page. be done. In this embodiment, the origin position (0, 0) of the coordinates is the upper left corner of the two-page spread.
「不透明度」、「セピア」、「モノクロ」、「コントラスト」、「明るさ」に対しては、元画像に適用して、元画像の画素値を変化させる各種効果のパラメータ(設定値)が格納される。 For "Opacity", "Sepia", "Monochrome", "Contrast", and "Brightness", there are various effect parameters (set values) that are applied to the original image to change the pixel values of the original image. Stored.
「確定画像」に対しては、元画像に効果が適用された画像の画像データのファイル名、つまり、その画像データのファイルパスを特定可能にする情報が格納される。なお、本実施形態において用いる画像の画像データは、拡張子“*.jpg”が示すようにJPEG形式であり、デジタルスチルカメラ等で撮影して保存された写真等で一般的な画像ファイル形式である。但し、本実施形態において画像データは、これに限定されず、任意の画像ファイル形式であってよい。元画像のファイルパスは、例えば記憶装置1008の格納領域となる。
For the "final image", the file name of the image data of the image to which the effect is applied to the original image, that is, the information that enables the specification of the file path of the image data is stored. Note that the image data of the image used in this embodiment is in JPEG format as indicated by the extension "*.jpg", and is a general image file format for photographs taken and saved with a digital still camera or the like. be. However, the image data in this embodiment is not limited to this, and may be in any image file format. The file path of the original image is the storage area of the
次に図3を用いて、フォトアルバム3002を編集するための編集画面3000について説明する。図3に示すように、フォトアルバムを編集するための編集画面3000は、編集中のフォトアルバムを表示するフォトアルバム表示操作部3001を含み、フォトアルバム表示部3001に内には編集中のフォトアルバム3002が表示される。
Next, an
表示領域3003には、フォトアルバム3002の表示されているページのページ番号が表示される。ボタン3006は、表示されているフォトアルバムのページを前に送るための前送りボタン、ボタン3007は、表示されているフォトアルバムのページを後ろに送るための後ろ送りボタンである。
A
フォトアルバム3002上に配置されている画像3004は、図2に示すスロットID001の確定画像であり、画像3005は、図2に示すスロットID002の確定画像である。このように、本実施形態では、フォトアルバム上に表示されているだけで選択された状態にない画像には、確定画像を使用する。情報処理装置1004は、確定画像を表示する場合、編集情報の確定画像に格納されたファイル名の画像データを読み込んで、その読み込んだ画像データに基づき画像を表示する。そのため確定画像を表示する場合の情報処理装置1004におけるメモリ使用量は、読み込んだ画像データに効果を適用する処理を施して表示用の画像データを生成し、生成した表示用の画像データに基づき画像を表示する場合よりも少ない。
An
画像一覧表示部3008には、フォトアルバム3002に配置することが可能な画像3009~3013が表示される。ボタン3014、3015は、画像一覧表示部3008に表示された画像を左右に移動させるためのボタンである。
効果設定表示部3016では、ユーザがフォトアルバム3002に配置された画像に対して適用する各種効果の設定を行うことができる。図3に示す例では、選択した画像に適用する不透明度設定部3017、セピア設定部3018、モノクロ設定部3019、コントラスト設定部3020、明るさ設定部3021の各パラメータを設定することができる。情報処理装置1004は、ユーザが効果設定表示部3016内のスライドバーを左右に動かす操作を検出することで、各効果のパラメータの変化を検出する。本実施形態では、各効果のパラメータは、スライドバーの動きに応じてリアルタイムに更新されることとする。
The effect
ボタン3022は、既に実行した編集操作を取り消して元に戻すためのUndoボタン、ボタン3023は、一度取り消した編集操作を再実行するためのRedoボタンである。
A
次に図8を用いて、フォトアルバムに画像を配置する際の処理について説明する。図8に示すフローチャートは、情報処理装置1004のCPU1011がROM1009に記憶されているフォトアルバム作成アプリケーションのプログラムコードをRAM1010に展開し実行することにより行われる。なお、以降のフローチャートでは、各処理の説明における記号「S」は、当該フローチャートにおけるステップであることを意味する。
Next, with reference to FIG. 8, processing for arranging images in a photo album will be described. The flowchart shown in FIG. 8 is performed by the
S8001において、情報処理装置1004は、表示した編集画面3000において、ユーザがフォトアルバム3002に画像を配置したことを検出する。すなわち、情報処理装置1004は、ユーザが画像一覧表示部3008に表示された画像群の中から所望の画像を編集中のフォトアルバム3002にドラッグアンドドロップしたことを検出する。
In S<b>8001 , the
S8002において、情報処理装置1004は、フォトアルバム3002上に配置された画像に関する配置画像情報を保存管理する。情報処理装置1004は、フォトアルバム3002に画像一覧表示部3008から画像が配置されると、図2に示すような編集情報を生成して保存管理する。情報処理装置1004は、フォトアルバム3002に新たに配置された画像に対してスロットIDを発行する。そして情報処理装置1004は、スロットIDに関連付けて、画像が配置されたページ番号、配置された画像の元画像、配置された画像のx座標、y座標、幅、高さに関する情報を編集情報に格納する。編集情報は、例えば図2に示すように、スロットID、ページ番号、元画像のファイル名、x、y、width、heightからなるものとする。また、画像一覧表示部3008からフォトアルバム3002に配置された直後の画像に関する編集情報では、各種効果(不透明度、セピア、モノクロ、コントラスト、明るさ)のパラメータとしてデフォルト値(本実施形態では100)が格納される。尚、ここでは、情報処理装置1004は、フォトアルバム3002に新たに配置された画像に対してスロットIDを発行する例を説明したが、画像IDを発行してもよい。
In S<b>8002 , the
S8003において、情報処理装置1004は、元画像に対して上記各種効果のパラメータに基づいて各効果を適用した画像の画像データを生成し、ファイル名を付けて記憶装置1008に保存する。
In step S<b>8003 , the
S8004において、情報処理装置1004は、S8003で記憶装置1008に保存した画像データのファイル名を、確定画像を示す値として編集情報に格納する。
In S8004, the
S8005において、情報処理装置1004は、編集情報に基づいて、フォトアルバム3002の指定されたページおよび位置に、確定画像の画像データのファイル名で特定される画像データに基づき確定画像を表示する。
In S8005, the
次に図4を用いて、画像を編集する際の処理について説明する。図4に示すフローチャートは、情報処理装置1004のCPU1011がROM1009に記憶されているフォトアルバム作成アプリケーションのプログラムコードをRAM1010に展開し実行することにより行われる。
Next, with reference to FIG. 4, processing for editing an image will be described. The flowchart shown in FIG. 4 is performed by the
S4001において、情報処理装置1004は、ユーザがフォトアルバム3002上の画像の中から所望の画像を選択したことを検出する。図3に示す例では、情報処理装置1004は、編集画面3000を表示し、ユーザがフォトアルバム3002に配置された画像3004、3005のいずれか1つをクリックしたことを検出する。
In S<b>4001 , the
S4002において、情報処理装置1004は、S4001で選択された画像の元画像の画像データを取得する。情報処理装置1004は、選択された画像のスロットIDと、保存管理している編集情報とに基づき、選択された画像の元画像の画像データを取得する。即ち、情報処理装置1004は、元画像の画像データをRAM1010に読み込む。
In S4002, the
S4003において、情報処理装置1004は、選択された画像に設定されている各効果のパラメータを取得する。情報処理装置1004は、選択された画像のスロットIDと、保存管理している編集情報とに基づき、選択された画像に適用する各効果のパラメータを取得する。
In S4003, the
S4004において、情報処理装置1004は、S4003で取得した各効果のパラメータを、編集画面3000の効果設定表示部3016に反映する。つまり、情報処理装置1004は、効果設定表示部3016内の各効果のパラメータ設定部3017~3021を、S4003で取得した各効果のパラメータを反映した表示に更新する。
In S<b>4004 , the
S4005において、情報処理装置1004は、S4001で選択された画像として、これまで表示されていた確定画像を非表示にする。情報処理装置1004は、編集画面3000上のフォトアルバム3002に配置された画像としては基本的に確定画像を表示している。そのため情報処理装置1004は、S4001でユーザにより画像が選択されると、選択された画像として表示されていた確定画像を非表示にする。このとき情報処理装置1004は、RAM1010上の確定画像の画像データを解放することができる。
In S4005, the
S4006において、情報処理装置1004は、S4003で取得した選択された画像に設定されている各効果のパラメータに基づき、後述する図5に示す描画処理を行うことにより編集画像を表示する。
In S4006, the
S4007において、情報処理装置1004は、編集画面3000において検出したユーザ操作が、編集操作であるか否かを判定する。情報処理装置1004は、ユーザが編集画面3000内の任意の位置をクリックしたことを検出することで、ユーザ操作を検出する。さらに情報処理装置1004は、ユーザがパラメータ設定部3017~3021のスライドバーを動かしてパラメータを変更した場合、ユーザ操作を編集操作と判定する。情報処理装置1004は、画像の編集操作を検出した場合はS4008へ進む。
In S4007, the
また情報処理装置1004は、ユーザが編集画面3000上で、S4001で選択された画像および効果設定表示部3016以外の領域をクリックし、選択されていた画像を非選択状態とした場合、検出したユーザ操作を編集終了操作と判定する。情報処理装置1004は、画像の編集終了操作を検出した場合はS4009へ進む。
Further, when the user clicks an area other than the image selected in step S4001 and the effect setting
S4008において、情報処理装置1004は、選択された画像について、後述する図5に示す描画処理を行うことにより編集画像を表示した後、S4007へ戻る。
In S4008, the
S4009において、情報処理装置1004は、S4007で受け付けたユーザ操作が編集終了操作であった場合、各効果のパラメータを取得する。なお、このS4009でのパラメータの取得は、パラメータ設定部3017~3021に対する編集操作によってパラメータが変更された場合にのみ行うようにしてもよい。
In S4009, the
S4010において、情報処理装置1004は、選択された画像のスロットIDと関連付けて編集情報に格納されている各種効果のパラメータを、S4009で取得したパラメータで更新する。図2に示す編集情報を用いる場合では、情報処理装置1004は、不透明度、セピア、モノクロ、コントラスト、明るさのパラメータを更新する。
In S4010, the
S4011において、情報処理装置1004は、選択された画像のスロットIDと編集情報とに基づき、元画像のファイル名から特定される画像データに対し、S4010で更新されたパラメータに基づき各効果を適用した画像データを生成する。また情報処理装置1004は、生成した画像データを、他の画像データと異なるファイル名を付けて記憶装置1008の所定のフォルダに保存する。なお、このS4011での画像データの生成と保存は、S4010で編集情報の更新が行われなかった場合には行わないようにしてもよい。
In S4011, the
S4012において、情報処理装置1004は、S4011で生成して記憶装置1008に保存した画像データのファイル名で、選択された画像のスロットIDに関連付けて編集情報に格納されている確定画像の画像データのファイル名を更新する。
In step S4012, the
S4013において、情報処理装置1004は、選択された画像としてS4006またはS4008の描画処理により表示されていた編集画像を非表示にし、RAM1010上に保持している元画像および編集画像の画像データを解放する。
In S4013, the
S4014において、情報処理装置1004は、選択された画像のスロットIDと編集情報とに基づき、編集情報に格納された確定画像の画像データのファイル名で特定される画像データに基づき画像を表示する。
In S4014, the
なお、S4005で確定画像を非表示にし、S4006で編集画像を表示しているが、これらの画像に対応する編集情報における各効果のパラメータは同じであるため、S4005で非表示にする確定画像とS4006で表示される編集画像とは同じ画像である。そのため、S4005およびS4006は省略することができる。 Note that although the finalized image is hidden in S4005 and the edited image is displayed in S4006, the parameters of each effect in the editing information corresponding to these images are the same. The edited image displayed in S4006 is the same image. Therefore, S4005 and S4006 can be omitted.
次に図5を用いて、編集画像を生成して表示する描画処理について説明する。図5に示すフローチャートは、情報処理装置1004のCPU1011がROM1009に記憶されているフォトアルバム作成アプリケーションのプログラムコードをRAM1010に展開し実行することにより行われる。
Next, drawing processing for generating and displaying an edited image will be described with reference to FIG. The flowchart shown in FIG. 5 is performed by the
S5001において、情報処理装置1004は、編集情報における各効果のパラメータ、またはユーザが設定した各効果のパラメータを取得する。S4006においては、情報処理装置1004は、編集情報に格納された各効果のパラメータを取得する。S4008においては、情報処理装置1004は、S4007で検出したユーザ操作がパラメータ設定部3017~3021への編集操作によって変更された各効果のパラメータを取得する。
In S5001, the
S5002において、情報処理装置1004は、S4002で取得してRAM1010に読み込んだ元画像の画像データに、S5001で取得した各効果のパラメータに基づき効果を適用した編集画像の画像データをRAM1010に生成する。このとき情報処理装置1004は、元画像の画像データも、引き続きRAM1010上にて保持する。
In step S<b>5002 , the
S5003において、情報処理装置1004は、S5002で生成した編集画像の画像データに基づき、S4001で選択された画像として編集画面3000上のフォトアルバム3002に編集画像を表示する。
In S5003, the
以上、説明したように、本実施形態では、ユーザが編集を行うために選択した画像については、RAM1010に読み込んだ元画像の画像データに対して編集情報を適用して、新たな画像データをRAM1010上に生成する。そして、生成した新たな画像データに基づき編集画像を表示する。編集情報に変更があれば、元画像と変更された編集情報とに基づき画像データをRAM1010上にリアルタイムに生成し、変更された編集情報が反映された編集画像をリアルタイムに表示する。そして編集が終了して選択が解除されると、RAM1010上の元画像の画像データを解放する。
As described above, in this embodiment, for an image selected by the user for editing, the editing information is applied to the image data of the original image read into the
一方、選択された画像以外の画像については、RAM1010に読み込んだ画像データに基づき確定画像を表示し、RAM1010上への元画像の画像データの読み込みおよび新たな画像データの生成を行わない。
On the other hand, for images other than the selected image, the final image is displayed based on the image data loaded into the
そのため、本実施形態では、編集結果をリアルタイムに表示しながら編集する際のメモリ使用量を低減することが可能となる。 Therefore, in this embodiment, it is possible to reduce the amount of memory used when editing while displaying the editing result in real time.
<実施形態2>
実施形態2では、過去の編集情報の一部を編集履歴情報として保存管理し、編集操作のうち元に戻すまたは復元(以下、Undo)の操作がユーザにより行われた時に、過去に生成された確定画像の画像データに基づきフォトアルバム上に画像を表示する。すなわち、情報処理装置1004がUndoを行う際、編集履歴情報に保存された過去の編集情報のうちの確定画像として格納されたファイル名により特定される画像データに基づき過去の確定画像を表示する。これにより、Undoを行う度に過去の編集情報に基づき元画像の画像データに各種効果のパラメータを適用して確定画像の画像データをRAM1010に再生成することなく、過去の確定画像を表示することが可能となる。これにより、メモリ使用量を削減でき、かつ、処理が高速化される。なお、以下では実施形態2のうち実施形態1との差分のみ説明し、実施形態1と重複する部分については説明を割愛する。
<
In the second embodiment, a part of past editing information is saved and managed as editing history information, and when the user performs an operation of undoing or restoring (hereinafter referred to as Undo) among editing operations, An image is displayed on the photo album based on the image data of the finalized image. That is, when the
まず図6を用いて、フォトアルバムにおける画像の編集に関する編集履歴情報を保存管理する方法について説明する。図6には、情報処理装置1004において保存管理する編集履歴情報の一例として、4回分の編集情報を含む履歴情報を示す。
First, with reference to FIG. 6, a method for saving and managing edit history information relating to editing of images in a photo album will be described. FIG. 6 shows, as an example of editing history information stored and managed in the
「編集履歴」に対しては、過去の編集情報を識別する値であり、その値で識別される編集情報を反映させるために必要なUndoの回数を表す値が格納される。つまり、編集履歴が「1」である編集情報は、現在の画像から1回Undoした際に反映される編集情報である。 "Editing history" stores a value that identifies past editing information and represents the number of times of Undo required to reflect the editing information identified by that value. In other words, edit information whose edit history is "1" is edit information that is reflected when Undo is performed once from the current image.
「スロットID」に対しては、編集履歴に対応する編集情報が反映されるフォトアルバム上のスロットを識別するための識別情報が格納される。 Identification information for identifying the slot on the photo album in which the editing information corresponding to the editing history is reflected is stored in the "slot ID".
「元画像」に対しては、効果が適用される前の画像の画像データについてのファイル名、つまり、その画像データのファイルパスを特定可能にする情報が格納される。なお、本実施形態では、ファイル名でデータを特定可能とする場合、データが予め定められた所定のフォルダに保存され、所定のフォルダパスとファイル名からファイルパスを特定できるものとする。また、ファイル名を格納する項目に対しては、ファイルパスを格納するようにしてもよい。 The "original image" stores the file name of the image data of the image before the effect is applied, that is, the information that allows the file path of the image data to be specified. In this embodiment, when data can be identified by a file name, the data is stored in a predetermined folder, and the file path can be identified from the predetermined folder path and file name. Also, a file path may be stored for an item storing a file name.
「x」、「y」、「width」、「height」に対しては、画像をページに配置するスロットの位置情報を表すx座標、y座標、幅、高さを示す値が格納される。本実施形態においては、座標の原点位置(0、0)は見開きページの左上端とする。 "x", "y", "width", and "height" store values indicating the x-coordinate, y-coordinate, width, and height of the slot in which the image is placed on the page. In this embodiment, the origin position (0, 0) of the coordinates is the upper left corner of the two-page spread.
「不透明度」、「セピア」、「モノクロ」、「コントラスト」、「明るさ」に対しては、元画像に適用する各々の効果のパラメータが格納される。 For "opacity", "sepia", "monochrome", "contrast", and "brightness", parameters for each effect applied to the original image are stored.
「確定画像」に対しては、元画像に効果が適用された画像の画像データのファイル名、つまり、その画像データのファイルパスを特定可能にする情報が格納される。Undoを実行した際には、この確定画像に格納されたファイル名で特定される画像データに基づき画像を表示する。なお、本実施形態において用いる画像の画像データは、拡張子“*.jpg”が示すようにJPEG形式であり、デジタルスチルカメラ等で撮影して保存された写真等で一般的な画像ファイル形式である。但し、本実施形態において画像データは、これに限定されず、任意の画像ファイル形式であってよい。 For the "final image", the file name of the image data of the image to which the effect is applied to the original image, that is, the information that enables the specification of the file path of the image data is stored. When Undo is executed, an image is displayed based on the image data specified by the file name stored in this confirmed image. Note that the image data of the image used in this embodiment is in JPEG format as indicated by the extension "*.jpg", and is a general image file format for photographs taken and saved with a digital still camera or the like. be. However, the image data in this embodiment is not limited to this, and may be in any image file format.
次に図7を用いて、Undoを実行し画像の表示を更新する処理について説明する。図7に示すフローチャートは、情報処理装置1004のCPU1011がROM1009に記憶されているフォトアルバム作成アプリケーションのプログラムコードをRAM1010に展開し実行することにより行われる。
Next, the process of executing Undo and updating the image display will be described with reference to FIG. The flowchart shown in FIG. 7 is performed by the
S7001において、情報処理装置1004は、表示した編集画面3000において、ユーザがUndoボタン3022をクリックしたことを検出し、復元指示を受け付ける。
In S7001, the
S7002において、情報処理装置1004は、保存管理する編集履歴情報から、検出されたUndoボタン3022のクリック回数に応じた編集情報を取得する。情報処理装置1004は、図6に示すような過去の複数の編集情報を含む編集履歴情報を保存管理している。この編集履歴情報に保存された順番が大きい方から、Undoボタン3022のクリック回数に相当する値の編集履歴に関連付けられた編集情報を取得する。
In S7002, the
S7003において、情報処理装置1004は、S7002で取得した編集情報に含まれるスロットIDで識別される画像に関する編集情報を更新する。この時、明るさやコントラストなどの各種効果のパラメータに加え、確定画像の画像データのファイル名も更新する。過去に生成された確定画像の画像データは所定のフォルダに保存済みであるため、S7003では、編集情報の確定画像に関して、画像データのファイル名の更新は行うが、確定画像の画像データの再生成は行わない。
In S7003, the
S7004において、情報処理装置1004は、S7003で更新された編集情報に基づき特定される確定画像の画像データに基づき、編集画面3000のフォトアルバム3002上に画像を表示する。
In S7004, the
以上、説明したように、編集内容が反映された生成済みの画像を保存管理し編集操作のうちUndoの操作時に流用可能な場合に使用することで、メモリ使用量を削減できかつ処理の高速化が可能となる。なお、本実施形態では、Undoの操作を例として挙げたたが、これに限らず、やり直し(以下、Redo)の操作時に生成済みの画像を流用可能な場合に使用してもよい。また、本実施形態ではUndoの可能な回数として4回を例として挙げたが、これに限らず、回数に制限を設けなくてもよく、また、回数を動的に変更してもよい。 As described above, by saving and managing the generated image in which the edited content is reflected and using it when it is possible to use it during the Undo operation in the editing operation, it is possible to reduce the amount of memory used and increase the processing speed. becomes possible. In this embodiment, the Undo operation is taken as an example, but the present invention is not limited to this, and may be used when a generated image can be diverted at the time of a redo operation (hereinafter referred to as Redo). In addition, in the present embodiment, the possible number of times of undo is four times, but the number is not limited to this, and the number of times may be changed dynamically.
本発明は、以下の処理を実行することによっても実現される。即ち、上述した実施形態の機能を実現するソフトウェア(プログラム)を、ネットワークまたは各種記憶媒体を介してシステム或いは装置に供給し、コンピュータ(またはCPUやMPU等)がプログラムを読み出して実行する処理である。 The present invention is also realized by executing the following processing. That is, the software (program) that implements the functions of the above-described embodiments is supplied to a system or apparatus via a network or various storage media, and the computer (or CPU, MPU, etc.) reads and executes the program. .
また、上述した実施形態では、アプリケーションの例としてフォトアルバム作成アプリケーションを挙げたが、この例に限られることなく、同様な画像レイアウト機能を備える任意のアプリケーションで同様の効果が実現可能である。 Also, in the above-described embodiment, a photo album creation application was given as an example of an application, but the application is not limited to this example, and similar effects can be achieved with any application having a similar image layout function.
また、上述した実施形態では、情報処理装置としてパーソナルコンピュータを想定しが、この例に限らない。例えば携帯電話、携帯情報端末、デジタルスチルカメラ、デジタルビデオカメラ、携帯ミュージックプレーヤー、ゲーム、セットトップボックス、インターネット家電等、同様な使用方法が可能な任意の情報処理装置でもよい。 Also, in the above-described embodiment, a personal computer is assumed as the information processing apparatus, but the information processing apparatus is not limited to this example. For example, any information processing device that can be used in a similar manner, such as a mobile phone, a personal digital assistant, a digital still camera, a digital video camera, a portable music player, a game, a set-top box, an Internet appliance, etc., may be used.
また、上述した実施形態では、ネットワークの構成例としてEthernetを用いたが、この例に限られることなく、例えば、無線LAN、IEEE1394、Bluetooth等、他の任意のネットワーク構成であってもよい。 In addition, in the above-described embodiments, Ethernet is used as an example of network configuration, but it is not limited to this example, and any other network configuration such as wireless LAN, IEEE1394, Bluetooth, etc. may be used.
また、上述した実施形態において、確定画像は元画像と同一サイズに限られることなく、異なるサイズや画質とした画像でもよい。 Further, in the above-described embodiment, the final image is not limited to the same size as the original image, and may be an image with a different size and quality.
また、上述した実施形態において、編集する画像を選択する方法としてクリック操作を一例に挙げたが、これに限定されない。また、上述した実施形態では編集する画像を1つ選択する例を挙げたが、これに限定されず、ドラッグによる範囲選択により複数画像を選択させてもよい。 Further, in the above-described embodiment, a click operation was given as an example of a method for selecting an image to be edited, but the method is not limited to this. Also, in the above-described embodiment, an example of selecting one image to be edited was given, but the present invention is not limited to this, and a plurality of images may be selected by range selection by dragging.
以上、本発明の好ましい実施形態について詳述したが、本発明は係る特定の実施形態に限定されるものではなく、特許請求の範囲に記載された本発明の要旨の範囲内において、種々の変形・変更が可能である。 Although the preferred embodiments of the present invention have been described in detail above, the present invention is not limited to such specific embodiments, and various modifications can be made within the scope of the gist of the invention described in the claims.・Changes are possible.
(その他の実施例)
本発明は、上述の実施形態の1以上の機能を実現するプログラムを、ネットワーク又は記憶媒体を介してシステム又は装置に供給し、そのシステム又は装置のコンピュータにおける1つ以上のプロセッサーがプログラムを読出し実行する処理でも実現可能である。また、1以上の機能を実現する回路(例えば、ASIC)によっても実現可能である。
(Other examples)
The present invention supplies a program that implements one or more functions of the above-described embodiments to a system or device via a network or a storage medium, and one or more processors in the computer of the system or device reads and executes the program. It can also be realized by processing to It can also be implemented by a circuit (for example, ASIC) that implements one or more functions.
情報処理装置 1004
Claims (9)
複数の確定画像が配置されているアルバムデータを編集するための方法であって、
前記複数の確定画像のうち編集対象として選択された確定画像を検出する検出ステップと、
記憶装置に保存された、前記検出ステップで検出された前記選択された確定画像に対応する元画像を、前記メモリに読み出す読み出しステップと、
前記確定画像に関する設定値を含む編集情報の変更を受け付けるステップと、
前記読み出しステップで前記メモリに読み出した前記元画像に対して、前記変更を受け付けるステップで受け付けた前記変更を反映した前記編集情報を適用して編集画像を前記メモリに生成する生成ステップと、
前記生成ステップで前記編集画像を生成すると、前記選択された確定画像に代えて前記メモリから前記編集画像を読み出して配置する配置ステップと、
を含む方法の各ステップを実行させることを特徴とするプログラム。 a computer having memory,
A method for editing album data in which a plurality of confirmed images are arranged, comprising:
a detection step of detecting a confirmed image selected as an edit target from among the plurality of confirmed images;
a reading step of reading an original image corresponding to the selected definite image detected in the detecting step, stored in a storage device, into the memory;
a step of accepting changes in editing information including setting values relating to the finalized image;
a generation step of generating an edited image in the memory by applying the editing information reflecting the change received in the change receiving step to the original image read out to the memory in the reading step;
an arrangement step of reading out and arranging the edited image from the memory instead of the selected final image when the edited image is produced in the producing step;
A program characterized by causing the steps of a method comprising:
ことを特徴とする請求項1に記載のプログラム。 when the selected definite image is no longer detected in the detection step, the original image read out to the memory is released from the memory;
2. The program according to claim 1, characterized by:
前記検出ステップで前記選択された確定画像を検出しなくなると、前記メモリに読み出した前記編集情報に、前記生成ステップで生成した前記編集画像を前記確定画像として関連付けるように更新する更新ステップ、
をさらに含むことを特徴とする請求項1又は2に記載のプログラム。 The method includes:
an updating step of updating the editing information read into the memory so that the edited image generated in the generating step is associated as the final image when the selected final image is no longer detected in the detecting step;
3. The program according to claim 1 or 2, further comprising:
前記方法は、
前記更新ステップが前記編集情報を更新すると、更新する前の編集情報を前記記憶装置に保存する保存ステップと、
前記変更を取り消す復元指示を受け付けるステップと、
前記復元指示を受け付けるステップで前記復元指示を受け付けると、前記復元指示で特定される前記更新する前の編集情報に対応する前記確定画像を、前記更新する前の編集情報に含まれる位置情報に基づき配置する復元ステップと、
をさらに含むことを特徴とする請求項3に記載のプログラム。 the editing information includes position information for arranging the corresponding confirmed image;
The method includes
a saving step of saving the editing information before updating in the storage device when the updating step updates the editing information;
receiving a restore instruction to undo the change;
When the restoring instruction is received in the step of receiving the restoring instruction, the confirmed image corresponding to the pre-updated editing information specified by the restoring instruction is displayed based on the position information included in the pre-updated editing information. a restore step to place;
4. The program of claim 3, further comprising:
ことを特徴とする請求項4に記載のプログラム。 In the restoring step, among the pre-updated edited information saved in the storage device, the pre-updated edited information corresponding to the number of the changes to be canceled is restored in descending order of the saved order in the storage device. identified,
5. The program according to claim 4, characterized by:
ことを特徴とする請求項1乃至5のいずれか1項に記載のプログラム。 The editing information includes parameters for effects that change pixel values of an image.
6. The program according to any one of claims 1 to 5, characterized by:
ことを特徴とする請求項6に記載のプログラム。 the parameters of the effect include parameters for opacity, sepia, monochrome, contrast, and brightness;
7. The program according to claim 6, characterized by:
前記複数の確定画像のうち編集対象として選択された確定画像を検出する検出ステップと、
記憶装置に保存された、前記検出ステップで検出された前記選択された確定画像に対応する元画像を、前記メモリに読み出す読み出しステップと、
前記確定画像に関する設定値を含む編集情報の変更を受け付けるステップと、
前記読み出しステップで前記メモリに読み出した前記元画像に対して、前記変更を受け付けるステップで受け付けた前記変更を反映した前記編集情報を適用して編集画像を前記メモリに生成する生成ステップと、
前記生成ステップで前記編集画像を生成すると、前記選択された確定画像に代えて前記メモリから前記編集画像を読み出して配置する配置ステップと、
を含むことを特徴とする情報処理方法。 An information processing method for editing album data in which a plurality of confirmed images are arranged in a computer having a memory, comprising:
a detection step of detecting a confirmed image selected as an edit target from among the plurality of confirmed images;
a reading step of reading an original image corresponding to the selected definite image detected in the detecting step, stored in a storage device, into the memory;
a step of accepting changes in editing information including setting values relating to the finalized image;
a generation step of generating an edited image in the memory by applying the editing information reflecting the change received in the change receiving step to the original image read out to the memory in the reading step;
an arrangement step of reading out and arranging the edited image from the memory instead of the selected final image when the edited image is produced in the producing step;
An information processing method comprising:
前記複数の確定画像のうち編集対象として選択された確定画像を検出する検出手段と、
記憶装置に保存された、前記検出手段で検出された前記選択された確定画像に対応する元画像を、前記メモリに読み出す読み出し手段と、
前記確定画像に関する設定値を含む編集情報の変更を受け付ける手段と、
前記読み出し手段で前記メモリに読み出した前記元画像に対して、前記変更を受け付ける手段で受け付けた前記変更を反映した前記編集情報を適用して編集画像を前記メモリに生成する生成手段と、
前記生成手段で前記編集画像を生成すると、前記選択された確定画像に代えて前記メモリから前記編集画像を読み出して配置する配置手段と、
を備えることを特徴とする情報処理装置。 An information processing device having a memory for editing album data in which a plurality of confirmed images are arranged,
detection means for detecting a confirmed image selected as an edit target from among the plurality of confirmed images;
reading means for reading into the memory an original image corresponding to the selected definite image detected by the detecting means, stored in a storage device;
means for receiving changes in editing information including setting values related to the confirmed image;
generating means for generating an edited image in the memory by applying the editing information reflecting the change received by the change receiving means to the original image read into the memory by the reading means;
arrangement means for reading out and arranging the edited image from the memory in place of the selected confirmed image when the edited image is produced by the producing means;
An information processing device comprising:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2021069641A JP2022164258A (en) | 2021-04-16 | 2021-04-16 | Information processing apparatus, information processing method, and program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2021069641A JP2022164258A (en) | 2021-04-16 | 2021-04-16 | Information processing apparatus, information processing method, and program |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2022164258A true JP2022164258A (en) | 2022-10-27 |
Family
ID=83742981
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2021069641A Pending JP2022164258A (en) | 2021-04-16 | 2021-04-16 | Information processing apparatus, information processing method, and program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2022164258A (en) |
-
2021
- 2021-04-16 JP JP2021069641A patent/JP2022164258A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10742833B2 (en) | Scan privacy tool for printing operations | |
US9053076B2 (en) | Autoflow in photobook development | |
JP4136634B2 (en) | Document processing apparatus and method | |
JP4059488B2 (en) | Document processing method and apparatus | |
JP5371560B2 (en) | Layout editing apparatus, layout editing method and program | |
JP2010033551A (en) | Design editing apparatus, design editing method, and design editing program | |
US10402057B2 (en) | Display control apparatus and method for calculating gloss parameter during page turn of print preview | |
JP2004252665A (en) | Document processing method | |
JP2003091520A (en) | Document processing device and method | |
JP2003091407A (en) | Information processing system, its display method, its program and recording medium | |
JP2006107142A (en) | Document processor, and method | |
US11726733B2 (en) | Information processing apparatus and method of controlling the same | |
US20190245984A1 (en) | Scan privacy tool and methods | |
JP2022164258A (en) | Information processing apparatus, information processing method, and program | |
JP3937965B2 (en) | Document processing method and apparatus and program thereof | |
WO2012003100A1 (en) | Method for image rendering in computer network | |
US11500599B2 (en) | Information processing apparatus and method for controlling the same | |
JP2010113596A (en) | Document processing system | |
JP6803795B2 (en) | Printer driver and information processing equipment | |
JP2003067373A (en) | Program, and document processor and method for processing document | |
JP2006202025A (en) | Document processing method, print control method, and its system | |
US11190661B2 (en) | Scan privacy tool using a mobile device for printing operations | |
JP3991028B2 (en) | Document processing method and information processing apparatus | |
JP2010140169A (en) | Information processing apparatus, method for controlling the same, program, and storage medium | |
JP2007183974A (en) | Information processing apparatus and information processing method |