KR20070055701A - Method for editing graphic file - Google Patents

Method for editing graphic file Download PDF

Info

Publication number
KR20070055701A
KR20070055701A KR1020050113972A KR20050113972A KR20070055701A KR 20070055701 A KR20070055701 A KR 20070055701A KR 1020050113972 A KR1020050113972 A KR 1020050113972A KR 20050113972 A KR20050113972 A KR 20050113972A KR 20070055701 A KR20070055701 A KR 20070055701A
Authority
KR
South Korea
Prior art keywords
graphic file
file
editing
jpeg
graphic
Prior art date
Application number
KR1020050113972A
Other languages
Korean (ko)
Inventor
홍성준
이선중
Original Assignee
주식회사 팬택
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 주식회사 팬택 filed Critical 주식회사 팬택
Priority to KR1020050113972A priority Critical patent/KR20070055701A/en
Publication of KR20070055701A publication Critical patent/KR20070055701A/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/20Processor architectures; Processor configuration, e.g. pipelining
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformation in the plane of the image
    • G06T3/40Scaling the whole image or part thereof
    • G06T3/4084Transform-based scaling, e.g. FFT domain scaling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformation in the plane of the image
    • G06T3/40Scaling the whole image or part thereof
    • G06T3/4092Image resolution transcoding, e.g. client/server architecture
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals

Abstract

본 발명은 이미지 편집에 관한 것으로, 특히 디스플레이 장치의 해상도보다 높은 픽셀 수를 갖는 JPEG 파일을 편집하는 기술에 관한 것이다.TECHNICAL FIELD The present invention relates to image editing, and more particularly, to a technique for editing a JPEG file having a higher number of pixels than the resolution of a display device.

본 발명에 따른 그래픽 파일 편집 방법은 그래픽 파일을 디코딩하여 화면에 디스플레이하며, 디스플레이된 이미지 중 일부 영역을 선택받은 후, 원본 그래픽 파일을 처리하여 선택된 영역만을 가지는 그래픽 파일을 생성하여 저장한다. 이 같이 본 발명에 따른 그래픽 파일 편집 방법은 선택 영역 정보를 가지고 그래픽 파일 자체를 편집하여 선택영역만을 가지는 그래픽 파일을 생성하여 저장하므로, 디스플레이 해상도와 관계 없이 그래픽 파일을 편집할 수 있다.The method for editing a graphic file according to the present invention decodes the graphic file and displays it on the screen. After receiving a partial region of the displayed image, the graphic file is processed, and a graphic file having only the selected region is generated and stored. As described above, the method for editing a graphic file according to the present invention edits the graphic file itself with the selection area information to generate and store the graphic file having only the selection area. Thus, the graphic file can be edited regardless of the display resolution.

디스플레이 장치(LCD), 해상도, JPEG, 픽셀. Display device (LCD), resolution, JPEG, pixels.

Description

그래픽 파일 편집 방법{Method for editing graphic file}{Method for editing graphic file}

도 1은 본 발명의 바람직한 실시예에 따른 JPEG 파일 편집 방법을 도시한 흐름도.1 is a flowchart showing a method for editing a JPEG file according to a preferred embodiment of the present invention.

도 2는 디스플레이 장치(LCD)에 디스플레이된 이미지에 선택 영역을 도시한 도면.2 shows a selection area in an image displayed on a display device (LCD);

도 3은 도 1의 단계 S160을 보다 구체화한 흐름도.3 is a flow chart more embodying step S160 of FIG.

도 4는 JPEG 파일 구조도.4 is a JPEG file structure diagram;

본 발명은 이미지 편집에 관한 것으로, 특히 디스플레이 장치의 해상도보다 높은 픽셀 수를 갖는 JPEG 파일을 편집하는 기술에 관한 것이다.TECHNICAL FIELD The present invention relates to image editing, and more particularly, to a technique for editing a JPEG file having a higher number of pixels than the resolution of a display device.

