TWI482119B - Control method for image processing and apparatus therefor - Google Patents
Control method for image processing and apparatus therefor Download PDFInfo
- Publication number
- TWI482119B TWI482119B TW101100241A TW101100241A TWI482119B TW I482119 B TWI482119 B TW I482119B TW 101100241 A TW101100241 A TW 101100241A TW 101100241 A TW101100241 A TW 101100241A TW I482119 B TWI482119 B TW I482119B
- Authority
- TW
- Taiwan
- Prior art keywords
- image
- file
- auxiliary
- main
- image file
- Prior art date
Links
Landscapes
- Studio Devices (AREA)
Description
本發明是有關於一種影像處理方法及其裝置,且特別是有關於一種影像資料的控制處理方法及其裝置。The present invention relates to an image processing method and apparatus thereof, and more particularly to a method and apparatus for controlling image data.
隨著科技的日新月異,許多消費性電子產品已從傳統的二維(2 Dimension,2D)顯像漸漸演進為三維(3 Dimension,3D)顯像以滿足消費者更高的視覺感官要求。目前市面上已陸續有具有3D顯像能力的電子產品出現,例如3D電視及3D行動電話等產品,可預見具3D顯像能力之電子產品將是未來的趨勢之一。具有3D顯像能力的電子產品也同樣的必須搭配3D的影像內容。3D的影像內容則可以利用例如具有3D攝像能力之電子裝置所提供,例如3D數位相機等。With the rapid development of technology, many consumer electronic products have evolved from traditional two-dimensional (2 Dimension, 2D) imaging to three-dimensional (3 Dimension, 3D) imaging to meet consumers' higher visual sense requirements. Electronic products with 3D imaging capabilities have emerged on the market, such as 3D TVs and 3D mobile phones. It is expected that electronic products with 3D imaging capabilities will be one of the future trends. Electronic products with 3D imaging capabilities must also be matched with 3D video content. The 3D video content can be provided by, for example, an electronic device having a 3D imaging capability, such as a 3D digital camera.
製作3D影像可利用兩張不同視角的影像以特定的格式,例如多圖像物件檔案格式(Multi-Picture Object,MPO),合併為單一檔案。在運用3D數位相機產生3D影像的情況,則可以使用兩個攝像鏡頭分別拍攝兩張不同視角的影像,再將拍攝得到的影像進行壓縮後合併為一單一檔案。由於必須要對兩張視角不同的影像進行壓縮程序,若是將上述兩張影像依序的進行影像處理及壓縮則可能會有效能低落的疑慮。較為省時的作法為分別利用兩組處理單元平行的對上述兩張影像進行影像處理及壓縮。但利用兩組處理單元同時進行影像處理及壓縮則必須考慮兩處理單元間的同步以及最後合併的時機等問題。因此,如何有效率的製作3D影像檔案,確實為當前所屬領域的重要課題。Making 3D images can be combined into a single file using two different perspective images in a specific format, such as Multi-Picture Object (MPO). In the case of using a 3D digital camera to generate 3D images, two camera lenses can be used to capture two images of different viewing angles, and the captured images are compressed and combined into a single file. Since it is necessary to perform compression processing on two images having different viewing angles, if the two images are sequentially processed and compressed, there may be a problem of low performance. A more time-saving method is to perform image processing and compression on the two images in parallel using two sets of processing units. However, the use of two sets of processing units for image processing and compression at the same time must consider the synchronization between the two processing units and the timing of the final merge. Therefore, how to efficiently produce 3D image files is indeed an important issue in the current field.
本發明提供一種影像處理控制方法及其裝置,平行處理並壓縮兩張視角不同的影像藉由處理單元間的資料傳輸合併成為一單一檔案。The invention provides an image processing control method and a device thereof, which process and compress two images with different viewing angles in parallel and combine them into a single file by data transmission between processing units.
本發明提供一種影像處理控制方法,適用於第一影像處理單元及第二影像處理單元包括以下步驟。首先,第一影像處理單元及第二影像處理單元平行處理主要影像及附屬影像以分別壓縮產生主要影像檔案及附屬影像檔案,其中第一影像處理單元在產生主要影像檔案時,同時寫入該主要影像檔案至一外部儲存單元。然後,當第二影像處理單元壓縮產生附屬影像檔案後,傳送完成通知至第一影像處理單元。接著,第一影像處理單元接收完成通知後,從讀取附屬影像檔案,寫入附屬影像檔案至外部儲存單元,並以一檔案格式附加附屬影像檔案於主要影像檔案以得到多物件影像檔案。最後,第一影像處理單元更新多物件影像檔案的標頭。The present invention provides an image processing control method, which is applicable to the first image processing unit and the second image processing unit, and includes the following steps. First, the first image processing unit and the second image processing unit process the main image and the auxiliary image in parallel to respectively generate a main image file and an auxiliary image file, wherein the first image processing unit simultaneously writes the main image file when the main image file is generated. Image file to an external storage unit. Then, after the second image processing unit compresses and generates the auxiliary image file, the transfer completion notification is sent to the first image processing unit. Then, after receiving the completion notification, the first image processing unit reads the auxiliary image file, writes the auxiliary image file to the external storage unit, and attaches the auxiliary image file to the main image file in a file format to obtain the multi-object image file. Finally, the first image processing unit updates the header of the multi-object image file.
本發明亦提供一種影像處理裝置,包括第一影像處理單元及第二影像處理單元。第一影像處理單元利用主要影像壓縮產生主要影像檔案,其中第一影像處理單元於在產生主要影像檔案時,同時寫入主要影像檔案至外部儲存單元。第二影像處理單元耦接第一影像處理單元,在第一影像單元壓縮產生該主要影像檔案時,平行處理附屬影像以壓縮產生附屬影像檔案,並在壓縮產生附屬影像檔案後,傳送完成通知至第一影像單元。第一影像處理單元接收完成通知後,從第二影像處理單元讀取附屬影像檔案,寫入附屬影像檔案至外部儲存單元以附加於主要影像檔案以得到多物件影像檔案並更新多物件影像檔案的檔頭。The present invention also provides an image processing apparatus including a first image processing unit and a second image processing unit. The first image processing unit generates a main image file by using the main image compression, wherein the first image processing unit simultaneously writes the main image file to the external storage unit when the main image file is generated. The second image processing unit is coupled to the first image processing unit. When the first image unit compresses and generates the main image file, the auxiliary image is processed in parallel to compress and generate the auxiliary image file, and after the compressed image file is generated, the notification is transmitted to the second image processing unit. The first image unit. After receiving the completion notification, the first image processing unit reads the auxiliary image file from the second image processing unit, writes the auxiliary image file to the external storage unit to be attached to the main image file to obtain the multi-object image file, and updates the multi-object image file. Head.
基於上述,本發明提供一種影像處理控制方法及其裝置,使得第一及第二影像處理單元分別處理壓縮主要影像檔案及附屬影像檔案。第一影像處理單元並在壓縮產生主要影像檔案時同時寫入該主要影像檔案至外部儲存單元,再接著附加附屬影像檔案得到多影像物件檔案並更新標頭內容,利用流程控制的方式能以更簡化及節省時間的流程得到多影像物件檔案。Based on the above, the present invention provides an image processing control method and apparatus thereof, such that the first and second image processing units respectively process the compressed main image file and the auxiliary image file. The first image processing unit simultaneously writes the main image file to the external storage unit when compressing and generating the main image file, and then attaches the auxiliary image file to obtain the multi-image object file and updates the header content, and the flow control method can be used to The simplified and time-saving process results in a multi-image object file.
為讓本發明之上述特徵和優點能更明顯易懂,下文特舉實施例,並配合所附圖式作詳細說明如下。The above described features and advantages of the present invention will be more apparent from the following description.
圖1所示為根據本發明一實施例所繪示之影像處理控制方法的步驟流程圖,此方法適用於一第一影像處理單元及一第二影像處理單元。請參照圖1,首先,在步驟S101時,第一影像處理單元及第二影像處理單元平行處理一主要影像及一附屬影像,以分別壓縮產生主要影像檔案及附屬影像檔案。其中,第一影像處理單元於產生主要影像檔案時,同時寫入主要影像檔案至一外部儲存單元。值得一提的是,主要影像及附屬影像以聯合圖像專家小組(Joint Photographic Experts Group,JPEG)之檔案格式或其他普遍使用之影像檔案格式壓縮成主要影像檔案及附屬影像檔案,但本發明並不限定於上述格式。FIG. 1 is a flow chart showing the steps of an image processing control method according to an embodiment of the invention. The method is applicable to a first image processing unit and a second image processing unit. Referring to FIG. 1, first, in step S101, the first image processing unit and the second image processing unit process a main image and an auxiliary image in parallel to respectively compress and generate the main image file and the auxiliary image file. The first image processing unit simultaneously writes the main image file to an external storage unit when generating the main image file. It is worth mentioning that the main image and the attached image are compressed into the main image file and the attached image file in the file format of the Joint Photographic Experts Group (JPEG) or other commonly used image file format, but the present invention Not limited to the above format.
接著,在步驟S102時,第二影像處理單元壓縮在產生附屬影像檔案之後,傳送完成通知至第一影像處理單元。然後,在步驟S103中,第一影像處理單元接收完成通知後,從第二影像處理單元讀取附屬影像檔案,並寫入附屬影像檔案至外部儲存單元,以一檔案格式附加附屬影像檔案於主要影像檔案以得到一多物件影像檔案。其中檔案格式可為多圖像物件檔案(MPO)格式,但並不限定使用此格式。最後,在步驟S104時,第一影像處理單元更新多物件影像檔案的標頭,以完成此多物件影像檔案的建立。Next, in step S102, the second image processing unit compresses the transmission completion notification to the first image processing unit after generating the auxiliary image file. Then, in step S103, after receiving the completion notification, the first image processing unit reads the auxiliary image file from the second image processing unit, and writes the auxiliary image file to the external storage unit, and attaches the auxiliary image file to the main file file format. Image file to get a multi-object image file. The file format can be a multi-image object file (MPO) format, but the format is not limited. Finally, in step S104, the first image processing unit updates the header of the multi-object image file to complete the creation of the multi-object image file.
圖2所示為根據本發明一實施例所繪示之影像處理控制方法的部分步驟流程圖,表示在一實施例中影像處理控制方法在進行圖1所示流程前之動作,同時可視為利用JPEG格式或其他普遍影像格式對主要影像及附屬影像進行壓縮所需之前置動作。請參照圖2,首先在步驟S201時,利用第一影像擷取單元及第二影像擷取單元分別擷取主要影像及附屬影像,其中第一影像擷取單元及第二影像擷取單元分別耦接第一影像處理單元及第二影像處理單元。接著在步驟S202時,第一影像處理單元及第二影像處理單元分別從第一影像擷取單元及第二影像擷取單元接收主要影像及附屬影像。FIG. 2 is a partial flowchart of a method for controlling image processing according to an embodiment of the present invention, showing an action of the image processing control method before performing the process shown in FIG. 1 in an embodiment, and can be regarded as utilizing The pre-set action required to compress the main image and the attached image in JPEG format or other common image formats. Referring to FIG. 2, first, in step S201, the first image capturing unit and the second image capturing unit respectively capture the main image and the auxiliary image, wherein the first image capturing unit and the second image capturing unit are respectively coupled The first image processing unit and the second image processing unit are connected. Then, in step S202, the first image processing unit and the second image processing unit respectively receive the main image and the auxiliary image from the first image capturing unit and the second image capturing unit.
在步驟S203時,第一影像處理單元及第二影像處理單元分別對主要影像及附屬影像進行預處理程序。其中此預處理程序包括,向第一影像擷取單元及第二影像擷取單元取得影像擷取之相關參數、設定影像處理參數、執行影像校正等影像處理等動作,但本發明不限定於上述。接著於步驟S204時,第一影像處理單元及第二影像處理單元根據主要影像及附屬影像分別製作主要影像及附屬影像的標頭(Header),其中標頭用以記錄影像之屬性信息及拍攝數據等內容,利用可交換圖像文件格式(Exchangeable image format,EXIF)或其他泛用格式附加於影像檔案之中。In step S203, the first image processing unit and the second image processing unit respectively perform preprocessing procedures on the main image and the auxiliary image. The pre-processing program includes the following steps: obtaining information related to image capture, setting image processing parameters, and performing image processing such as image correction to the first image capturing unit and the second image capturing unit, but the present invention is not limited to the above. . Then, in step S204, the first image processing unit and the second image processing unit respectively create a header of the main image and the auxiliary image according to the main image and the auxiliary image, wherein the header is used to record the attribute information and the shooting data of the image. The content is attached to the image file using the Exchangeable Image Format (EXIF) or other general-purpose format.
在步驟S205時,第一影像處理單元及第二影像處理單元則分別利用主要影像及附屬影像產生主要縮略圖(Thumbnail)以及附屬縮略圖。主要縮略圖及附屬縮略圖為縮小尺寸版本的主要影像及附屬影像,用於在檔案管理時辨識影像內容,可利用對主要影像及附屬影像進行下取樣(down sampling)再進行壓縮處理等方式得到。另外,縮略圖的大小一實施方式之不同而有不同的設置在本實施例中,主要縮略圖及附屬縮略圖的大小為160*160像素(pixel),並以JPEG格式進行壓縮處理。In step S205, the first image processing unit and the second image processing unit respectively generate a main thumbnail (Thumbnail) and an affiliate thumbnail using the main image and the auxiliary image. The main thumbnail image and the attached thumbnail image are the main image and the attached image of the reduced-size version, which are used to identify the image content during file management, and can be obtained by down sampling and then compressing the main image and the auxiliary image. . In addition, the size of the thumbnail is different from that of the embodiment. In the present embodiment, the size of the main thumbnail and the attached thumbnail is 160*160 pixels, and the compression processing is performed in the JPEG format.
在步驟S206時,第一影像處理單元及第二影像處理單元利用主要影像及附屬影像分別產生主要縮圖以及附屬縮圖,其中在此步驟所產生之主要縮圖及附屬縮圖尺寸大於主要縮略圖及附屬縮略圖,主要的用途在於易於顯示於例如數位相機、個人電腦等電子裝置的顯示單元中顯示。主要縮圖及附屬縮圖亦可利用主要影像及附屬影像進行下取樣再進行壓縮處理等方式得到。在本實施例中,主要縮圖及附屬縮圖為符合視訊圖形陣列(Video Graphics Array,VGA)標準,也就是640*480像素大小之影像,並相同於上述主要縮略圖及附屬縮略圖,並以JPEG格式壓縮處理,然而本發明並不限定於上述。In step S206, the first image processing unit and the second image processing unit respectively generate a main thumbnail image and an auxiliary thumbnail image by using the main image and the auxiliary image, wherein the main thumbnail image and the auxiliary thumbnail image generated in this step are larger than the main thumbnail image. The thumbnail and the attached thumbnails are mainly used for display in a display unit of an electronic device such as a digital camera or a personal computer. The main thumbnail image and the attached thumbnail image can also be obtained by downsampling the main image and the auxiliary image and then performing compression processing. In this embodiment, the main thumbnail image and the attached thumbnail image are in accordance with the Video Graphics Array (VGA) standard, that is, the image of 640*480 pixels, which is the same as the above-mentioned main thumbnail image and the auxiliary thumbnail image, and The compression processing is performed in the JPEG format, but the present invention is not limited to the above.
圖3所示為根據本發明一實施例之第一影像處理單元於產生主要影像檔案時,同時寫入主要影像檔案至外部儲存單元的步驟流程圖,對應於圖1步驟S101中第一影像處理單元的作動之一種實施方式。請參照圖3,首先在步驟S1011時,第一影像處理單元將主要影像檔案的標頭及已壓縮產生之主要影像檔案的內容以先進先出方式暫存於第一記憶單元中,其中第一記憶單元耦接第一影像處理單元。換句話說,第一影像處理單元在一邊壓縮產生主要影像檔案一邊將已完成之部分暫存第一記憶單元中。FIG. 3 is a flow chart showing the steps of simultaneously writing a main image file to an external storage unit when the first image processing unit generates a main image file according to an embodiment of the present invention, corresponding to the first image processing in step S101 of FIG. An embodiment of the operation of the unit. Referring to FIG. 3, first, in step S1011, the first image processing unit temporarily stores the header of the main image file and the content of the compressed main image file in the first memory unit in a first-in-first-out manner, where the first The memory unit is coupled to the first image processing unit. In other words, the first image processing unit temporarily stores the completed portion in the first memory unit while compressing and generating the main image file.
在步驟S1012時,第一影像處理單元以預設分割的大小批次讀取暫存於第一記憶單元中,已壓縮產生的主要影像檔案以寫入外部儲存單元。其中,外部儲存單元具有較大第一記憶單元的儲存空間,可為可攜式儲存單元例如普遍使用格式之記憶卡,外接式記憶體等,本發明不限定於上述。In step S1012, the first image processing unit reads the temporary image in the first memory unit in a preset divided size batch, and compresses the generated main image file to write to the external storage unit. The external storage unit has a storage space of a larger first memory unit, and may be a portable storage unit, such as a memory card of a commonly used format, an external memory, etc., and the present invention is not limited to the above.
預設分割之大小視實際實施時,例如第一記憶單元之大小、壓縮處理速度,外部儲存單元寫入速度等之情況進行設定。在一實施例中,預設之分割大小為128千位元組(K byte),當第一記憶單元存滿一預設分割,也就是128K的主要影像檔案內容時,就將這一預設分割大小之主要影像檔案寫入外部儲存單元。最後在步驟S1013時,主要影像檔案已全部寫入外部儲存單元後,將主要影像檔案的標頭寫入外部儲存單元中主要影像檔案的標頭中。The size of the preset division is set depending on the actual implementation, such as the size of the first memory unit, the compression processing speed, the external storage unit write speed, and the like. In an embodiment, the preset partition size is 128 kilobytes (K byte), and the preset is when the first memory unit is filled with a predetermined segmentation, that is, 128K of the main image file content. The main image file of the split size is written to the external storage unit. Finally, in step S1013, after all the main image files have been written into the external storage unit, the header of the main image file is written into the header of the main image file in the external storage unit.
圖4所示根據本發明一實施例,圖1中步驟S102至步驟S104之一種實施方式。請參照圖4,首先於步驟S1021時,第二影像處理單元將已壓縮產生之附屬影像檔案以先進先出方式暫存於第二記憶單元中,並在完成後傳送完成通知至第一影像處理單元。其中,完成通知中包括附屬影像檔案於該第二記憶單元的一記憶體位置及一記憶體大小的資訊。接著於步驟S1031時,第一影像處理單元便可根據完成通知中之資訊從第二記憶單元讀取附屬影像檔案,並將附屬影像檔案暫存於第一記憶單元。FIG. 4 illustrates an embodiment of steps S102 through S104 of FIG. 1 in accordance with an embodiment of the present invention. Referring to FIG. 4, first, in step S1021, the second image processing unit temporarily stores the compressed auxiliary image file in the second memory unit in a first-in first-out manner, and transmits the completion notification to the first image processing after completion. unit. The completion notification includes information about a memory location of the auxiliary video file in the second memory unit and a memory size. Then, in step S1031, the first image processing unit can read the auxiliary image file from the second memory unit according to the information in the completion notification, and temporarily store the auxiliary image file in the first memory unit.
於步驟S1032時,第一影像處理單元從第一記憶單元讀取附屬影像檔案寫入外部儲存單元,注意此時附屬影像檔案是以附加的方式合併主要影像檔案以寫入外部儲存單元。接著,於步驟S1041時,將多物件影像檔案中對應於附屬影像檔案的記憶體起始位置及附屬影像檔案的檔案大小等資訊寫入多物件影像檔案的標頭中,以完成多物件影像檔案的建立。In step S1032, the first image processing unit reads the auxiliary image file from the first memory unit and writes it to the external storage unit. Note that the auxiliary image file merges the main image file in an additional manner to write to the external storage unit. Then, in step S1041, information such as the memory start position of the attached image file and the file size of the attached image file in the multi-object image file are written into the header of the multi-object image file to complete the multi-object image file. The establishment of.
在以上述實施例配合圖式說明本發明之影像處理控制方法後,以下將針對配合使用此控制方法的影像處理裝置進行說明。圖5所示為根據本發明一實施例所繪示之影像處理裝置的裝置方塊圖。請參照圖5,影像處理裝置300包括第一影像處理單元320及第二影像處理單元330,並外接一外部儲存單元370。第一影像處理單元320,利用主要影像MIMG壓縮產生主要影像檔案MF,其中第一影像處理單元320在產生主要影像檔案MF時,同時寫入主要影像檔案MF至外部儲存單元370。After the image processing control method of the present invention is described with reference to the drawings in the above embodiments, an image processing apparatus using the control method will be described below. FIG. 5 is a block diagram of an apparatus for processing an image processing apparatus according to an embodiment of the invention. Referring to FIG. 5 , the image processing apparatus 300 includes a first image processing unit 320 and a second image processing unit 330 , and is externally connected to an external storage unit 370 . The first image processing unit 320 generates a main image file MF by using the main image MIMG compression. The first image processing unit 320 simultaneously writes the main image file MF to the external storage unit 370 when the main image file MF is generated.
第二影像處理單元330,耦接第一影像處理單元320,在第一影像單元320壓縮產生主要影像檔案MF時,平行處理附屬影像SIMG以壓縮產生附屬影像檔案SF。第二影像處理單元330並在壓縮產生附屬影像檔案SF後,傳送完成通知NF至第一影像單元320。第一影像處理單元320接收完成通知NF後,讀取附屬影像檔案SF,寫入附屬影像檔案SF至外部儲存單元370,並以例如MPO格式之檔案格式附加附屬影像檔案SF於主要影像檔案MF以得到多物件影像檔案並更新該多物件影像檔案的檔頭。其他詳細之實施方式可參照上述實施例,在此則不再贅述。The second image processing unit 330 is coupled to the first image processing unit 320. When the first image unit 320 compresses and generates the main image file MF, the auxiliary image SIMG is processed in parallel to compress and generate the auxiliary image file SF. The second image processing unit 330 transmits the completion notification NF to the first image unit 320 after the auxiliary image file SF is compressed. After receiving the completion notification NF, the first image processing unit 320 reads the auxiliary image file SF, writes the auxiliary image file SF to the external storage unit 370, and attaches the auxiliary image file SF to the main image file MF in a file format such as an MPO format. Obtain a multi-object image file and update the header of the multi-object image file. For other detailed implementation manners, reference may be made to the above embodiments, and details are not described herein again.
圖6所示為根據本發明一實施例所繪示之影像處理裝置之裝置方塊圖,相較於圖5所示實施例,圖6提供一種影像處理裝置較為詳細的實施方式。請參照圖6,影像處理裝置300包括第一影像擷取單元310、第二影像擷取單元312、第一影像處理單元320、第二影像處理單元330、第一記憶單元340及第二記憶單元350。FIG. 6 is a block diagram of an image processing apparatus according to an embodiment of the present invention. Compared with the embodiment shown in FIG. 5, FIG. 6 provides a more detailed implementation of the image processing apparatus. Referring to FIG. 6 , the image processing apparatus 300 includes a first image capturing unit 310 , a second image capturing unit 312 , a first image processing unit 320 , a second image processing unit 330 , a first memory unit 340 , and a second memory unit . 350.
第一影像處理單元320、第二影像處理單元330更分別包括主要影像處理器322及附屬影像處理器332、感測器介面323及333、通用輸入輸出(General Purpose I/O,GPIO)接收介面326及通用輸入輸出傳輸介面336、安全數位輸入輸出(Secure Digital I/O,SDIO)接收介面327以及安全數位輸入輸出傳輸介面337。其中,第一影像處理單元320更透過SDIO介面328與外部的顯示單元260和外部儲存單元270連接。The first image processing unit 320 and the second image processing unit 330 further include a main image processor 322 and an auxiliary image processor 332, sensor interfaces 323 and 333, and a general purpose input/output (GPIO) receiving interface. 326 and universal input/output transmission interface 336, secure digital input/output (Secure Digital I/O, SDIO) receiving interface 327 and secure digital input/output transmission interface 337. The first image processing unit 320 is further connected to the external display unit 260 and the external storage unit 270 through the SDIO interface 328.
第一影像擷取單元310及第二影像擷取單元312分別耦接第一影像處理單元320和第二影像處理單元330,分別擷取主要影像MIMG及附屬影像SIMG後,傳送至第一影像處理單元320和第二影像處理單元330。第一影像處理單元320和第二影像處理單元330則分別透過感測器介面323及333接收主要影像MIMG及附屬影像SIMG,並利用主要影像處理器322及附屬影像處理器332對主要影像MIMG及附屬影像SIMG進行影像處理。而利用影像處理裝置300進行對應於圖1至圖4之方法的影像處理流程之動作,以下將配合圖式詳細說明。The first image capturing unit 310 and the second image capturing unit 312 are respectively coupled to the first image processing unit 320 and the second image processing unit 330, and respectively capture the main image MIMG and the auxiliary image SIMG, and then transmit the image to the first image processing. Unit 320 and second image processing unit 330. The first image processing unit 320 and the second image processing unit 330 receive the main image MIMG and the auxiliary image SIMG through the sensor interfaces 323 and 333, respectively, and use the main image processor 322 and the auxiliary image processor 332 to view the main image MIMG and The attached image SIMG performs image processing. The operation of the image processing flow corresponding to the method of FIGS. 1 to 4 by the image processing apparatus 300 will be described in detail below with reference to the drawings.
圖7所示為根據本發明一實施例之影像處理裝置之任務運作時序之示意圖。請同時參照圖6及圖7,首先,第一影像處理單元320及第二影像處理單元330分別利用主要影像處理器322及附屬影像處理器332處理任務t1及任務t5以分別壓縮產生主要影像檔案MF以及附屬影像檔案SF,並將已壓縮完成之部分分別暫存於第一記憶單元340及第二記憶單元350。值得一提的是,第一影像處理單元320及第二影像處理單元330在執行任務t1及任務t5之前已先對主要影像MIMG和附屬影像SIMG完成圖2實施例所示之前置動作。FIG. 7 is a schematic diagram showing the task operation timing of the image processing apparatus according to an embodiment of the invention. Referring to FIG. 6 and FIG. 7 , first, the first image processing unit 320 and the second image processing unit 330 respectively process the task t1 and the task t5 by using the main image processor 322 and the auxiliary image processor 332 to respectively compress and generate the main image file. The MF and the attached video file SF, and the compressed portions are temporarily stored in the first memory unit 340 and the second memory unit 350, respectively. It should be noted that the first image processing unit 320 and the second image processing unit 330 have completed the pre-action shown in the embodiment of FIG. 2 on the main image MIMG and the auxiliary image SIMG before executing the task t1 and the task t5.
當第一影像處理單元320開始執行任務t1以壓縮產生主要影像檔案MF後,第一影像處理單元320利用任務t2啟動一等待程序t3,並在等待程序t3中利用GPIO接收介面326持續等待接收從第二影像處理單元330所傳送之完成通知NF。另一方面,當第一影像處理單元320執行任務t1中,已壓縮完成之主要影像檔案MF的資料量以達一預設分割大小(例如前述實施例所設定之128K byte)時,第一影像處理單元320則在任務t41~t4n將暫存於第一記憶單元340的已壓縮完成之主要影像檔案MF以一預設分割之大小透過SDIO介面328寫入外部儲存單元370。其中,主要影像檔案MF的檔案大小為預設切割大小的N倍,任務t4n表示已預設分割大小切割主要影像檔案MF的最後一個分割。After the first image processing unit 320 starts executing the task t1 to compress and generate the main image file MF, the first image processing unit 320 starts a waiting program t3 by using the task t2, and continues to wait for receiving the GPIO receiving interface 326 in the waiting program t3. The completion notification NF transmitted by the second image processing unit 330. On the other hand, when the first image processing unit 320 performs the task t1, the amount of data of the compressed main image file MF is up to a predetermined segment size (for example, 128K byte set in the foregoing embodiment), the first image The processing unit 320 writes the compressed main image file MF temporarily stored in the first memory unit 340 to the external storage unit 370 through the SDIO interface 328 in a predetermined split size at tasks t41 to t4n. The file size of the main image file MF is N times of the preset cut size, and the task t4n indicates that the last split of the main image file MF has been preset by the split size.
當第二影像處理單元330利用附屬影像處理器332壓縮完成附屬影像檔案SF之後,第二影像處理單元330會透過GPIO傳輸介面336傳送完成通知NF至第一影像處理單元320,其中完成通知NF包括附屬影像檔案SF暫存於第二記憶單元350中之記憶體大小及位置。接著,第一影像處理單元320利用GPIO接收介面326接收完成通知NF,則任務t3回傳該完成通知NF之資訊至主要影像處理器322。After the second image processing unit 330 compresses the auxiliary image file SF by using the auxiliary image processor 332, the second image processing unit 330 transmits the completion notification NF to the first image processing unit 320 through the GPIO transmission interface 336, wherein the completion notification NF includes The auxiliary image file SF is temporarily stored in the memory size and position in the second memory unit 350. Next, the first image processing unit 320 receives the completion notification NF by using the GPIO receiving interface 326, and the task t3 returns the information of the completion notification NF to the main image processor 322.
主要影像處理器322在接收到完成通知則終結任務t3,並在第一記憶單元340具有足夠空間的情況下,根據完成通知的內容要求第二影像處理單元330回傳附屬影像檔案SF並暫存於第一記憶單元340。值得注意的是,第一記憶單元340中先前暫存主要影像檔案MF的空間可被重複使用,且當第一記憶單元340為有足夠空間時,亦可切割成數個較小分割批次傳送,實施方式依照實際情況調整,並不限定於上述方式。The main image processor 322 terminates the task t3 upon receiving the completion notification, and if the first memory unit 340 has sufficient space, the second image processing unit 330 is required to return the auxiliary image file SF and temporarily store the content according to the content of the completion notification. In the first memory unit 340. It should be noted that the space in the first memory unit 340 for temporarily storing the main image file MF can be reused, and when the first memory unit 340 has sufficient space, it can also be cut into several smaller split batch transmissions. The embodiment is adjusted according to actual conditions, and is not limited to the above method.
當第一影像處理單元320完成了任務t4n,也就是完整的寫入主要影像檔案MF後,利用主要影像處理器322啟動任務t7,將暫存於第一記憶單元340的附屬影像檔案SF以附加主要影像檔案MF的方式透過SDIO介面328,以MPO檔案格式寫入外部儲存單元270。最後,第一影像處理單元320利用主要影像處理器322啟動任務t8,更新合併後的MPO檔案的標頭,在此標頭中寫入附加上附屬影像檔案的記憶體起始位置以及檔案之大小。最後儲存於外部儲存單元270之檔案內容則可參考以下圖8之說明。After the first image processing unit 320 completes the task t4n, that is, after the complete writing of the main image file MF, the main image processor 322 starts the task t7, and the auxiliary image file SF temporarily stored in the first memory unit 340 is attached. The main image file MF is written to the external storage unit 270 in the MPO file format through the SDIO interface 328. Finally, the first image processing unit 320 starts the task t8 by using the main image processor 322, updates the header of the merged MPO file, and writes the memory starting position and the file size of the attached auxiliary image file in the header. . Finally, the file content stored in the external storage unit 270 can be referred to the description of FIG. 8 below.
圖8所示為根據本發明一實施例所繪示多圖像物件檔案之資料示意圖。請參照圖8,多圖像物件檔案80包括標頭資料內容810、主要影像內容820、附屬影像標頭內容830及附屬影像內容840,換句話說,多圖像物件檔案80包括了主要影像檔案以及附屬影像檔案以附加方式接續於主要影像檔案內容之後。多圖像物件檔案80的標頭810即為主要影像檔案的標頭加上以下附屬影像標頭830及附屬影像內容840分別的起使記憶體位置及所佔記憶體大小,如此一來在透過其他顯示裝置進行三維影像顯示時,該顯示裝置才能夠成功辨別兩張影像的內容資訊。FIG. 8 is a schematic diagram showing data of a multi-image object file according to an embodiment of the invention. Referring to FIG. 8, the multi-image object file 80 includes a header data content 810, a main image content 820, an auxiliary image header content 830, and an affiliate image content 840. In other words, the multi-image object file 80 includes a main image file. And the attached image file is attached to the main image file content in an additional manner. The header 810 of the multi-image object file 80 is the header of the main image file plus the following auxiliary image header 830 and the attached image content 840 respectively, and the memory location and the memory size are respectively transmitted. When other display devices perform three-dimensional image display, the display device can successfully distinguish the content information of the two images.
值得一提的是,主要略縮圖811和主要縮圖812,以及附屬略縮圖831和附屬縮圖832原先皆存放於各自之標頭,也就是標頭810及附屬影像檔案標頭830之中,當顯示裝置欲進行運用這些縮圖時,亦可直接利用存取於標頭810中之資訊。It is worth mentioning that the main thumbnail 811 and the main thumbnail 812, as well as the attached thumbnail 831 and the attached thumbnail 832 are originally stored in their respective headers, that is, the header 810 and the attached image archive header 830. In the case where the display device is to use these thumbnails, the information accessed in the header 810 can also be directly utilized.
綜上所述,本發明提供了一種影像處理控制方法及其裝置,可利用兩組影像處理單元分別接收兩張視角不同的影像,平行壓縮處理兩影像,並接著透過兩組影像處理單元之間的工作流程控制以及資料傳輸,在不需要額外硬體或加強裝置運算能力的情況下,使得製作用以顯示多圖像物件檔案的時間可大幅縮短,增加了產品的可用程度及便利性,並同時滿足了消費者欲隨拍即看的需求。In summary, the present invention provides an image processing control method and apparatus thereof, which can respectively receive two images with different viewing angles by using two sets of image processing units, and compress and process two images in parallel, and then pass between two sets of image processing units. Workflow control and data transfer, the time required to create a multi-image object file can be greatly shortened without the need for additional hardware or enhanced computing power, increasing the availability and convenience of the product, and At the same time, it satisfies the needs of consumers who want to watch and watch.
雖然本發明已以實施例揭露如上,然其並非用以限定本發明,任何所屬技術領域中具有通常知識者,在不脫離本發明之精神和範圍內,當可作些許之更動與潤飾,故本發明之保護範圍當視後附之申請專利範圍所界定者為準。Although the present invention has been disclosed in the above embodiments, it is not intended to limit the invention, and any one of ordinary skill in the art can make some modifications and refinements without departing from the spirit and scope of the invention. The scope of the invention is defined by the scope of the appended claims.
S101~S104、S201~S206、S1011~S1013、S1021~S1041...步驟S101 to S104, S201 to S206, S1011 to S1013, and S1021 to S1041. . . step
300...影像處理裝置300. . . Image processing device
310、312...影像擷取單元310, 312. . . Image capture unit
320、330...影像處理單元320, 330. . . Image processing unit
323、333...感測器介面323, 333. . . Sensor interface
322...主要影像處理器322. . . Primary image processor
332...附屬影像處理器332. . . Affiliated image processor
326...GPIO接收介面326. . . GPIO receiving interface
336...GPIO傳輸介面336. . . GPIO transmission interface
327...SDIO接收介面327. . . SDIO receiving interface
337...SDIO傳輸介面337. . . SDIO transmission interface
328...SDIO介面328. . . SDIO interface
340、350...記憶單元340, 350. . . Memory unit
370...外部儲存單元370. . . External storage unit
MIMG...主要影像MIMG. . . Main image
SIMG...附屬影像SIMG. . . Affiliated image
NF...完成通知NF. . . Completion notice
MF...主要影像檔案MF. . . Primary image file
SF...附屬影像檔案SF. . . Affiliated image file
t1~t3、t41~t4n、t5~t8...處理器任務程序T1~t3, t41~t4n, t5~t8. . . Processor task program
圖1所示為根據本發明一實施例所繪示之影像處理控制方法的步驟流程圖。FIG. 1 is a flow chart showing the steps of an image processing control method according to an embodiment of the invention.
圖2所示為根據本發明一實施例所繪示之影像處理控制方法的部分步驟流程圖。FIG. 2 is a partial flow chart of a method for controlling image processing according to an embodiment of the invention.
圖3所示為根據本發明一實施例之第一影像處理單元於產生主要影像檔案時,同時寫入主要影像檔案至外部儲存單元的步驟流程圖。FIG. 3 is a flow chart showing the steps of simultaneously writing a main image file to an external storage unit when the first image processing unit generates a main image file according to an embodiment of the invention.
圖4所示根據本發明一實施例,圖1中步驟S102至步驟S104之一種實施方式。FIG. 4 illustrates an embodiment of steps S102 through S104 of FIG. 1 in accordance with an embodiment of the present invention.
圖5所示為根據本發明一實施例所繪示之影像處理裝置的裝置方塊圖。FIG. 5 is a block diagram of an apparatus for processing an image processing apparatus according to an embodiment of the invention.
圖6所示為根據本發明一實施例所繪示之影像處理裝置之裝置方塊圖。FIG. 6 is a block diagram of an apparatus for processing an image processing apparatus according to an embodiment of the invention.
圖7所示為根據本發明一實施例之影像處理裝置之任務運作時序之示意圖。FIG. 7 is a schematic diagram showing the task operation timing of the image processing apparatus according to an embodiment of the invention.
圖8所示為根據本發明一實施例所繪示多圖像物件檔案之資料示意圖。FIG. 8 is a schematic diagram showing data of a multi-image object file according to an embodiment of the invention.
S101~S104...步驟S101~S104. . . step
Claims (14)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW101100241A TWI482119B (en) | 2012-01-04 | 2012-01-04 | Control method for image processing and apparatus therefor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW101100241A TWI482119B (en) | 2012-01-04 | 2012-01-04 | Control method for image processing and apparatus therefor |
Publications (2)
Publication Number | Publication Date |
---|---|
TW201329904A TW201329904A (en) | 2013-07-16 |
TWI482119B true TWI482119B (en) | 2015-04-21 |
Family
ID=49225786
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW101100241A TWI482119B (en) | 2012-01-04 | 2012-01-04 | Control method for image processing and apparatus therefor |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI482119B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090154833A1 (en) * | 2007-11-21 | 2009-06-18 | Shigeo Sakaue | Image file reproduction apparatus and image data reproduction apparatus |
TW201013421A (en) * | 2008-07-30 | 2010-04-01 | Nvidia Corp | Video processing system, method, and computer program product for encrypting communications between a plurality of graphics processors |
US20100165151A1 (en) * | 2008-12-26 | 2010-07-01 | Texas Instruments Incorporated | Processing image frames in different formats with reduced memory requirements in digital still cameras |
TW201027977A (en) * | 2009-01-07 | 2010-07-16 | Genesys Logic Inc | Document scanning controller, document scanner, document scanning system and method of controlling document scanning |
TW201104453A (en) * | 2009-07-21 | 2011-02-01 | Altek Corp | Method and system of numerical analysis for continuous data |
-
2012
- 2012-01-04 TW TW101100241A patent/TWI482119B/en not_active IP Right Cessation
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090154833A1 (en) * | 2007-11-21 | 2009-06-18 | Shigeo Sakaue | Image file reproduction apparatus and image data reproduction apparatus |
TW201013421A (en) * | 2008-07-30 | 2010-04-01 | Nvidia Corp | Video processing system, method, and computer program product for encrypting communications between a plurality of graphics processors |
US20100165151A1 (en) * | 2008-12-26 | 2010-07-01 | Texas Instruments Incorporated | Processing image frames in different formats with reduced memory requirements in digital still cameras |
TW201027977A (en) * | 2009-01-07 | 2010-07-16 | Genesys Logic Inc | Document scanning controller, document scanner, document scanning system and method of controlling document scanning |
TW201104453A (en) * | 2009-07-21 | 2011-02-01 | Altek Corp | Method and system of numerical analysis for continuous data |
Non-Patent Citations (1)
Title |
---|
Kemal Ugur, Hui Liu, Jani Lainema, Moncef Gabbouj, Houqiang Li, "PARALLEL ENCODING - DECODING OPERATION FOR MULTIVIEW VIDEO CODING WITH HIGH CODING EFFICIENCY", 2007 3DTV Conference, Pp. 1-4, 7-9 May 2007 * |
Also Published As
Publication number | Publication date |
---|---|
TW201329904A (en) | 2013-07-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108140263B (en) | AR display system and method applied to image or video | |
KR101702801B1 (en) | Camera command set host command translation | |
US10148875B1 (en) | Method and system for interfacing multiple channels of panoramic videos with a high-definition port of a processor | |
JP7565104B2 (en) | Video distribution device, video distribution system, video distribution method, and video distribution program | |
KR101023945B1 (en) | Image processing device for reducing JPEGJoint Photographic Coding Experts Group capture time and method of capturing JPEG in the same device | |
JP2013531853A5 (en) | ||
WO2024055797A9 (en) | Method for capturing images in video, and electronic device | |
CN113077532A (en) | Dynamic photo generation method and device and readable storage medium | |
US8228395B2 (en) | Processing image frames in different formats with reduced memory requirements in digital still cameras | |
KR20100077940A (en) | Apparatus and method for processing a digital image | |
US20150382007A1 (en) | Video and image compression based on position of the image generating device | |
CN203801008U (en) | 720-degree encircling photographic device | |
US11126322B2 (en) | Electronic device and method for sharing image with external device using image link information | |
CN103795928A (en) | Method and system for processing pictures with original data format | |
US9984436B1 (en) | Method and system for real-time equirectangular projection | |
TWI482119B (en) | Control method for image processing and apparatus therefor | |
JP5720170B2 (en) | Image processing apparatus, image processing system, image processing method, and program | |
US20140193083A1 (en) | Method and apparatus for determining the relationship of an image to a set of images | |
WO2022061723A1 (en) | Image processing method, device, terminal, and storage medium | |
CN111034187A (en) | Dynamic image generation method and device, movable platform and storage medium | |
CN103198061B (en) | Image processing control method and device thereof | |
TW201430728A (en) | Icon generating system and method for generating icon | |
JP2010252075A (en) | Image management apparatus | |
JP4391557B2 (en) | Image browsing system | |
KR100903394B1 (en) | Processing Method for Character Animation in Mobile Terminal By Reducing Animation Data |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
MM4A | Annulment or lapse of patent due to non-payment of fees |