JPEG은 높은 압축 효율 때문에 가장 널리 쓰이는 그래픽 파일 포맷 중 하나이다. 이러한 JPEG 파일을 휴대폰과 같은 이동통신 단말기에서 편집하고자 하는 경우에는 JPEG 파일의 픽셀(pixel) 수에 따라 편집의 한계가 발생한다. 구체적으로 JPEG 파일의 픽셀 수가 이동통신 단말기의 디스플레이 해상도(LCD resolution)보다 높은 경우에는 원하는 영역을 선택하여, 그 선택 영역만 저장하는 등의 편집 을 할 수 없다. 예를 들어 JPEG 파일은 800*600인데 반해, 디스플레이 해상도는 320*240인 경우에 그러하다. 이 같은 이유는 기존의 편집 방식이 JPEG 파일을 RGB로 변환하여 LCD에 디스플레이한 후, LCD 화면을 기준으로 편집 작업 후 RGB 데이터를 다시 JPEG 파일로 압축하는 방식이기 때문이다. 다시 말해, 800*600의 JPEG 파일을 320*240의 LCD에 맞게 RGB로 변환하여 편집하고 다시 JPEG으로 압축하면, 편집된 JPEG 파일은 압축에 의해 해상도가 320*240조차도 나오지 않게 되는 것이다.JPEG is one of the most widely used graphic file formats because of its high compression efficiency. When editing such a JPEG file in a mobile communication terminal such as a mobile phone, there is a limit of editing depending on the number of pixels of the JPEG file. Specifically, when the number of pixels of the JPEG file is higher than the LCD resolution of the mobile communication terminal, editing such as selecting a desired area and storing only the selected area cannot be performed. For example, a JPEG file is 800 * 600, whereas a display resolution is 320 * 240. This is because the existing editing method converts JPEG files to RGB and displays them on the LCD, and then edits the RGB data back to the JPEG file after editing based on the LCD screen. In other words, if an 800 * 600 JPEG file is converted to RGB for a 320 * 240 LCD, edited, and then compressed back to JPEG, the edited JPEG file will not be even 320 * 240 due to compression.

본 발명은 이러한 문제점을 해결하기 위한 것으로, 디스플레이 장치의 해상도보다 큰 사이즈를 갖는 그래픽 파일을 편집할 수 있도록 하는 기술적 방안을 제공하는 것을 목적으로 한다.An object of the present invention is to provide a technical solution for editing a graphic file having a size larger than the resolution of a display device.

상술한 목적을 달성하기 위한 본 발명의 일 양상에 따른 그래픽 파일 편집 방법은 그래픽 파일을 디코딩하여 화면에 디스플레이하며, 디스플레이된 이미지 중 일부 영역을 선택받은 후, 원본 그래픽 파일을 처리하여 선택된 영역만을 가지는 그래픽 파일을 생성하여 저장한다.According to an aspect of the present invention, there is provided a method of editing a graphic file, which decodes the graphic file and displays the graphic file on a screen, and after receiving a partial region of the displayed image, processes the original graphic file to have only the selected region. Create and save a graphic file.

본 발명의 이 같은 양상에 따라 본 발명에 따른 그래픽 파일 편집 방법은 선택 영역 정보를 가지고 그래픽 파일 자체를 편집하여 선택영역만을 가지는 그래픽 파일을 생성하여 저장하므로, 디스플레이 해상도와 관계 없이 그래픽 파일을 편집할 수 있다. 즉, 그래픽 파일이 디스플레이 해상도보다 높은 픽셀 수를 갖는다 하 더라도 편집을 용이하게 할 수 있다. 또한 기존과 같이 RGB로 변환하여 편집한 후 다시 압축하는 방식이 아니기 때문에 편집 시간을 단축할 수 있다.According to this aspect of the present invention, the method for editing a graphic file according to the present invention edits the graphic file itself with selection area information and generates and stores a graphic file having only a selection area. Can be. That is, even if the graphic file has a higher number of pixels than the display resolution, editing can be facilitated. In addition, the editing time can be shortened because it is not converted to RGB, edited, and then compressed again.

전술한, 그리고 추가적인 본 발명의 양상들은 첨부된 도면을 참조하여 설명되는 바람직한 실시예들을 통하여 더욱 명백해질 것이다. 이하에서는 본 발명을 이러한 실시예를 통해 당업자가 용이하게 이해하고 재현할 수 있도록 상세히 설명하기로 한다.The foregoing and further aspects of the present invention will become more apparent through the preferred embodiments described with reference to the accompanying drawings. Hereinafter, the present invention will be described in detail to enable those skilled in the art to easily understand and reproduce the present invention.

이하 JPEG 파일 편집 방법에 대한 도면을 참조한 상세한 설명은 휴대폰과 같은 저해상도 디스플레이 장치(LCD)가 구비된 단말기에서 실행됨이 바람직하다. 도 1은 본 발명의 바람직한 실시예에 따른 JPEG 파일 편집 방법을 도시한 흐름도이다. 사용자는 단말기에 저장된 그래픽 파일, 예를 들어 JPEG 파일 중 편집하고자 하는 하나의 JPEG 파일을 선택한다. 이 때 JPEG 파일의 사이즈는 단말기의 디스플레이 장치(LCD) 해상도보다 높은 것으로 가정한다. 예를 들어 JPEG 파일은 800*600이고, LCD 해상도는 320*240일 수 있다. The detailed description with reference to the drawings for editing a JPEG file is preferably executed in a terminal equipped with a low resolution display device (LCD) such as a mobile phone. 1 is a flowchart illustrating a method for editing a JPEG file according to a preferred embodiment of the present invention. The user selects one JPEG file to be edited among graphic files stored in the terminal, for example, a JPEG file. At this time, it is assumed that the size of the JPEG file is higher than the display device (LCD) resolution of the terminal. For example, the JPEG file may be 800 * 600 and the LCD resolution may be 320 * 240.

단말기 제어칩은 선택된 JPEG 파일(800*600)을 디코딩하여 320*240의 LCD 해상도에 맞게 RGB 색상으로 변환한다(단계 S100). JPEG 파일을 디코딩하여 RGB 색상으로 변환하는 과정은 JPEG 압축의 역과정을 수행하면 되는 것으로, JPEG 압축은 다음과 같다. 우선 RGB 색상 체계를 Y-Cb-Cr 색상 체계로 변환하는 샘플링(Sampling)을 수행한다. 그리고 이산 코사인 변환(DCT : Discrete Cosine Transform)을 통해 샘플링된 임의의 데이터 배열을 코사인 함수의 합으로 변환한다. 다음으로 양자화(Quantization) 과정을 통해 불필요한 성분을 제거하고, 마지 막으로 Huffman coding 방식으로 압축을 한다. 이 같은 과정을 통해 JPEG 파일을 만들어낼 수 있으며, JPEG 파일을 디코딩하여 RGB 색상으로 변환하는 과정은 Huffman decoding → IDCT → Dequantization → upsampling 이라는 JPEG 압축의 역과정을 통해 이루어진다.The terminal control chip decodes the selected JPEG file (800 * 600) and converts it into RGB color to match the LCD resolution of 320 * 240 (step S100). The process of decoding a JPEG file and converting it into RGB color is performed by performing the reverse process of JPEG compression. JPEG compression is as follows. First, sampling is performed to convert the RGB color system to the Y-Cb-Cr color system. In addition, a random data array sampled through a Discrete Cosine Transform (DCT) is transformed into a sum of a cosine function. Next, unnecessary components are removed through a quantization process, and finally compressed by Huffman coding. Through this process, JPEG file can be created, and the process of decoding JPEG file to RGB color is performed by reverse process of JPEG compression called Huffman decoding → IDCT → Dequantization → upsampling.

800*600의 JPEG 파일로부터 디코딩된 320*240의 RGB 색상 정보에 따라 디스플레이 장치(LCD)에 이미지를 디스플레이 처리한다(단계 S120). 사용자는 단말기에 구비된 키를 통해 디스플레이된 이미지 중 편집하고자 하는 일부 영역을 도 2에서와 같이 지정하여 선택할 수 있다. 영역 선택 방식은 예를 들어 키 조작을 통해 시작점과 끝점을 표시함에 의해 이루어질 수 있다. 아니면 상하좌우키를 이동시켜 사각 영역을 지정함에 의해 이루어질 수도 있으며, 기타 영역을 지정할 수 있는 모든 방식이 가능하다.The image is displayed and processed on the display device LCD according to the RGB color information of 320 * 240 decoded from the 800 * 600 JPEG file (step S120). The user may designate and select a partial region to be edited among the images displayed through the key provided in the terminal as illustrated in FIG. 2. The region selection scheme can be achieved by, for example, displaying the start point and the end point through key manipulation. Alternatively, it can be done by moving the up, down, left, and right keys to specify the rectangular area, and all other methods that can specify other areas are possible.

단말기 제어칩은 영역을 선택받은 후(단계 S140), 원본 JPEG 파일을 처리하여 선택 영역만을 가지는 JPEG 파일을 생성한다(단계 S160). 단계 S260은 구체적으로 도 3과 같은 과정을 포함할 수 있다. 제어칩은 선택 영역에 대해 JPEG 파일에서의 영역 정보를 구한다(단계 S163). 예를 들어 도 2에 도시된 바와 같은 320*240의 LCD 해상도에서 선택된 영역의 시작위치가 (20, 20)이고, 끝위치가 (180, 180)이면 다음과 같은 과정에 의해 JPEG 파일에서의 영역 정보를 구할 수 있다.After the terminal control chip receives the selection (step S140), the terminal control chip processes the original JPEG file to generate a JPEG file having only the selection area (step S160). Step S260 may specifically include a process as shown in FIG. 3. The control chip obtains area information in the JPEG file for the selected area (step S163). For example, if the start position of the selected area is (20, 20) and the end position is (180, 180) at the LCD resolution of 320 * 240 as shown in FIG. 2, the area in the JPEG file is processed as follows. Information is available.

320*240과 800*600은 2.5 : 2.5의 비를 가진다. 따라서 시작위치 (20, 20)을 각각 2.5배로 환산하여 (50, 50)의 위치를 구하고, 끝위치 (180, 180) 또한 각 각 2.5배로 환산하여 (450, 450)의 위치를 구한다. 따라서 디스플레이된 이미지에서의 선택 영역(20, 20)(180, 180)은 실제 JPEG 파일에서는 (50, 50)(450, 450)임을 알 수 있다. 다음으로 구해진 영역 정보로부터 선택 영역의 픽셀 정보를 산출한다(단계 S165). 이는 끝위치 (450, 450)에서 시작위치 (50, 50)을 제하면 되므로, 픽셀 정보는 400*400이 된다. 320 * 240 and 800 * 600 have a ratio of 2.5: 2.5. Therefore, the positions of 50 and 50 are obtained by converting the starting positions 20 and 20 by 2.5 times, respectively, and the positions of 450 and 450 are obtained by converting the end positions 180 and 180 by 2.5 times, respectively. Thus, it can be seen that the selection areas 20, 20 (180, 180) in the displayed image are (50, 50) (450, 450) in the actual JPEG file. Next, pixel information of the selected area is calculated from the obtained area information (step S165). Since the starting positions 50 and 50 are subtracted from the end positions 450 and 450, the pixel information is 400 * 400.

JPEG 파일의 구조도는 도 4와 같다. 실제적으로 이미지가 압축된 데이터는 연속된 MCU(Minimum Coded Unit) 데이터 안에 있다. MCU 데이터 이외의 데이터들은 압축된 MCU 데이터를 디코딩하기 위해 필요한 정보들을 담고 있다. JPEG 파일을 처리하여 선택된 영역만을 가지는 JPEG 파일을 새로이 생성하기 위해서는 프레임 헤더 정보에 포함된 픽셀 정보인 X = 800, Y = 600을 선택 영역에 맞는 픽셀 정보로 수정하여야 하고, 선택 영역의 MCU 데이터만을 가져야 한다. 따라서 프레임 헤더 정보에 포함된 픽셀 정보를 X = 400, Y = 400으로 수정하고, (50, 50)(450, 450)에 해당하는 MCU를 추출하여 선택 영역의 이미지만을 가지는 JPEG 파일을 생성하여 저장한다(단계 S167). 바람직하게 저장은 원본 JPEG 파일과는 별도로 다른 이름으로 저장과 같은 방식을 통해 이루어질 수 있다.The structure diagram of the JPEG file is shown in FIG. In practice, the compressed data is in contiguous Minimum Coded Unit (MCU) data. The data other than the MCU data contains the information necessary to decode the compressed MCU data. In order to create a new JPEG file having only the selected area by processing the JPEG file, the pixel information included in the frame header information, X = 800 and Y = 600, should be modified to the pixel information suitable for the selected area. Should have Therefore, the pixel information included in the frame header information is modified to X = 400, Y = 400, and the MCU corresponding to (50, 50) (450, 450) is extracted to generate and save a JPEG file having only the image of the selected area. (Step S167). Preferably, the saving can be done in the same manner as saving with a name other than the original JPEG file.

상술한 바와 같이 본 발명은 선택 영역 정보를 가지고 그래픽 파일 자체를 편집하여 선택영역만을 가지는 그래픽 파일을 생성하여 저장하므로, 디스플레이 해상도와 관계 없이 그래픽 파일을 편집할 수 있다. 즉, 그래픽 파일이 디스플레이 해상도보다 높은 픽셀 수를 갖는다 하더라도 편집을 용이하게 할 수 있다. 또한 기존과 같이 RGB로 변환하여 편집한 후 다시 압축하는 방식이 아니기 때문에 편집 시간을 단축할 수 있다.As described above, since the present invention edits the graphic file itself with the selection area information to generate and store the graphic file having only the selection area, the graphic file can be edited regardless of the display resolution. That is, even if the graphic file has a higher number of pixels than the display resolution, editing can be facilitated. In addition, the editing time can be shortened because it is not converted to RGB, edited, and then compressed again.

한편 본 발명은 도면에 도시된 실시예들을 참고로 설명되었으나 이는 예시적인 것에 불과하며, 당해 기술분야에 통상의 지식을 지닌 자라면 이로부터 다양한 변형 및 균등한 타실시예가 가능하다는 점을 이해할 것이다. 따라서 본 발명의 진정한 기술적 보호범위는 첨부된 특허청구범위에 의해서만 정해져야 할 것이다.On the other hand, the present invention has been described with reference to the embodiments shown in the drawings, which are merely exemplary, and those skilled in the art will understand that various modifications and equivalent other embodiments are possible therefrom. Therefore, the true technical protection scope of the present invention should be defined only by the appended claims.

Claims (3)

디스플레이 해상도보다 높은 픽셀 수를 갖는 그래픽 파일을 편집하는 방법에 있어서, 상기 방법이 :A method of editing a graphic file having a pixel number higher than the display resolution, the method comprising: a) 그래픽 파일을 디코딩하는 단계와;a) decoding the graphics file; b) 상기 디코딩된 이미지를 디스플레이하는 단계와;b) displaying the decoded image; c) 상기 디스플레이된 이미지 중 일부 영역을 선택받는 단계와;c) receiving a partial region of the displayed image; d) 상기 디스플레이된 이미지의 그래픽 파일을 처리하여 상기 선택 영역만을 가지는 그래픽 파일을 생성하는 단계;d) processing the graphic file of the displayed image to generate a graphic file having only the selection area; 를 포함하는 것을 특징으로 하는 그래픽 파일 편집 방법.Graphic file editing method comprising a. 제 1 항에 있어서, 상기 생성 단계가 :The method of claim 1 wherein said generating step is: 상기 선택 영역에 대해 그래픽 파일에서의 영역 정보를 구하는 단계와,Obtaining area information in a graphic file for the selected area; 상기 영역 정보로부터 픽셀 정보를 산출하는 단계와,Calculating pixel information from the area information; 상기 그래픽 파일의 프레임 헤더 정보에 포함된 픽셀 정보를 상기 산출된 픽셀 정보로 수정하고, 상기 영역 정보를 참조하여 상기 선택 영역의 이미지만을 추출하여 그래픽 파일을 생성하는 단계를 포함하는 것을 특징으로 하는 그래픽 파일 편집 방법.And modifying the pixel information included in the frame header information of the graphic file into the calculated pixel information, extracting only an image of the selected area with reference to the area information, and generating a graphic file. How to edit a file. 제 1 항 또는 제 2 항에 있어서, 상기 그래픽 파일이 JPEG 파일인 것을 특징으로 하는 그래픽 파일 편집 방법.3. A graphic file editing method according to claim 1 or 2, wherein said graphic file is a JPEG file.
KR1020050113972A 2005-11-28 2005-11-28 Method for editing graphic file KR20070055701A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020050113972A KR20070055701A (en) 2005-11-28 2005-11-28 Method for editing graphic file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020050113972A KR20070055701A (en) 2005-11-28 2005-11-28 Method for editing graphic file

Publications (1)

Publication Number Publication Date
KR20070055701A true KR20070055701A (en) 2007-05-31

Family

ID=38276989

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020050113972A KR20070055701A (en) 2005-11-28 2005-11-28 Method for editing graphic file

Country Status (1)

Country Link
KR (1) KR20070055701A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20220112608A (en) * 2021-02-04 2022-08-11 (주)비케이 Method for changing style and replaying of vector image

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20220112608A (en) * 2021-02-04 2022-08-11 (주)비케이 Method for changing style and replaying of vector image

Similar Documents

Publication Publication Date Title
RU2368005C2 (en) Method for processing of digital image (versions)
KR100727974B1 (en) Method and apparatus for making thumbnails out of digital image
US7773816B2 (en) Systems and methods for decoding large images
JP2000278685A (en) Method for processing variable length encoded binary bit stream
JP2005277908A (en) Image processor, image processing method thereof, and portable telephone with camera
TW200937875A (en) Compression system for a bit-plane
JP2004173125A (en) Encoding and decoding device, encoding and decoding program, and storage medium
KR20070055701A (en) Method for editing graphic file
KR100826943B1 (en) Method and apparatus for processing jpeg image, and record media recored program for realizing the same
KR20040054115A (en) Thumbnail image generation and browsing method for mobile communication device
JP2006005478A (en) Image encoder and image decoder
KR20090132535A (en) Method for processing digita image and eletric device for the same
US20110286663A1 (en) Method And Apparatus Of Color Image Rotation For Display And Recording Using JPEG
KR100611903B1 (en) Method for saving flash memory of mobile communication terminal
JPH11284840A (en) Image forming device
JP2005235029A (en) Image demagnification method and device, and program
JP3247893B2 (en) Image encoding device and image decoding device
JP2008125020A (en) Image encoding device and control method thereof
KR20040052176A (en) Image compression encoding method and system
KR20070013784A (en) The device for scanning several photos fast and method for controlling the same
JPH11122497A (en) Image encoding device and image decoding device

Legal Events

Date Code Title Description
WITN Withdrawal due to no request for examination