KR101869302B1 - Raster image conversion apparatus, image scanning apparatus, method for conversion of raster image, and computer-readable recording medium - Google Patents

Raster image conversion apparatus, image scanning apparatus, method for conversion of raster image, and computer-readable recording medium Download PDF

Info

Publication number
KR101869302B1
KR101869302B1 KR1020120035063A KR20120035063A KR101869302B1 KR 101869302 B1 KR101869302 B1 KR 101869302B1 KR 1020120035063 A KR1020120035063 A KR 1020120035063A KR 20120035063 A KR20120035063 A KR 20120035063A KR 101869302 B1 KR101869302 B1 KR 101869302B1
Authority
KR
South Korea
Prior art keywords
meta
generating
background
raster image
divided
Prior art date
Application number
KR1020120035063A
Other languages
Korean (ko)
Other versions
KR20130054899A (en
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 US13/670,973 priority Critical patent/US20130128324A1/en
Priority to EP12193139.8A priority patent/EP2597616A3/en
Publication of KR20130054899A publication Critical patent/KR20130054899A/en
Application granted granted Critical
Publication of KR101869302B1 publication Critical patent/KR101869302B1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/46Colour picture communication systems
    • H04N1/56Processing of colour picture signals
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T9/00Image coding
    • G06T9/20Contour coding, e.g. using detection of edges
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/26Segmentation of patterns in the image field; Cutting or merging of image elements to establish the pattern region, e.g. clustering-based techniques; Detection of occlusion

Abstract

래스터 이미지 변환 방법이 개시된다. 본 래스터 이미지 변환 방법은, 래스터 이미지에서 배경 영역, 단색 영역 및 다색 영역으로 구분하는 단계, 구분된 영역 각각에 대응되는 메타 명령어를 생성하는 단계, 및, 생성된 메타 명령어를 기초로 메타 파일을 생성하는 단계를 포함하고, 메타 명령어를 생성하는 단계는, 구분된 단색 영역의 윤곽을 벡터화하고, 벡터화된 윤곽에 대응되는 메타 명령어를 생성한다. A raster image conversion method is disclosed. The raster image conversion method includes dividing a raster image into a background area, a monochrome area, and a multicolor area, generating a meta command corresponding to each of the divided areas, and generating a meta file based on the generated meta command Wherein generating the meta-instructions comprises vectorizing the outlines of the segmented monochrome regions and generating meta-instructions corresponding to the vectorized outlines.

Description

래스터 이미지 변환 장치, 화상독취장치, 래스터 이미지 변환 방법 및 컴퓨터 판독가능 기록매체{RASTER IMAGE CONVERSION APPARATUS, IMAGE SCANNING APPARATUS, METHOD FOR CONVERSION OF RASTER IMAGE, AND COMPUTER-READABLE RECORDING MEDIUM}BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a raster image conversion apparatus, a raster image conversion method, and a computer readable recording medium,

본 발명은 래스터 이미지 변환 장치, 화상독취장치, 래스터 이미지 변환 방법 및 컴퓨터 판독가능 기록매체에 관한 것으로, 보다 구체적으로는 래스터 이미지를 전자 양식의 메타 파일로 변환할 수 있는 래스터 이미지 변환 장치, 화상독취장치, 래스터 이미지 변환 방법 및 컴퓨터 판독가능 기록매체에 관한 것이다. BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a raster image conversion apparatus, a raster image conversion method, and a computer readable recording medium, and more particularly to a raster image conversion apparatus, A method of converting a raster image, and a computer-readable recording medium.

래스터 이미지를 전자 양식으로 변환하는 최근의 방법들은 저장 및 표시에 있어서는 편리한 점이 있지만, 빈번히 발생하는 다음과 같은 상호 모순적인 두 가지 과제를 해소하는 것이 요구된다. Recent methods of converting raster images into electronic forms are convenient for storing and displaying, but it is required to solve the following two common contradictory problems that occur frequently.

첫 번째 과제는 가능한 작은 용량으로 양식에 정보를 저장하는 것이고, 두 번째 과제는 소스 이미지를 전자 양식으로 변환하는 과정에서 소스 이미지의 열화를 방지하는 것이다. The first task is to store information on the form in as small a capacity as possible, and the second task is to prevent the source image from degrading in the process of converting the source image to electronic form.

이러한 이미지 변환 방법 중 가장 널리 알려진 기술은 MRC(Mixed Raster Content)(예로써, ISO/IEC JTC1/SC29/WG1 N542,“ITU-T Mixed Raster Content model as JPEG 2000 Architectural Framework”, June 30, 1997 참조)이다. 이 방법은 이미지의 표현을 다층 모델로 이용하고, 각 층별로 다른 압축 방법을 사용하여 파일의 크기를 줄인다. The most widely known technique among these image conversion methods is the Mixed Raster Content (MRC) (see, for example, ISO / IEC JTC1 / SC29 / WG1 N542, "ITU-T Mixed Raster Content Model as JPEG 2000 Architectural Framework" )to be. This method uses the representation of images as a multi-layered model and uses different compression methods for each layer to reduce the file size.

하지만, MRC 알고리즘은 초기 래스터 이미지에 표출되어 있는 벡터 그래픽의 매핑 특징을 고려하지 않는다. 예를 들어, 심볼을 매핑하고 인쇄하는 초기 전자 텍스트 문서가 그것의 스케일(scale)에 의존되지 않는다면, MRC의 수단에서 변형되는 스캔된 텍스트의 심볼의 매핑은 디스플레이의 스케일에 의존하게 된다. However, the MRC algorithm does not consider the mapping characteristics of the vector graphics displayed in the initial raster image. For example, if the initial electronic text document that maps and prints does not depend on its scale, the mapping of the symbols of the scanned text that is modified in the means of MRC will depend on the scale of the display.

또한, 전자 양식에서 다층 분석과 래스터 이미지의 저장을 위해 알려진 방법들은 별개의 층에서 모든 래스터 이미지를 선택한다는 점에 주목할 필요가 있다. 따라서 소스 이미지에 래스터 그래픽의 중요하지 않은 구성 요소가 있더라도, 전체 문서의 크기와 비슷한 크기인 래스터 층이 문서에 저장되었다. It should also be noted that known methods for multi-layer analysis and storage of raster images in electronic form select all raster images in separate layers. Thus, even if the source image contains non-critical components of raster graphics, the raster layer, which is similar in size to the entire document, was stored in the document.

미국 특허 출원 2011007334에는 파일 크기를 축소하는 방법이 개시되어 있다. 스캔된 이미지상에 텍스트 벡터화를 위한 방법과 시스템이 해당 특허 출원의 기술적 해결 과제에 기재되어 있으며, 심볼의 원활한 맵핑을 제공하기 위하여 벡터화 방법을 제시한다. 그러나 이 방법은 스캔된 이미지에 표시되는 텍스트만이 분석되기 때문에, 벡터화 절차는 이미지의 다른 요소와 무관한 것으로 여겨진다는 단점이 있다. U.S. Patent Application 2011007334 discloses a method for reducing file size. A method and system for text vectorization on scanned images is described in the technical solution of the patent application, and a vectorization method is presented to provide smooth mapping of the symbols. However, this method has the disadvantage that the vectorization procedure is considered to be independent of other elements of the image, since only the text displayed on the scanned image is analyzed.

미국 특허 7289122에는 베지어 커브(Bezier curves)를 이용하여 그래픽 객체를 적용하는 방법을 개시하고 있다. 그러나 이 방법은 근사치 계산 방법만을 다루는 단점이 있기 때문에 전체 이미지를 전자 문서 양식으로 변환할 때에는 고려하지 않는다고 기재되어 있다. U.S. Patent No. 7289122 discloses a method of applying graphic objects using Bezier curves. However, this method does not take into consideration when converting an entire image into an electronic document format because it has the disadvantage of handling only the approximate calculation method.

본 발명은 래스터 이미지를 전자 양식의 메타 파일로 변환할 수 있는 래스터 이미지 변환 장치, 화상독취장치, 래스터 이미지 변환 방법 및 컴퓨터 판독가능 기록매체를 제공하는 데 있다. An object of the present invention is to provide a raster image conversion apparatus, image reading apparatus, raster image conversion method, and computer readable recording medium capable of converting a raster image into an electronic form metafile.

이상과 같은 목적을 달성하기 위한 본 실시 예에 따른 래스터 이미지 변환 방법은, 상기 래스터 이미지에서 배경 영역, 단색 영역 및 다색 영역으로 구분하는 단계, 상기 구분된 영역 각각에 대응되는 메타 명령어를 생성하는 단계, 및, 상기 생성된 메타 명령어를 기초로 메타 파일을 생성하는 단계를 포함하고, 상기 메타 명령어를 생성하는 단계는, 상기 구분된 단색 영역의 윤곽을 벡터화하고, 상기 벡터화된 윤곽에 대응되는 메타 명령어를 생성한다. In order to achieve the above object, a raster image converting method according to an embodiment of the present invention includes dividing a raster image into a background region, a monochromatic region, and a multicolor region, generating a meta command corresponding to each of the divided regions, And generating a meta-file based on the generated meta-instruction, wherein the generating of the meta-instruction comprises: vectoring the outline of the segmented monochrome area, generating a meta-instruction corresponding to the vectorized outline, .

이 경우, 본 래스터 이미지 변화 방법은, 상기 구분된 배경 영역을 단색 배경, 그라데이션 배경 및 다색 배경 중 하나로 결정하는 단계를 더 포함하고, 상기 메타 명령어를 생성하는 단계는, 상기 결정된 배경 영역이 단색 배경이면, 상기 배경 영역의 색을 갖는 직사각형을 묘사하는 메타 명령어를 생성하고, 상기 결정된 배경 영역이 그라데이션 배경이면, 상기 배경 영역에 대응되는 색의 경사 방향 및 타입을 결정하는 메타 명령어를 생성할 수 있다. In this case, the method of changing the raster image further comprises the step of determining the separated background area as one of a monochrome background, a gradient background and a multicolor background, and the step of generating the meta-instruction comprises: A meta command for describing a rectangle having a color of the background area is generated and if the determined background area is a gradient background, a meta command for determining the oblique direction and type of the color corresponding to the background area can be generated .

이 경우, 상기 메타 파일을 생성하는 단계는, 상기 결정된 배경 영역이 다색 배경이면, 상기 배경 영역에 대응되는 래스터 이미지를 포함하는 메타 파일을 생성할 수 있다. In this case, if the determined background region is a multicolor background, the generating of the meta file may generate a meta file including a raster image corresponding to the background region.

한편, 본 래스터 이미지 변환 방법은, 상기 구분된 배경 영역에 적용될 투명도를 결정하는 단계를 더 포함하고, 상기 메타 파일을 생성하는 단계는, 상기 결정된 투명도에 대응되는 메타 명령어를 포함하는 메타 파일을 생성할 수 있다. The raster image converting method may further include determining transparency to be applied to the divided background area, wherein the generating of the meta file includes generating a meta file including a meta command corresponding to the determined transparency can do.

한편, 본 래스터 이미지 변환 방법은, 상기 구분된 다색 영역에 대응되는 래스터 이미지의 해상도를 변환하는 단계를 더 포함하고, 상기 메타 파일을 생성하는 단계는, 상기 해상도가 변경된 래스터 이미지를 포함하는 메타 파일을 생성할 수 있다. The raster image converting method may further include converting a resolution of the raster image corresponding to the divided multi-color area, wherein the step of generating the meta file includes a step of converting the resolution of the meta file Can be generated.

이 경우, 본 래스터 이미지 변환 방법은, 상기 구분된 다색 영역의 형태를 결정하는 단계, 및, 상기 결정된 형태가 직사각형이 아니면, 상기 구분된 다색 영역을 복수의 직사각형 구역으로 구분하는 단계를 더 포함하고, 상기 해상도를 변환하는 단계는, 상기 구분된 복수의 사각형 구역 각각에 대응되는 복수의 래스터 이미지의 해상도를 변환할 수 있다. In this case, the raster image converting method further includes a step of determining the shape of the divided polychrome area, and if the determined shape is not a rectangle, dividing the divided polychrome area into a plurality of rectangular areas , And the step of converting the resolution may convert the resolution of the plurality of raster images corresponding to each of the plurality of divided rectangular areas.

이 경우, 상기 메타 명령어를 생성하는 단계는, 상기 구분된 복수의 사각형 구역 각각에 대응되는 메타 명령어를 생성할 수 있다. In this case, the step of generating the meta-instruction may generate a meta-instruction corresponding to each of the plurality of divided rectangular areas.

한편, 상기 메타 명령어를 생성하는 단계는, 상기 구분된 단색 영역의 윤곽을 검출하는 단계, 상기 검출된 윤곽을 간소화하는 단계, 및, 상기 간소화된 윤곽에 대응되는 메타 명령어를 생성하는 단계를 포함할 수 있다.On the other hand, the step of generating the meta-instruction may include detecting an outline of the segmented monochrome region, simplifying the detected outline, and generating a meta-instruction corresponding to the simplified outline .

한편, 상기 검출된 윤곽을 간소화하는 단계는, 상기 검출된 윤곽을 직선 및 베지어 커브만으로 간소화할 수 있다. On the other hand, the step of simplifying the detected contour may simplify the detected contour by only a straight line and a Bezier curve.

한편, 본 래스터 이미지 변환 방법은, 상기 생성된 메타 명령어를 압축하는 단계를 더 포함하고, 상기 메타 파일을 생성하는 단계는, 상기 압축된 메타 명령어를 기초로 메타 파일을 생성할 수 있다. Meanwhile, the raster image converting method may further include compressing the generated meta-command, and the generating the meta file may generate a meta file based on the compressed meta-command.

한편, 본 실시 예에 따른 래스터 이미지 변환 장치는, 래스터 이미지를 입력받는 통신 인터페이스부, 상기 입력받은 래스터 이미지를 배경 영역, 단색 영역 및 다색 영역으로 구분하고, 상기 구분된 영역 각각에 대응되는 메타 명령어를 생성하는 명령어 생성부, 및, 상기 생성된 메타 명령어를 기초로 메타 파일을 생성하는 파일 생성부를 포함하고, 상기 명령어 생성부는, 상기 구분된 단색 영역의 윤곽을 벡터화하고, 상기 벡터화된 윤곽에 대응되는 메타 명령어를 생성한다. Meanwhile, the raster image conversion apparatus according to the present embodiment includes a communication interface unit for receiving a raster image, a control unit for dividing the input raster image into a background region, a monochrome region and a multicolor region, And a file generation unit for generating a metafile based on the generated meta-instruction, wherein the command generation unit performs vectorization of the outline of the separated monochromatic area, and generates a vectorized outline corresponding to the vectorized outline To generate the meta-instruction.

이 경우, 상기 명령어 생성부는, 상기 구분된 배경 영역을 단색 배경, 그라데이션 배경 및 다색 배경 중 하나로 결정하고, 상기 결정된 배경 영역이 단색 배경이면, 상기 배경 영역의 색을 갖는 직사각형을 묘사하는 메타 명령어를 생성하고, 상기 결정된 배경 영역이 그라데이션 배경이면, 상기 배경 영역에 대응되는 색의 경사 방향 및 타입을 결정하는 메타 명령어를 생성할 수 있다. In this case, the command generation unit may determine the separated background area as one of a monochrome background, a gradient background, and a multicolor background, and if the determined background area is a monochrome background, a meta command describing a rectangle having a color of the background area And if the determined background area is a gradation background, a meta command for determining an oblique direction and a type of a color corresponding to the background area can be generated.

이 경우, 상기 파일 생성부는, 상기 결정된 배경 영역이 다색 배경이면, 상기 배경 영역에 대응되는 래스터 이미지를 포함하는 메타 파일을 생성할 수 있다. In this case, if the determined background area is a multicolor background, the file generator may generate a meta file including a raster image corresponding to the background area.

한편, 상기 명령어 생성부는, 상기 구분된 단색 영역의 윤곽을 검출하고, 상기 검출된 윤곽을 간소화하고, 상기 간소화된 윤곽에 대응되는 메타 명령어를 생성할 수 있다. Meanwhile, the command generation unit may detect an outline of the divided monochrome area, simplify the detected outline, and generate a meta command corresponding to the simplified outline.

한편, 상기 파일 생성부는, 상기 생성된 메타 명령어를 압축하고, 상기 압축된 메타 명령어를 기초로 메타 파일을 생성할 수 있다. Meanwhile, the file generation unit may compress the generated meta-commands and generate a meta file based on the compressed meta-commands.

한편, 본 실시 예에 따른 화상독취장치는, 원고를 스캔하여 래스터 이미지를 생성하는 스캔부, 상기 생성된 래스터 이미지를 배경 영역, 단색 영역 및 다색 영역으로 구분하고, 상기 구분된 영역 각각에 대응되는 메타 명령어를 생성하는 명령어 생성부, 및, 상기 생성된 메타 명령어를 기초로 메타 파일을 생성하는 파일 생성부를 포함하고, 상기 명령어 생성부는, 상기 구분된 단색 영역의 윤곽을 벡터화하고, 상기 벡터화된 윤곽에 대응되는 메타 명령어를 생성한다. On the other hand, the image reading apparatus according to the present embodiment includes a scan unit for scanning a document to generate a raster image, a process for dividing the generated raster image into a background region, a monochromatic region, and a multicolor region, And a file generation unit for generating a meta file based on the generated meta command, wherein the command generation unit performs vectorization of the outline of the separated monochrome area, Lt; RTI ID = 0.0 > meta < / RTI >

이 경우, 상기 명령어 생성부는, 상기 구분된 배경 영역을 단색 배경, 그라데이션 배경 및 다색 배경 중 하나로 결정하고, 상기 결정된 배경 영역이 단색 배경이면, 상기 배경 영역의 색을 갖는 직사각형을 묘사하는 메타 명령어를 생성하고, 상기 결정된 배경 영역이 그라데이션 배경이면, 상기 배경 영역에 대응되는 색의 경사 방향 및 타입을 결정하는 메타 명령어를 생성할 수 있다. In this case, the command generation unit may determine the separated background area as one of a monochrome background, a gradient background, and a multicolor background, and if the determined background area is a monochrome background, a meta command describing a rectangle having a color of the background area And if the determined background area is a gradation background, a meta command for determining an oblique direction and a type of a color corresponding to the background area can be generated.

한편, 상기 명령어 생성부는, 상기 구분된 단색 영역의 윤곽을 검출하고, 상기 검출된 윤곽을 간소화하고, 상기 간소화된 윤곽에 대응되는 메타 명령어를 생성할 수 있다. Meanwhile, the command generation unit may detect an outline of the divided monochrome area, simplify the detected outline, and generate a meta command corresponding to the simplified outline.

이 경우, 상기 명령어 생성부는, 상기 검출된 윤곽을 직선 및 베지어 커브만으로 간소화하는 것이 바람직하다. In this case, it is preferable that the command generation unit simplify the detected contour by only a straight line and a Bezier curve.

한편, 본 실시 예에 따른 래스터 이미지 변환 방법을 실행하기 위한 프로그램을 포함하는 컴퓨터 판독가능 기록매체에 있어서, 상기 래스터 이미지 변환 방법은, 상기 래스터 이미지에서 배경 영역, 단색 영역 및 다색 영역으로 구분하는 단계, 상기 구분된 영역 각각에 대응되는 메타 명령어를 생성하는 단계, 및, 상기 생성된 메타 명령어를 기초로 메타 파일을 생성하는 단계를 포함하고, 상기 메타 명령어를 생성하는 단계는, 상기 구분된 단색 영역의 윤곽을 벡터화하고, 상기 벡터화된 윤곽에 대응되는 메타 명령어를 생성한다. On the other hand, in the computer-readable recording medium including the program for executing the raster image conversion method according to the present embodiment, the raster image conversion method includes the steps of dividing the raster image into the background region, the monochromatic region, Generating a meta-instruction corresponding to each of the divided regions, and generating a meta-file based on the generated meta-instruction, wherein the generating the meta-instruction comprises: And generates a meta-instruction corresponding to the vectorized outline.

도 1은 본 실시 예에 따라 래스터 이미지를 메타 파일로 변환하는 방법을 설명하기 위한 흐름도,
도 2는 래스터 이미지의 예를 도시한 도면,
도 3은 메타 파일이 표시될 때 영역에 있는 각 카테고리의 시각화 순서를 도시한 도면,
도 4는 도 1의 방법을 구현하는 컴퓨터 시스템의 구성을 도시한 블록도,
도 5는 도 1의 다색 영역을 저장하는 단계를 구체적으로 설명하기 위한 흐름도,
도 6은 도 1의 단색 영역의 저장 단계를 구체적으로 설명하기 위한 흐름도,
도 7은 영역의 윤곽을 추적하는 동작의 예를 설명하기 위한 도면,
도 8은 한정된 예비 중요 포인트가 위치된 윤곽의 구간을 계산하는 방법의 예가 도시된 도면,
도 9는 단색 영역의 예에 해당하는 윤곽의 핵심 점을 감지하는 과정을 설명하기 위한 도면,
도 10은 단색 영역에 있는 단순화된 윤곽의 예를 도시한 도면,
도 11은 윤곽의 근사치를 도출하는 절차를 설명하기 위한 흐름도,
도 12는 단순화된 윤곽의 키 포인트에 있는 좌표들이 수정된 예를 도시한 도면,
도 13은 베지어 커브의 예를 도시한 도면,
도 14는 베지어 커버의 체크 포인트에 대한 계산 과정을 설명하기 위한 도면,
도 15는 베지어 커브의 근사치를 도출하는 과정을 설명하기 위한 도면,
도 16은 연속된 베지어 커브에 의해 이루어지는 단색 여역에 있는 커브의 근사치의 예를 도시한 도면,
도 17은 초기 래스터 이미지 내의 단색 영역을 확대하여 표시한 이미지와 근사치 돌출 이후에 단색 영역의 매핑 결과를 도시한 도면,
도 18은 본 발명의 일 실시 예에 따른 래스터 이미지 변환 장치의 구성을 도시한 블록도, 그리고,
도 19는 본 발명의 일 실시 예에 따른 화상독취장치의 구성을 도시한 블록도이다.
1 is a flowchart for explaining a method of converting a raster image into a metafile according to the present embodiment,
2 shows an example of a raster image,
3 shows a visualization sequence of each category in a region when a metafile is displayed,
Figure 4 is a block diagram illustrating the configuration of a computer system implementing the method of Figure 1;
FIG. 5 is a flowchart specifically illustrating a step of storing the multicolor area of FIG. 1;
FIG. 6 is a flowchart specifically illustrating the storing step of the monochromatic region of FIG. 1;
7 is a diagram for explaining an example of an operation for tracking the outline of an area,
8 is a diagram illustrating an example of a method for calculating an interval of an outline in which a limited preliminary important point is located,
9 is a diagram for explaining a process of detecting a key point of an outline corresponding to an example of a monochrome area,
Figure 10 is an illustration of an example of a simplified outline in a monochromatic region,
11 is a flowchart for explaining a procedure for deriving an approximation of an outline,
Figure 12 shows an example in which the coordinates at the key point of the simplified outline are modified,
13 is a diagram showing an example of a Bezier curve,
14 is a diagram for explaining a calculation process for a check point of a Bezier cover,
15 is a diagram for explaining a process of deriving an approximate value of a Bezier curve,
16 is a diagram showing an example of an approximation of a curve in a monochromatic region made up of continuous Bézier curves,
17 is a view showing an image obtained by enlarging and displaying a monochrome area in an initial raster image and a result of mapping a monochrome area after an approximate protrusion;
18 is a block diagram showing a configuration of a raster image conversion apparatus according to an embodiment of the present invention,
19 is a block diagram showing the configuration of a picture reading apparatus according to an embodiment of the present invention.

이하 첨부된 도면들을 참조하여 본 발명의 실시 예를 더욱 상세하게 설명한다. Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings.

먼저, 이하에서 사용할 용어의 명확한 해석을 위하여, 메타 파일은 다양한 종류(특히, 래스터 및 벡터 데이터 종류)의 데이터가 저장되는 파일의 형태라는 점을 명시한다. 일반적으로, 메타 파일 구조는 가능한 일련의 아규먼트(argument)를 가지고 있는 명령어(메타 파일 엔트리(metafile entries))의 시퀀스(또는 시퀀스 리스트)로 표시될 수 있다. 메타 파일의 실행시에 각 명령어에 대응되는 특정 작업(예를 들어, 선(line) 구간의 시각화, 래스터 이미지의 조각의 매핑 등)이 수행된다. 예를 들어, 메타 파일은 PDF(Portable Document Format), XPS(XML Paper Specification), PS(PostScript), EMF(Enhanced Metafile) 등일 수 있으나, 이에 한정되지 않는다. First, for a clear interpretation of the terms to be used below, it is specified that the metafile is a file type in which data of various kinds (in particular, raster and vector data types) are stored. In general, a metafile structure may be represented as a sequence (or sequence list) of instructions (metafile entries) having a possible set of arguments. At the time of execution of the metafile, specific tasks corresponding to each command (for example, visualization of a line section, mapping of pieces of a raster image, etc.) are performed. For example, the metafile may be, but is not limited to, Portable Document Format (PDF), XML Paper Specification (XPS), PostScript (PS), Enhanced Metafile (EMF)

도 1은 본 실시 예에 따라 래스터 이미지를 메타 파일로 변환하는 방법을 설명하기 위한 흐름도이다. 1 is a flowchart for explaining a method of converting a raster image into a metafile according to the present embodiment.

도 1을 참조하면, 래스터 이미지를 준비한다(101). 구체적으로, 먼저 문서를 캡쳐하거나 스캔하여 래스터 이미지를 생성하거나, 특정 외부 장치로부터 생성된 래스터 이미지를 수신할 수 있다. Referring to FIG. 1, a raster image is prepared (101). Specifically, a document can first be captured or scanned to generate a raster image, or a raster image generated from a specific external device can be received.

그리고 래스터 이미지의 배경 영역과 배경 타입을 감지한다(102). 본 실시 예에서의 배경 타입은 단색 배경, 그라데이션 배경, 다색 배경 중 하나인 것으로 설명한다. 여기서 단색 배경은 (대략) 동일한 강도 및 색을 갖는 배경 영역이고, 그라데이션 배경은 밝기와 색의 변화가 일정한(구체적인 함수로 표시될 수 있는) 배경 영역이다. 그리고 다색 배경은 단색 배경 및 그라데이션 배경에 해당하지 않는 래스터 이미지의 배경 영역이다. 예를 들어, 문자를 포함하는 래스터 이미지의 배경은 다색 배경으로 구분될 수 있다. The background area and the background type of the raster image are sensed (102). The background type in this embodiment is described as being one of a monochrome background, a gradient background, and a multicolor background. Here, a monochrome background is a background area having (approximately) the same intensity and color, and a gradation background is a background area in which the change in brightness and color is constant (can be expressed by a specific function). And a multicolor background is a background area of a raster image that does not correspond to a solid background and a gradient background. For example, the background of a raster image containing characters may be separated by a multicolored background.

식별된 배경을 선택된 메타 파일의 포맷에 대응되는 메타언어의 명령어(또는 메타 명령어)로 정의한다(103). 예를 들어 배경의 각 종류에 대해서 메타 파일의 명령어로 지칭하는 것이 가능하다. 그러나 본원이 이에 한정되는 것이 아니다. The identified background is defined as a command (or meta-command) of the meta-language corresponding to the format of the selected meta file (103). For example, it is possible to refer to each type of background as a command in the metafile. However, the present invention is not limited thereto.

단색 배경은 배경색(background color)을 나타내는 메타 파일의 명령어로 정의할 수 있다. 그리고 그라데이션 배경은 경사 방향, 밝기 또는 색의 범위를 나타내는 메타 파일의 명령어로 정의될 수 있다. 그리고 다색 배경은 메타 파일 내에 저장되는 배경 래스터 이미지에 대응될 수 있다. A solid background can be defined as a command in the metafile that indicates the background color. And the gradient background may be defined as a command in the metafile indicating the range of the oblique direction, brightness, or color. And a multicolor background may correspond to a background raster image stored within the metafile.

한편, 배경은 생성하는 과정에서 매핑되어 있지 않은 투명도를 메타 파일의 실행(또는 재생)시에 가질 수 있다. 즉, 상술하는 과정에서는 배경에 투명도가 적용되는 것에 대해서는 설명하지 않았지만, 구현시에는 배경에 투명도가 설정되는 형태로도 구현될 수 있다. 또한, 구현시에는 상술한 변형뿐만 아니라 다른 부분에서의 변형도 가능하다. On the other hand, the background may have transparency that is not mapped during the creation process at the time of executing (or reproducing) the metafile. In other words, although transparency is not applied to the background in the above-described process, transparency may be set in the background at the time of implementation. In addition, at the time of implementation, not only the above-described deformation but also deformation at other portions is possible.

그리고 래스터 이미지 또는 복잡한 그림을 포함하는 다색 영역을 감지한다(104). 여기서 다색 영역은 초기 래스터 이미지의 일 부분에 한정된 래스터 이미지의 일관성 있는 화소(또는 포인트) 그룹이다. And detects a multicolor area including a raster image or a complex picture (104). Wherein the multicolor region is a group of coherent pixels (or points) of the raster image defined in a portion of the initial raster image.

감지된 다색 영역은 메타 파일의 적절한 명령어를 수반하는 래스터 이미지로 메타 파일에 저장된다(105). 이때, 각 다색 영역의 매개 변수와 이미지 내에서 그 변수들의 위치를 정의하는 작업도 수행된다. The sensed polychrome region is stored in the metafile (105) as a raster image with appropriate instructions of the metafile. At this time, the task of defining the parameters of each multicolour region and the positions of the variables in the image is also performed.

그리고 상호 밀접하게 연결되어 있는 단색 영역(즉, 대략 동일한 밝기와 색으로 이루어진 영역)을 감지한다(106). 이 단계에서 단색 영역은 메타 파일에 있는 벡터 그래픽 구성 요소를 매핑하는 일련의 그래픽 명령어로 정의할 수 있다. 이때, 단색 영역의 형태에 대한 근사치를 도출하는 작업이 수행될 수 있다. And senses a monochromatic region (i.e., a region of approximately the same brightness and color) closely connected to each other (106). At this stage, the monochrome region can be defined as a series of graphical commands that map the vector graphic components in the metafile. At this time, an operation of deriving an approximation to the shape of the monochromatic region can be performed.

그리고 벡터화된 단색 영역의 결과가 메타 파일에 저장된다(107). The result of the vectorized monochrome region is stored in the metafile (107).

한편, 도 1을 설명함에 있어서, 배경 영역, 단색 영역 및 다색 영역이 개별적으로 감지되는 것으로 설명하였지만, 각 영역은 한 단계에서 일괄적으로 감지될 수 있다. 그리고 도 1을 설명함에 있어서, 메타 파일에 저장하는 단계가 각 영역별로 별도로 수행되는 것으로 도시하고 설명하였지만, 각 영역에 대한 저장 단계는 하나의 단계에서 일괄적으로 수행될 수도 있다. In the description of FIG. 1, the background region, the monochromatic region, and the multicolor region are separately detected, but each region can be detected in one step at a time. In the description of FIG. 1, the step of storing in the meta file is separately performed for each area, but the storing step for each area may be performed collectively in one step.

이상과 같이 본 실시 예에 따른 래스터 이미지를 메타 파일로 변환하는 방법은 메타 파일의 크기를 줄일 수 있다. 구체적으로, 메타 파일 내에 래스터 이미지 자체가 저장되는 것이 아니라는 점에서, 품질 손실 없는 압축이 가능하다. As described above, the method of converting the raster image into the metafile according to the present embodiment can reduce the size of the metafile. Specifically, compression without loss of quality is possible in that the raster image itself is not stored in the metafile.

이와 같이 본 실시 예에 따른 래스터 이미지 변환 방법은 파일의 품질 대비 크기 과점에서 효과적인 접근 방법을 제시한다. 구체적으로, 각 영역별로 가장 적절한 방법에 의하여 저장을 수행하기 때문이다. 특히, 단색 영역의 벡터에 의한 묘사는 시각화의 범위(또는 예를 들어, 인쇄의 범위)로부터 단색 영역의 매핑의 독립성을 제공한다. 구체적으로, 보통의 래스터 이미지에 대한 확대는 이미지의 열화를 유발하나, 본 실시 예에 따른 래스터 이미지 변환 방법은 단색 영역에 대한 벡터화를 수행하는바 이미지가 확대되더라도 이미지의 열화를 유발하지 않게 된다. As described above, the raster image converting method according to the present embodiment proposes an effective approach to the quality of the file in terms of magnitude. Specifically, the storage is performed by the most appropriate method for each area. In particular, rendering by a vector of monochromatic regions provides independence of mapping of monochromatic regions from the extent of the visualization (or range of printing, for example). Specifically, enlargement of a normal raster image causes deterioration of an image, but the raster image conversion method according to the present embodiment does not cause deterioration of an image even if the image is enlarged to perform vectorization for a monochromatic area.

한편, 상술한 바와 같은 래스터 이미지 변환 방법은, 상술한 바와 같은 래스터 이미지 변환 방법을 실행하기 위한 적어도 하나의 실행 프로그램으로 구현될 수 있으며, 이러한 실행 프로그램은 컴퓨터 판독 기록매체에 저장될 수 있다. On the other hand, the raster image conversion method as described above can be implemented as at least one executable program for executing the raster image conversion method as described above, and the executable program can be stored in a computer readable recording medium.

따라서, 본 발명의 각 블록들은 컴퓨터 판독가능한 기록매체 상의 컴퓨터 기록 가능한 코드로써 실시될 수 있다. 컴퓨터 판독가능한 기록매체는 컴퓨터시스템에 의해 판독될 수 있는 데이터를 저장할 수 있는 디바이스가 될 수 있다. Thus, each block of the present invention may be embodied as computer-writable code on a computer-readable recording medium. The computer-readable recording medium may be a device capable of storing data that can be read by a computer system.

도 2는 래스터 이미지의 예를 나타낸다. Figure 2 shows an example of a raster image.

도 2를 참조하면, 래스터 이미지는 배경 영역(201), 단색 영역(202, 205), 직사각형 모양의 다색 영역(203) 그리고 직사각형이 아닌 다색 영역(204)으로 구성된다. 2, the raster image is composed of a background region 201, monochrome regions 202 and 205, a rectangular multicolor region 203, and a non-rectangular multicolor region 204.

도 3은 메타 파일이 표시될 때 영역에 있는 각 카테고리의 시각화 순서를 나타내는 도면이다. 한편, 영역이 저장되는 순서는 도 1에 도시된 것처럼 각 영역의 시각화 순서에 대응된다. 예를 들어, 메타 파일의 시각화는 투명 혹은 반투명한 층이나 영역과 서로 오버레이되면서 자주 발생한다. 메타 파일이 맵핑되는 동안 배경 영역(303)은 아래층이 되고, 다색 영역(302)과 단색 영역 (301)은 배경 영역(303) 위에 오버레이된다.3 is a diagram showing a visualization sequence of each category in a region when a metafile is displayed. On the other hand, the order in which the regions are stored corresponds to the visualization order of each region as shown in Fig. For example, the visualization of a metafile often occurs when overlaid with transparent or translucent layers or areas. The background area 303 becomes the lower layer while the meta file is mapped and the multicolor area 302 and the monochrome area 301 are overlaid on the background area 303. [

도 4는 도 1의 방법을 구현하는 컴퓨터 시스템의 구성을 도시한 블록도이다. 4 is a block diagram illustrating the configuration of a computer system that implements the method of FIG.

도 4를 참조하면, 본 실시 예에 따른 래스터 이미지를 메타 파일로 변환하는 컴퓨터 시스템은 초기 래스터 이미지를 입력받는 장치(402), 프로세서(403), 프로그램(405)의 명령어를 저장하는 메모리(404)로 구성된다. 그리고 시스템 구성 단위들 사이의 데이터 전송은 데이터 전송 버스(401)를 이용해서 수행된다. 4, a computer system for converting a raster image into a metafile according to the present embodiment includes a device 402 for receiving an initial raster image, a processor 403, a memory 404 for storing instructions of the program 405 ). And data transfer between the system constituent units is performed using the data transfer bus 401.

입력장치(402)는 초기 래스터 이미지를 입력받거나 생성하는 장치로, 디지털 카메라, 스크린 샷을 저장하는 메모리 등으로 구현될 수 있다. 프로그램 명령의 수행 결과로 생성된 메타 파일은 메모리에 저장되는데, 메모리에 저장되는 메타 파일은 프린터 또는 디스플레이 장치에 전송될 수 있으며, 별도의 저장 장치에 저장될 수 있다. The input device 402 may be a device for receiving or generating an initial raster image, such as a digital camera, a memory for storing screen shots, or the like. The metafile generated as a result of the execution of the program command is stored in the memory. The metafile stored in the memory may be transmitted to the printer or the display device, and may be stored in a separate storage device.

본 실시 예에서는 4개의 구성만을 포함하는 컴퓨터 시스템에 대해서 도시하고 설명하였지만, 구현시에 컴퓨터 시스템은 상술한 구성 이외의 구성을 포함할 수 있다. 이러한 컴퓨터 시스템은 개인용 PC, 휴대 전화, TV, 복합기 등뿐만 아니라 사용자 그래픽 인터페이스를 사용할 수 있는 어떠한 장치일 수 있다. 이 중 개인용 PC 및 복합기로 구현되는 예에 대해서는 도 18 및 도 19를 참조하여 후술한다. Although the present embodiment has been shown and described with respect to a computer system including only four configurations, the computer system in the implementation may include configurations other than those described above. Such a computer system may be any device capable of using a user's graphic interface as well as a personal computer, a mobile phone, a TV, a multifunction device, and the like. An example of the personal computer and the multifunction peripheral will be described later with reference to FIG. 18 and FIG.

도 5는 도 1의 다색 영역을 저장하는 단계를 구체적으로 설명하기 위한 흐름도이다. FIG. 5 is a flow chart for explaining the step of storing the multicolor area of FIG. 1 in detail.

도 5를 참조하면, 먼저 다색 영역을 감지한다(501). 구체적으로, 다색 영역은 초기 래스터 이미지의 일 부분에 한정된 래스터 이미지의 일관성 있는 화소 그룹인바, 래스터 이미지 내에서 일관성 있는 화소 그룹을 다색 영역으로 감지할 수 있다. Referring to FIG. 5, first, a multi-color area is sensed (501). Specifically, the multicolor area is a group of coherent pixels of a raster image defined in a part of the initial raster image, so that a group of coherent pixels in the raster image can be detected as multicolor areas.

그리고 다색 영역의 형태를 결정한다(502). 구체적으로, 식별된 다색 영역의 형태가 직사각형인지 아닌지를 결정할 수 있다. And determines the shape of the multicolor area (502). Specifically, it is possible to determine whether or not the shape of the identified polychrome region is rectangular.

그리고 결정된 다색 영역의 형태가 직사각형인지 판단한다(503). 구체적으로, 메타 파일에는 직사각형의 이미지만이 저장될 수 있다는 점에서, 다색 영역이 직사각형인지 여부를 판단한다. Then, it is determined whether the determined shape of the polychrome region is a rectangle (503). Specifically, it is judged whether or not the multicolor area is a rectangle in that only a rectangular image can be stored in the meta file.

그리고 다색 영역이 직사각형이 아니면(503-No), 다색 영역에 대한 클리핑 구역을 결정한다. 구체적으로, 상술한 바와 같이 메타 파일에는 직사각형의 이미지만이 저장될 수 있는바, 직사각형이 아닌 다색 영역을 직사각형의 복수의 클리핑 구역으로 구분할 수 있다. 이와 같이 본 실시 예에서는 직사각형이 아닌 다색 영역에 대해서 복수의 클리핑 구역을 결정하는바, 다색 영역에 대한 보다 정확한 매핑이 가능하다. If the polychromatic area is not a rectangle (503-No), the clipping area for the polychromatic area is determined. Specifically, as described above, only a rectangular image can be stored in the meta file, and a polygonal area that is not a rectangle can be divided into a plurality of rectangular clipping areas. As described above, in the present embodiment, a plurality of clipping regions are determined for a polygonal region that is not a rectangle, so that more accurate mapping to a multicolor region is possible.

그리고 기설정된 해상도로 맞추어 다색 영역의 래스터 이미지의 크기를 조절한다(504). 구체적으로, 스캔된 초기 래스터 이미지는 보통 300DPI의 해상도를 갖는데 반해, 디스플레이의 해상도는 72DPI 또는 86DPI이다. 이러한 점에서, 다색 영역의 래스터 이미지는 디스플레이에서 선호되는 해상도를 갖는 형태(또는 기설정된 크기)로 축소될 수 있다. Then, the size of the raster image of the multicolor area is adjusted according to the preset resolution (504). Specifically, the initial raster image scanned typically has a resolution of 300 DPI, while the resolution of the display is 72 DPI or 86 DPI. In this regard, the raster image of the multicolor area can be reduced to a shape (or a predetermined size) having a preferred resolution in the display.

메타 파일의 명령어를 이용하여 다색 영역의 형태를 정의한다(505). 예를 들어, 직사각형 다색 영역은 매트릭스 변형, 저장되는 이미지 조각의 크기, 압축 방식 및 색 공간 등으로 정의될 수 있다. 여기서 매트릭스 변형은 메타 파일이 표시될 때 이미지 조각의 매핑에 영향을 주는 수많은 매개 변수를 반영할 수 있다. 이러한 변수들의 예에는 이미지 조각의 시각화의 해상도(이 해상도는 초기 래스터 이미지의 해상도와 다를 수 있다), 메타 파일의 재생 결과로 시각화된 문서의 좌표에 대응되는 이미지 조각의 전환(shift), 회전 각도 등이 있을 수 있다. 그리고 직사각형이 아닌 다색 영역에 대해서는 클리핑 구역의 형태를 정의하는 일련의 그래픽 명령어가 정의될 수 있다. The shape of the multicolor area is defined using the command of the metafile (505). For example, a rectangular polychrome area can be defined as a matrix transformation, a size of an image piece to be stored, a compression method, a color space, and the like. Where the matrix variant can reflect a number of parameters that affect the mapping of image fragments when the metafile is displayed. Examples of such variables include the resolution of the visualization of the image fragment (this resolution may differ from the resolution of the initial raster image), the shift of the image fragment corresponding to the coordinates of the document visualized as the playback of the metafile, And so on. For a non-rectangular polygonal region, a series of graphics commands defining the shape of the clipping region may be defined.

메타 파일의 명령과 래스터 이미지 조각이 압축된다(506). 본 실시 예에서는 메타 파일의 명령과 래스터 이미지를 압축하는 것으로 도시하고 설명하였지만, 압축 단계는 필수적인 것은 아니고, 구현 방식에 따라서 생략될 수 있다. 그리고 여기에서 압축 방법은 해당 메타 파일에서 선택된 방식을 따를 수 있다. 예를 들어, 메타 파일의 명령에 대해서는 손실 없는 압축 방식이 적용될 수 있으며, 래스터 이미지 조각을 압축하는데 있어서는 손실 있는 압축 방식이 적용될 수 있다. The commands in the metafile and the raster image fragment are compressed 506. Although the present embodiment has shown and described compressing the command and the raster image of the metafile, the compression step is not essential and may be omitted depending on the implementation method. And here, the compression method can follow the method selected in the corresponding metafile. For example, a lossless compression scheme may be applied to a command of a metafile, and a lossy compression scheme may be applied to compression of a raster image fragment.

메타 파일에 메타 파일 명령과 이미지 조각을 저장한다(507). 구체적으로, 앞선 단계에서 압축된 명령어와 래스터 이미지 조각을 메타 파일에 저장할 수 있다. The metafile command and image fragment are stored in the metafile (507). Specifically, the compressed instructions and raster image fragments can be stored in a metafile.

도 6은 도 1의 단색 영역의 저장 단계를 구체적으로 설명하기 위한 흐름도이다. FIG. 6 is a flowchart specifically illustrating the storing step of the monochromatic region of FIG. 1;

단색 영역은 상술한 바와 같이 메타 파일의 일련의 그래픽 명령으로 각 영역의 색과 형태에 대한 묘사로 저장될 수 있다. 이와 같이 래스터 이미지의 단색 영역을 벡터 방식으로 저장하면, 양질의 영역 매핑과 뷰 스케일링에 대한 독립성을 갖게 된다. The monochromatic region can be stored as a description of the color and shape of each region by a series of graphic commands of the metafile, as described above. By storing the monochromatic regions of the raster image in a vector format, it becomes independent of good region mapping and view scaling.

도 6을 참조하면, 먼저, 단색 영역의 내부 및 외부 윤곽을 추적한다(601). 이때 단색 영역은 내부 윤곽 없이 오직 하나의 외부 윤곽만을 가질 수 있다. 또한, 단색 영역은 하나의 외부 윤곽과 복수의 내부 윤곽을 가질 수도 있다. Referring to FIG. 6, the inner and outer contours of the monochromatic region are first tracked (601). At this time, the monochromatic region can have only one outer contour without the inner contour. The monochromatic region may also have one outer contour and a plurality of inner contours.

그리고 단색 영역에 채워진 색을 정의한다(602).And defines a color filled in the monochromatic region (602).

그리고 윤곽의 포인트가 선택된 메타 파일의 형식에서 지원하는 직선 및 곡선을 이용한 일련의 구간으로 근사화한다(603). The contour point is approximated to a series of segments using straight lines and curves supported in the format of the selected metafile (603).

그리고 근사화된 일련의 구간 및 단색 영역에 채워진 색을 메타 파일의 적절한 명령어로 정의한다(604).Then, the approximated series of intervals and the colors filled in the monochromatic region are defined as appropriate commands of the metafile (604).

그리고 정의된 명령어는 압축되고(605), 압축된 명령어는 메타 파일에 저장한다(606).Then, the defined command is compressed (605) and the compressed command is stored in the metafile (606).

한편, 도 5의 503단계에서 정의된 직사각형이 아닌 다색 영역의 클리핑 구역은 외부 윤곽만이 존재한다는 점을 제외하고는 단색 영역과 유사한바, 클리핑 구역에 대해서도 상술한 바와 같은 방식이 적용될 수 있다. 구체적으로, 직사각형이 아닌 다색 영역의 클리핑 구간을 근사화된 일련의 구간으로 정의할 수 있다. Meanwhile, the clipping area of the polygonal area other than the rectangle defined in step 503 of FIG. 5 is similar to the monochromatic area, except that only the outer contour is present, and the above-described method can be applied to the clipping area. Specifically, a clipping section of a polygonal area other than a rectangle can be defined as a series of approximated sections.

도 7은 영역의 윤곽을 추적하는 동작의 예를 설명하기 위한 도면이다. 7 is a diagram for explaining an example of an operation of tracking the outline of the area.

단색 영역의 감지 이후에 단색 영역의 구성 요소는 배경과 분리되고, 단색 영역은 링크된 픽셀 그룹으로 표현될 수 있다. 보통 래스터 이미지를 묘사할 때, 화소의 위치는 좌표에 의하여 정의되고 화소들은 정사각형 모양을 갖는다. After detection of a monochromatic region, the components of the monochromatic region are separated from the background, and the monochromatic region can be represented by a group of linked pixels. Normally, when describing a raster image, the position of the pixel is defined by coordinates and the pixels have a square shape.

본 발명의 실시 예에서 윤곽은 배경과 감지된 단색 영역의 경계로 정의한다. In the embodiment of the present invention, the contour is defined as the boundary between the background and the detected monochromatic region.

도 7을 참조하면, 영역의 화소는 진회색 사각형(701)으로 지정된다. 따라서, 윤곽은 픽셀의 꼭짓점에 할당된 포인트와 흰 포인트로 표시된 포인트를 경유한다. 윤곽의 구체적인 포인트는 일명 "가상의(virtual)"로 불리는 정수가 아닌 좌표를 가진다. 윤곽의 추적 절차는 윤곽의 시작점(703)에서 시작되고, 미리 결정된 방향으로 윤곽을 따라서 시작점에 다시 도달할 때까지 진행된다. 윤곽의 추적 방향은 선택된 메타 파일의 형식의 필요 조건에 의해 결정될 수 있다. 예를 들어서, 와인딩의 논-제로 수의 법칙(non-zero winding rule)에서 외부 윤곽은 시계의 시침이 움직이는 방향으로 움직이고, 내부 윤곽은 반 시계 방향 또는 그 반대 방향으로 움직이는 것으로 정의되어 있다. 이러한 규칙은 메타 파일의 표시되는 동안 명시된 색으로 단색 영역을 정확하게 채울 수 있게 한다. Referring to Fig. 7, the pixels of the area are designated by the dark gray square 701. Thus, the outline passes through the points assigned to the corner points of the pixel and the points indicated by the white points. The concrete point of the contour has a non-integer coordinate called a so-called "virtual". The contour tracing procedure starts at the starting point 703 of the contour and proceeds until it reaches the starting point again along the contour in a predetermined direction. The tracking direction of the outline can be determined by the requirement of the format of the selected metafile. For example, in a non-zero winding rule of a winding, the outer contour is defined as the movement of the hour hand of the watch in the direction of movement, while the inner contour is defined as moving counterclockwise or vice versa. These rules make it possible to accurately fill monochrome areas with the specified colors while the metafile is being displayed.

단색 영역에 대한 윤곽 추적 이후에, 윤곽의 가장 의미 있는 중요 포인트의 정의를 통해 윤곽의 요소의 수를 줄이는 것이 수행된다. 윤곽의 중요 포인트를 감지하는 방법은 다음의 두 개의 단계로 구성된다. 첫 번째 단계는, 한정된 예비 중요 포인트가 위치된 윤곽 조각을 정의하는 단계이고, 두 번째 단계는 최소한의 오류를 제공하는 중요 포인트 사이의 가능한 조합들 중 하나의 조합을 선택하는 단계이다. After outline tracking for a monochrome region, it is performed to reduce the number of elements of the outline through the definition of the most significant significant points of the outline. The method of detecting the critical points of the contour consists of the following two steps. The first step is to define a contour piece in which a limited preliminary critical point is located, and the second step is to select a combination of one of the possible combinations between critical points that provide a minimum error.

도 8은 한정된 예비 중요 포인트가 위치된 윤곽의 구간을 계산하는 방법의 예가 도시되어 있다. FIG. 8 shows an example of a method of calculating an interval of an outline in which a limited preliminary important point is located.

구현에 있어서, 기결정된 기준에 대응되는 윤곽의 각 포인트에 대응되게 가장 이격된 포인트의 쌍이 놓인다. 예를 들어, 도 8에서 윤곽(803)의 포인트에 대응되는 가장 이격된 포인트 쌍은 802, 806이다. 본 실시 예에서는 윤곽이 근사화된 직선 내에 위치하고, 근사화 에러가 기설정된 값을 넘지 않는다면, 윤곽의 두 포인트는 가장 이격된 것으로 가정한다. 여기서 근사화 에러는 윤곽(805)의 근사 위치의 각 포인트와 적절한 근사화된 라인(804)과의 거리(801)의 제곱의 합으로 계산될 수 있다. In an implementation, a pair of points that are most spaced corresponding to each point of the contour corresponding to a predetermined criterion is placed. For example, in FIG. 8, the most distant pair of points corresponding to points in contour 803 are 802, 806. In the present embodiment, if the outline is located in an approximated straight line and the approximation error does not exceed a preset value, it is assumed that the two points of the outline are the most distant. Where the approximation error can be calculated as the sum of the squares of the distance 801 between each point in the approximate position of the contour 805 and a suitable approximated line 804.

이러한 가장 이격된 포인트 쌍의 세트는 키 포인트를 감지하여 윤곽의 위치를 정의하는 것을 허용한다. 예를 들어, 도 8의 포인트(809)는 포인트(807)로 표시되는 윤곽의 포인트 그룹과 가장 이격되어 있다. 그리고 포인트(808)는 포인트(810)로 표시되는 윤곽의 모든 포인트와 가장 이격되어 있다. 따라서, 분석된 단편에서 윤곽의 포인트(808, 809)가 가장 많이 접하는 수를 갖게 되고, 그에 따라서, 키 포인트를 감지하기 위하여 윤곽(811)의 위치의 경계를 정의한다. This set of most distant point pairs allows sensing the key point and defining the position of the contour. For example, point 809 in FIG. 8 is most distant from the group of points in the contour represented by point 807. And point 808 is most distant from all points of the contour represented by point 810. [ Thus, in the analyzed fragment, the points 808 and 809 of the contour have the most tangent number, thereby defining the boundary of the position of the contour 811 to sense the key point.

도 9는 키 포인트의 감지에 선호되는 윤곽의 특정 위치를 갖는 단색 영역의 예를 도시한 도면이다. 여기서 특정 위치는 음역(902)으로 표시되어 있다.9 is a diagram showing an example of a monochromatic region having a specific position of a contour preferred for sensing a key point. Here, the specific position is indicated by the transliteration area 902.

결정된 특정 위치에서 하나의 키 포인트를 검출한다. 구체적으로, 결정된 특정 위치에서의 가능한 복수의 키 포인트와 다른 특정 위치에서의 가능한 복수의 키 포인트를 조합하고, 이들 중 연속된 직선으로 이루어진 윤곽의 추정에 있어서 발생하는 최소한의 오류를 갖는 각 특정 위치에서의 하나의 키 포인트를 검출할 수 있다. And detects one key point at the determined specific position. Specifically, it is possible to combine a possible plurality of key points at a determined specific position and a possible plurality of key points at different specific positions, and to determine each specific position having a minimum error occurring in the estimation of the contour consisting of successive straight lines One key point can be detected.

이 결과에 의하여 돌출된 키 포인트(901)는 도 9에 도시되어 있다. 최소한의 오류를 포함하고 있는 직선 구간 조합에 대한 근사치 결과는 도 10에 도시된다. The resultant key point 901 is shown in FIG. The approximate result for a straight line segment combination containing a minimum error is shown in FIG.

윤곽의 근사화 처리는 윤곽의 키 포인트에 기초하여 일련의 직선 및 커브의 구간을 이용하여 수행된다. 이러한 절차는 도 11에 도시되어 있다. The approximation of the contour is performed using a series of straight lines and a section of curves based on the key points of the contour. This procedure is shown in FIG.

먼저, 단색 영역의 단순화된 윤곽의 키 포인트의 좌표 수정이 수행된다(1101). 구체적으로, 도 12에 도시된 바와 같이 윤곽의 근사화에 의한 최소 에러를 갖도록 새로운 추정 구간(1203)은 특정 좌표(1202)에 대한 새로운 키 포인트(1201)에 대응된다. 따라서, 좌표의 수정은 초기 키 포인트(1202)의 부근으로 제한된다. First, a coordinate modification of the key point of the simplified outline of the monochrome region is performed (1101). Specifically, the new estimation interval 1203 corresponds to a new key point 1201 for a particular coordinate 1202 so as to have a minimum error due to the approximation of the contour, as shown in Fig. Thus, the modification of the coordinates is limited to the vicinity of the initial key point 1202.

본 실시 예에서 기정의된 부근은 하나의 픽셀 크기에 대응된다. 예를 들어, 새로운 키 포인트는 초기 키 포인트와의 거리가 픽셀의 반을 초과하지 않는다.In the present embodiment, the predetermined neighborhood corresponds to one pixel size. For example, the new key point does not exceed half the pixel distance from the initial key point.

특정 키 포인트에 의해 정의되는 간략화된 윤곽이 선택된 메타 파일의 형식에 대응되는 직선 및 커브의 구간을 이용한 근사화가 수행된다(1202). 이 단계에서 벡터 그래프의 사용된 속도의 수 및 키 포인트의 수가 명확하게 정의된다. An approximation is performed 1202 using a straight line and a duration of the curve corresponding to the format of the selected metafile with the simplified outline defined by the particular key point. At this stage, the number of used velocities of the vector graph and the number of key points are clearly defined.

그리고 메타 파일의 재생 과정에서 윤곽의 매핑을 부드럽게 하거나, 메타 파일의 요구되는 그래픽 명령어 낮은 양을 갖도록 커브의 수를 감소한다(1103). The number of curves is reduced 1103 to soften the contour mapping during the playback of the metafile, or to have a low amount of graphics commands required of the metafile.

일련의 직선 및 커브의 구간을 메타 파일에서 묘사하는 명령어로 변환한다(1104)A series of straight lines and curves are converted into instructions describing in the metafile (1104)

바람직하게는 단색 영역의 윤곽의 근사화는 대다수의 기존 메타 파일에서 지원하는 두 가지 그래픽 기능(직선 구간과 3차 베이저 커브 구간)을 이용해서 단색 영역의 윤곽에 대한 근사화를 수행할 수 있다. 구체적으로, 직선 구간의 표시 명령어는 일반적으로 구간의 시작 및 끝을 정의하는 아규먼트를 갖는다. 그리고 3차 베이저 커브의 시각화 명령어는 커브의 시작과 끝, 커브의 정규화된 두 체크 포인트 및 커브의 형태를 정의하는 아규먼트를 갖는다. Preferably, the approximation of the outline of a monochromatic region can be approximated to the outline of a monochromatic region using two graphical functions (straight line section and third order bezel curve section) supported by most existing metafiles. Specifically, the display instruction word of the straight line section generally has an argument defining the start and end of the section. And the visualization commands of the tertiary baseline curve have arguments that define the start and end of the curve, the two normalized checkpoints of the curve, and the shape of the curve.

베지어 커브는 윤곽의 위치 묘사에 사용되고, 두 개의 구간이 겹쳐지는 윤곽의 키 포인트에 적용된다. 따라서, 베지어 커브의 파라미터 계산에는 삼각형이 분석된다. 여기서 삼각형의 하나의 꼭짓점은 키 포인트이고, 삼각형의 두 변은 상기 키 포인트에 인접해 있는 근사화된 구간이다. Bezier curves are used to describe the position of the contour, and are applied to the key points of the contour in which the two sections overlap. Therefore, triangles are analyzed in the parameter calculations of Bezier curves. Where one vertex of the triangle is the key point and two sides of the triangle are the approximated intervals adjacent to the key point.

도 13을 참조하면, 베지어 커브 매개 변수 계산을 간략화하기 위하여, 베지어 커브의 체크 포인트(1302)는 피크(1301)와 인접한 변에 위치된다. 이때, 커브의 체크 포인트는 두 매개 변수 α와 β에 의해서 정의되는데 0부터 1까지 범위를 가지며, 두 매개 변수들의 변화량이 도 13에 나타나 있다. 도 13에 도시된 매개 변수의 값은 일 예 일뿐, 이에 한정되지 않는다. Referring to FIG. 13, to simplify the Bezier curve parameter calculation, the Bezier curve checkpoint 1302 is located on the side adjacent to the peak 1301. At this time, the checkpoint of the curve is defined by two parameters [alpha] and [beta], ranging from 0 to 1, and the variation of the two parameters is shown in Fig. The value of the parameter shown in FIG. 13 is only an example, and is not limited thereto.

도 14 및 도 15는 베이지 커브의 체크 포인트를 계산하는 단계를 나타내는 도면이다. 14 and 15 are diagrams showing steps of calculating a check point of a beige curve.

도 14를 참조하면, 먼저 앞선 단계에서 분석된 윤곽 내의 키 포인트(1403)와 교차하는 구간의 평균 포인트(1401, 1407)를 계산한다. 그리고 계산된 평균 포인트(1401, 1407)를 경유하는 직선(1408)을 정의한다. 키 포인트의 인접은 기정의된 반경의 원(1404)에 의하여 제한된다. 여기서 반지름은 계수

Figure 112012027085672-pat00001
이 곱해지면 래스터 이미지의 픽셀의 측면 길이에 대응되는 것이 바람직하다. 평행 이동된 직선(1406)은 베지어 커브 α 와 β 의 체크 포인트로 정의될 수 있는 포인트(1402, 1405)의 근사화된 구간과 교차하게 된다. 여기서 α 와 β 값은 평행 이동된 직선(1406)을 자른 구간의 정규화된 길이와 동일하며, 비례 계수 이내에서 정확하다. 하나의 예로서 도 14에 도시된 바와 같이 계수α 는 포인트(1401, 1402)에 의한 구간의 길이와 구간(1401-1403)의 길이의 비율과 동일하고, 비례 계수가 곱해진다. 여기서 비례 계수는 4/3이 바람직하다. 이 경우, 베지어 커브는 키 포인트(1409, 1509)의 인접하는 크로스 포인트를 지나게 된다. Referring to FIG. 14, the average points 1401 and 1407 of a section that intersects the key point 1403 in the outline analyzed in the previous step are calculated. And a straight line 1408 via the calculated average points 1401 and 1407. [ The adjacency of the key points is limited by the circle 1404 of the predetermined radius. Here,
Figure 112012027085672-pat00001
Is preferably multiplied by the side length of the pixel of the raster image. The translated straight line 1406 intersects the approximated section of points 1402 and 1405, which can be defined by the checkpoints of Bezier curves? And?. Here, the values of [alpha] and [beta] are equal to the normalized length of the cut section of the parallel shifted straight line 1406, and are accurate within a proportional coefficient. As one example, as shown in FIG. 14, the coefficient? Is equal to the ratio of the length of the section by points 1401 and 1402 to the length of sections 1401-1403, and is multiplied by the proportional coefficient. Here, the proportional coefficient is preferably 4/3. In this case, the Bezier curve passes through the adjacent crosspoints of the key points 1409 and 1509.

계산된 파라미터에 대응되는 베지어 커브는 도 15에 도시되어 있다. 도 15를 참조하면, 근사화된 베지어 커브(1505)는 평균 포인트(1501, 1506)를 경유 되고, 상술한 방법에 의하여 커브의 체크 포인트(1502, 1504)가 계산된다. The Bezier curve corresponding to the calculated parameter is shown in Fig. Referring to FIG. 15, the approximated Bezier curve 1505 is passed through the average points 1501 and 1506, and the checkpoints 1502 and 1504 of the curve are calculated by the method described above.

베지어 커브의 파라미터가 계산된 이후에, 상태의 개수에 베지어 커브의 체크 포인트가 일치하는지 확인하는 과정이 이루어진다. 파라미터

Figure 112012027085672-pat00002
는 이 단계에서 계산된다. 파라미터
Figure 112012027085672-pat00003
이 허용된 범위(
Figure 112012027085672-pat00004
)를 만족한다면 파라미터 α 와 β는 수정되지 않는다. 반면에 파라미터
Figure 112012027085672-pat00005
의 상태가
Figure 112012027085672-pat00006
이면, 베이저 커브의 체크 포인트는
Figure 112012027085672-pat00007
에 대응되는 값으로 교체가 된다. 그리고 파라미터
Figure 112012027085672-pat00008
의 상태가
Figure 112012027085672-pat00009
이면, 적절한 평균 포인트에 의해 한정되는 직선의 두 구간으로 근사화 커브가 교체되고, 분석된 체크 포인트에 두 구간을 서로 인접시키는 결정이 이루어진다. 예를 들어, 도 15에서
Figure 112012027085672-pat00010
인 상태면, 베이저 커브는 포인트(1501, 1503)에 의해 한정되는 제1 구간과 포인트(1503, 1506)에 의하여 한정되는 제2 구간으로 교체될 수 있다. After the parameters of the Bezier curve are calculated, a check is made to see if the number of states matches the checkpoint of the Bezier curve. parameter
Figure 112012027085672-pat00002
Is calculated at this stage. parameter
Figure 112012027085672-pat00003
This allowed range (
Figure 112012027085672-pat00004
), The parameters [alpha] and [beta] are not modified. On the other hand,
Figure 112012027085672-pat00005
The state of
Figure 112012027085672-pat00006
, The checkpoint of the base curve is
Figure 112012027085672-pat00007
Is replaced with a value corresponding to " And the parameters
Figure 112012027085672-pat00008
The state of
Figure 112012027085672-pat00009
, The approximation curve is replaced with two sections of the straight line defined by the appropriate average point, and a determination is made to adjoin the two sections to the analyzed checkpoint. For example, in FIG. 15
Figure 112012027085672-pat00010
The base curve can be replaced by a first section defined by points 1501 and 1503 and a second section defined by points 1503 and 1506. [

도 16은 연속된 베지어 커브에 의해 이루어지는 단색 영역에 있는 커브의 근사치의 예를 도시한 도면이다. 16 is a diagram showing an example of an approximation of a curve in a monochromatic region formed by a continuous Bezier curve.

도 17은 초기 래스터 이미지 내의 단색 영역을 확대하여 표시한 이미지와 근사치 돌출 이후에 단색 영역의 매핑 결과를 도시한 도면이다. 도 17을 참조하면, 제공된 근사치가 영역 형태의 벡터 묘사에 대응하기 때문에 그들의 맵핑이 뷰 스케일에 종속하지 않음을 확인할 수 있다. FIG. 17 is a diagram showing an image obtained by enlarging and displaying a monochromatic region in an initial raster image and a result of mapping a monochromatic region after an approximate protrusion. FIG. Referring to FIG. 17, it can be seen that their mappings do not depend on the view scale, since the provided approximations correspond to a vector representation of the region shape.

도 18은 본 발명의 일 실시 예에 따른 래스터 이미지 변환 장치(100)의 구성을 나타내는 블록도이다. 18 is a block diagram showing a configuration of a raster image conversion apparatus 100 according to an embodiment of the present invention.

도 18을 참조하면, 래스터 이미지 변환장치(100)는 통신 인터페이스부(110), 저장부(120), 사용자 인터페이스부(130), 명령어 생성부(140), 파일 생성부(150) 및 제어부(160)로 구성될 수 있다. 여기서 래스터 이미지 변환장치(100)는 PC, 노트북 등일 수 있다. 18, the raster image conversion apparatus 100 includes a communication interface unit 110, a storage unit 120, a user interface unit 130, a command generation unit 140, a file generation unit 150, 160). Here, the raster image conversion apparatus 100 may be a PC, a notebook, or the like.

통신 인터페이스부(110)는 래스터 이미지 변환장치(100)를 외부 장치와 연결하기 위해 형성되며, 근거리 통신망 및 인터넷 망을 통하여 무선 또는 유선 방식으로 접속되는 형태뿐만 아니라, USB(Universal Serial Bus) 포트를 통하여 접속되는 형태도 가능하다. The communication interface unit 110 is formed to connect the raster image conversion apparatus 100 to an external device and is connected to a USB (Universal Serial Bus) port as well as a wireless or wired connection mode through a local area network It is also possible to connect them through a network.

그리고 통신 인터페이스부(110)는 외부 장치(예를 들어, 화상독취장치)로부터 래스터 이미지를 수신할 수 있다. 여기서 래스터 이미지는 JPEG, BMP 등과 비트맵 이미지이다. 그리고 통신 인터페이스부(110)는 생성된 메타 파일을 외부 장치로 전송할 수 있다. Then, the communication interface unit 110 can receive the raster image from the external device (for example, the image reading device). Here, raster images are JPEG, BMP, and bitmap images. The communication interface unit 110 may transmit the generated metafile to an external device.

저장부(120)는 래스터 이미지를 저장한다. 그리고 저장부(120)는 후술할 파일 생성부(150)에서 생성된 메타 파일을 저장한다. 한편, 저장부(120)는 래스터 이미지 변환장치(100) 내의 저장매체 및 외부 저장 매체, 예를 들어, USB 메모리를 포함한 Removable Disk, 네트워크를 통한 웹서버(Web server) 등으로 구현될 수 있다. The storage unit 120 stores a raster image. The storage unit 120 stores the metafile generated by the file generation unit 150, which will be described later. Meanwhile, the storage unit 120 may be implemented as a storage medium in the raster image conversion apparatus 100 and an external storage medium, for example, a removable disk including a USB memory, or a web server through a network.

사용자 인터페이스부(130)는 래스터 이미지 변환장치(100)에서 지원하는 각종 기능을 사용자가 설정 또는 선택할 수 있는 다수의 기능키들을 구비하며, 래스터 이미지 변환장치(100)에서 제공되는 각종 정보 표시할 수 있다. 사용자 인터페이스부(130)는 터치패드 등과 같이 입력과 출력이 동시에 구현되는 장치로 구현될 수도 있고, 마우스, 키보드 등과 같은 입력 장치 및 CRT 모니터, LCD 모니터, LED 등과 같은 표시 장치를 결합하여 구현될 수도 있다. The user interface unit 130 includes a plurality of function keys that a user can set or select various functions supported by the raster image conversion apparatus 100. The user interface unit 130 can display various information provided by the raster image conversion apparatus 100 have. The user interface unit 130 may be realized by a device such as a touch pad that can simultaneously implement input and output, or may be implemented by combining input devices such as a mouse and a keyboard, and display devices such as a CRT monitor, an LCD monitor, have.

사용자 인터페이스부(130)를 메타 파일로 변화된 래스터 이미지를 선택받을 수 있으며, 변환될 메타 파일의 종류를 선택받을 수 있다. 여기서 메타 파일의 종류는 PDF(Portable Document Format), XPS(XML Paper Specification), PS(PostScript), EMF(Enhanced Metafile) 등일 수 있다. The user interface unit 130 may select a raster image changed to a metafile and select a type of the metafile to be converted. Here, the type of the metafile may be Portable Document Format (PDF), XML Paper Specification (XPS), PostScript (PS), Enhanced Metafile (EMF), or the like.

명령어 생성부(140)는 입력받은 래스터 이미지를 배경 영역, 단색 영역 및 다색 영역으로 구분한다. 여기서 배경 영역은 래스터 이미지의 전체에 일관성 있는 화소(또는 포인트) 그룹이다. 그리고 다색 영역은 래스터 이미지의 일 부분에 한정된 래스터 이미지의 일관성 있는 화소 그룹이다. 그리고 단색 영역은 (대략) 동일한 밝기와 색으로 이루어진 영역이다. The command generation unit 140 divides the input raster image into a background region, a monochromatic region, and a multicolor region. Where the background area is a group of pixels (or points) that are consistent throughout the raster image. And the multicolor region is a group of consistent pixels of a raster image that is limited to a portion of the raster image. And the monochromatic region is a region of (approximately) the same brightness and color.

그리고 명령어 생성부(140)는 구분된 영역 각각에 대응되는 메타 명령어를 생성한다. 구체적으로, 명령어 생성부(140)는 구분된 배경 영역을 단색 배경, 그라데이션 배경 및 다색 배경 중 하나로 결정하고, 결정된 배경 영역이 단색 배경 및 그라데이션 배경인 경우 이에 대응되는 메타 명령어를 생성할 수 있다. 예를 들어, 결정된 배경 영역이 단색 배경이면 배경 영역의 색을 갖는 직사각형을 묘사하는 메타 명령어를 생성하고, 결정된 배경 영역이 그라데이션 배경이면, 배경 영역에 대응되는 색의 경사 방향 및 타입을 결정하는 메타 명령어를 생성할 수 있다. The instruction generation unit 140 generates a meta instruction corresponding to each of the divided regions. Specifically, the command generation unit 140 may determine the separated background area as one of a monochrome background, a gradient background, and a multicolor background, and may generate a corresponding meta command if the determined background area is a monochrome background and a gradient background. For example, if the determined background area is a monochrome background, a meta command that describes a rectangle having a color of the background area is generated. If the determined background area is a gradient background, a meta command that determines the direction and type of the color corresponding to the background area Command can be generated.

그리고 다색 영역에 대해서, 명령어 생성부(140)는 다색 영역이 직사각형인지를 판단하고, 다색 영역이 직사각형이 아닌 경우, 다색 영역을 복수의 직사각형 구역으로 구분하고, 구분된 사각형 구역에 대한 위치 등의 메타 명령어를 생성할 수 있다. For the multicolor region, the command generation unit 140 determines whether the multicolor region is a rectangle. If the multicolor region is not a rectangle, the command generation unit 140 divides the multicolor region into a plurality of rectangular regions, You can create a meta-instruction.

그리고 단색 영역에 대해서, 명령어 생성부(140)는 단색 영역의 윤곽을 검출하고, 검출된 윤곽을 직선 및 베지어 커브 구간으로 간소화하고, 일련의 직선 및 커브 구간에 대응되는 메타 명령어를 생성할 수 있다. For the monochromatic region, the command generation unit 140 can detect the outline of the monochrome region, simplify the detected outline into straight and bezier curve segments, and generate a meta instruction corresponding to a series of straight lines and curve segments have.

파일 생성부(150)는 생성된 메타 명령어를 기초로 메타 파일을 생성한다. 구체적으로, 파일 생성부(150)는 명령어 생성부(140)에서 생성된 메타 명령어와 영역에 대응되는 래스터 이미지를 포함하는 메타 파일을 생성할 수 있다. 예를 들어, 단색 배경 및 그라데이션 배경에 대해서는 이에 대응되는 메타 명령어만을 메타 파일에 포함시키고, 다색 배경에 대해서는 다색 배경에 대응되는 래스터 이미지와 해당 래스터 이미지를 묘사하는 메타 명령어를 메타 파일에 포함시킬 수 있다. The file generation unit 150 generates a meta file based on the generated meta command. Specifically, the file generating unit 150 may generate a meta file including a meta command generated by the command generating unit 140 and a raster image corresponding to an area. For example, for a monochrome background and a gradient background, only meta-commands corresponding to the monochrome background and the gradient background are included in the metafile, and for a multicolor background, a raster image corresponding to a multicolor background and a meta- have.

이때, 파일 생성부(150)는 다색 배경에 대응되는 래스터 이미지에 대한 해상도를 낮추는 스케일링을 수행하고, 스케일링된 래스터 이미지를 메타 파일에 포함시킬 수 있다. At this time, the file generation unit 150 may perform scaling to lower the resolution of the raster image corresponding to the multicolor background, and may include the scaled raster image in the meta file.

그리고 다색 영역에 대해서는 다색 배경에 대응되는 형태로, 다색 영역에 대응되는 래스터 이미지와 해당 래스터 이미지의 위치 등을 묘사하는 메타 명령어를 메타 파일에 포함 시킬 수 있다. 이때, 파일 생성부(150)는 다색 영역이 직사각형이 아닌 경우에 구분된 클리핑 구간별로 해당 래스터 이미지 및 각 래스터 이미지의 위치를 묘사하는 메타 명령어를 메타 파일에 포함시킬 수 있다. 또한, 파일 생성부(150)는 다색 영역에 대응되는 래스터 이미지에 대한 스케일링을 수행하고, 스케일링된 래스터 이미지를 메타 파일에 포함시킬 수도 있다. For a multicolor area, a meta-command that describes a raster image corresponding to a multicolor area and a position of a raster image corresponding to a multicolor background may be included in the meta file. At this time, the file generation unit 150 may include a meta command describing the raster image and the position of each raster image in the clipping interval, which is classified when the multicolor area is not a rectangle, in the meta file. Also, the file generating unit 150 may perform scaling on the raster image corresponding to the multicolor area, and may include the scaled raster image on the meta file.

그리고 단색 영역에 대해서, 파일 생성부(150)는 벡터화된 메타 명령어를 메타 파일에 포함시킬 수 있다. 이와 같이 본 실시 예에서는 단색 영역에 대응되는 메타 명령어만을 메타 파일에 포함하는바, 더욱 작은 용량의 메타 파일을 생성할 수 있게 된다. For the monochromatic region, the file generation unit 150 may include vectorized meta-instructions in the meta file. As described above, in this embodiment, only the meta-instructions corresponding to the monochromatic region are included in the meta file, so that a meta file having a smaller capacity can be generated.

한편, 파일 생성부(150)는 메타 명령어를 메타 파일에 포함시킬 때, 무손실 압축을 수행하여 메타 파일에 포함시킬 수 있다. Meanwhile, when the meta command is included in the meta file, the file generator 150 may perform lossless compression and include the meta command in the meta file.

제어부(160)는 래스터 이미지 변환 장치(100) 내의 각 구성에 대한 제어를 수행한다. 구체적으로, 제어부(160)는 사용자 인터페이스부(130)를 통하여 변환될 래스터 이미지를 선택받고, 변환 명령을 입력받으면, 선택된 래스터 이미지에 대응되는 메타 명령어가 생성되도록 명령어 생성부(140)를 제어하고, 생성된 메타 명령어를 포함하는 메타 파일이 생성되도록 파일 생성부(150)를 제어할 수 있다. The control unit 160 performs control for each configuration in the raster image conversion apparatus 100. Specifically, the control unit 160 controls the command generation unit 140 to generate a meta command corresponding to the selected raster image when the raster image to be converted is selected through the user interface unit 130 and the conversion command is input , And control the file generation unit 150 to generate a meta file including the generated meta-commands.

이상과 같이 본 실시 예에 따른 래스터 이미지 변환 장치(100)는 입력받은 래스터 이미지를 배경 영역, 단색 영역 및 다색 영역으로 구분하고, 각 영역에 최적화된 방식으로 메타 명령어를 생성하여 메타 파일을 생성하는바, 작은 용량의 메타 파일을 생성할 수 있다. 더욱이 단색 영역에 대해서는 벡터화하고, 이에 대응되는 명령어를 메타 파일에 저장하는바, 더욱더 작은 용량의 메타 파일을 생성할 수 있게 된다. As described above, the raster image conversion apparatus 100 according to the present embodiment divides an input raster image into a background region, a monochromatic region, and a multicolor region, generates a meta command in a manner optimized for each region, and generates a meta file Bar, and small capacity metafiles. Furthermore, vectorization is performed for the monochromatic region, and a command corresponding to the monochromatic region is stored in the metafile, so that a smaller capacity metafile can be generated.

도 19는 본 발명의 일 실시 예에 따른 화상독취장치(200)의 구성을 나타내는 블록도이다. 19 is a block diagram showing a configuration of a picture reading apparatus 200 according to an embodiment of the present invention.

도 19를 참조하면, 화상독취장치(200)는 통신 인터페이스부(210), 저장부(220), 사용자 인터페이스부(230), 스캔부(240), 명령어 생성부(250), 파일 생성부(260) 및 제어부(270)로 구성될 수 있다. 여기서 화상독취장치(200)는 복사기, 팩시밀리, 스캐너 또는 이들의 기능을 하나의 장치를 통해 복합적으로 구현하는 복합기(Multi Function Peripherial: MFP)일 수 있다. 19, the image reading apparatus 200 includes a communication interface unit 210, a storage unit 220, a user interface unit 230, a scan unit 240, a command generation unit 250, a file generation unit 260 and a control unit 270. [ Here, the image reading apparatus 200 may be a multifunction peripheral (MFP) that implements a copying machine, a facsimile machine, a scanner, or a combination thereof through a single device.

통신 인터페이스부(210)는 화상독취장치(200)를 외부 장치와 연결하기 위해 형성되며, 근거리 통신망 및 인터넷 망을 통하여 무선 또는 유선 방식으로 접속되는 형태뿐만 아니라, USB(Universal Serial Bus) 포트를 통하여 접속되는 형태도 가능하다. The communication interface unit 210 is formed to connect the image reading apparatus 200 with an external device and is connected not only in a wireless or wired manner through a local area network and an Internet network but also through a USB (Universal Serial Bus) port It is also possible to connect them.

그리고 통신 인터페이스부(210)는 외부 장치로 후술할 스캔부(240)에서 생성된 래스터 이미지를 전송할 수 있다. 그리고 통신 인터페이스부(210)는 후술할 파일 생성부(260)에서 생성된 메타 파일을 외부 장치로 전송할 수 있다. The communication interface unit 210 can transmit the raster image generated by the scanning unit 240, which will be described later, to an external device. The communication interface unit 210 may transmit the metafile generated by the file generation unit 260 to an external device.

저장부(220)는 래스터 이미지를 저장한다. 구체적으로, 저장부(220)는 후술할 스캔부(240)에서 생성된 래스터 이미지를 저장할 수 있다. The storage unit 220 stores a raster image. Specifically, the storage unit 220 may store a raster image generated by the scan unit 240, which will be described later.

그리고 저장부(220)는 후술할 파일 생성부(260)에서 생성된 메타 파일을 저장한다. 한편, 저장부(220)는 화상독취장치(200) 내의 저장매체 및 외부 저장 매체, 예를 들어, USB 메모리를 포함한 Removable Disk, 네트워크를 통한 웹서버(Web server) 등으로 구현될 수 있다. The storage unit 220 stores the metafile generated by the file generation unit 260, which will be described later. Meanwhile, the storage unit 220 may be implemented as a storage medium in the image reading apparatus 200 and an external storage medium, for example, a removable disk including a USB memory, or a Web server through a network.

사용자 인터페이스부(230)는 화상독취장치(200)에서 지원하는 각종 기능을 사용자가 설정 또는 선택할 수 있는 다수의 기능키들을 구비하며, 화상독취장치(200)에서 제공되는 각종 정보 표시할 수 있다. 사용자 인터페이스부(230)는 터치패드 등과 같이 입력과 출력이 동시에 구현되는 장치로 구현될 수도 있고, 마우스, 키보드 등과 같은 입력 장치 및 CRT 모니터, LCD 모니터, LED 등과 같은 표시 장치를 결합하여 구현될 수도 있다. The user interface unit 230 includes a plurality of function keys that a user can set or select various functions supported by the image reading apparatus 200 and can display various information provided by the image reading apparatus 200. [ The user interface unit 230 may be implemented by a device such as a touch pad that performs input and output simultaneously, or may be implemented by combining a display device such as a CRT monitor, an LCD monitor, an LED, or the like, have.

사용자 인터페이스부(230)를 스캔 명령 또는 메타 파일 생성 명령을 입력받을 수 있으며, 변환될 메타 파일의 종류를 선택받을 수 있다. 여기서 메타 파일의 종류는 PDF(Portable Document Format), XPS(XML Paper Specification), PS(PostScript), EMF(Enhanced Metafile) 등일 수 있다. The user interface unit 230 can receive a scan command or a metafile generation command, and can select a type of metafile to be converted. Here, the type of the metafile may be Portable Document Format (PDF), XML Paper Specification (XPS), PostScript (PS), Enhanced Metafile (EMF), or the like.

스캔부(240)는 원고를 스캔하여 래스터 이미지를 생성한다. The scan unit 240 scans a document to generate a raster image.

명령어 생성부(250)는 입력받은 래스터 이미지를 배경 영역, 단색 영역 및 다색 영역으로 구분한다. 여기서 배경 영역은 래스터 이미지의 전체에 일관성 있는 화소(또는 포인트) 그룹이다. 그리고 다색 영역은 래스터 이미지의 일 부분에 한정된 래스터 이미지의 일관성 있는 화소 그룹이다. 그리고 단색 영역은 (대략) 동일한 밝기와 색으로 이루어진 영역이다. The command generation unit 250 divides the input raster image into a background region, a monochromatic region, and a multicolor region. Where the background area is a group of pixels (or points) that are consistent throughout the raster image. And the multicolor region is a group of consistent pixels of a raster image that is limited to a portion of the raster image. And the monochromatic region is a region of (approximately) the same brightness and color.

그리고 명령어 생성부(250)는 구분된 영역 각각에 대응되는 메타 명령어를 생성한다. 구체적으로, 명령어 생성부(250)는 구분된 배경 영역을 단색 배경, 그라데이션 배경 및 다색 배경 중 하나로 결정하고, 결정된 배경 영역이 단색 배경 및 그라데이션 배경인 경우 이에 대응되는 메타 명령어를 생성할 수 있다. 예를 들어, 결정된 배경 영역이 단색 배경이면 배경 영역의 색을 갖는 직사각형을 묘사하는 메타 명령어를 생성하고, 결정된 배경 영역이 그라데이션 배경이면, 배경 영역에 대응되는 색의 경사 방향 및 타입을 결정하는 메타 명령어를 생성할 수 있다. The instruction generation unit 250 generates a meta instruction corresponding to each of the divided regions. Specifically, the command generation unit 250 may determine the separated background area as one of a monochrome background, a gradient background, and a multicolor background, and may generate a corresponding meta command if the determined background area is a monochrome background and a gradient background. For example, if the determined background area is a monochrome background, a meta command that describes a rectangle having a color of the background area is generated. If the determined background area is a gradient background, a meta command that determines the direction and type of the color corresponding to the background area Command can be generated.

그리고 다색 영역에 대해서, 명령어 생성부(250)는 다색 영역이 직사각형인지를 판단하고, 다색 영역이 직사각형이 아닌 경우, 다색 영역을 복수의 직사각형 구역으로 구분하고, 구분된 사각형 구역에 대한 위치 등의 메타 명령어를 생성할 수 있다. For a multicolor area, the command generator 250 determines whether the multicolor area is a rectangle. If the multicolor area is not a rectangle, the command generator 250 divides the multicolor area into a plurality of rectangular areas, You can create a meta-instruction.

그리고 단색 영역에 대해서, 명령어 생성부(250)는 단색 영역의 윤곽을 검출하고, 검출된 윤곽을 직선 및 베지어 커브 구간으로 간소화하고, 일련의 직선 및 커브 구간에 대응되는 메타 명령어를 생성할 수 있다. For the monochromatic region, the instruction generation unit 250 can detect the outline of the monochromatic region, simplify the detected outline into straight and bezier curve segments, and generate a meta instruction corresponding to a series of straight lines and curve segments have.

파일 생성부(260)는 생성된 메타 명령어를 기초로 메타 파일을 생성한다. 구체적으로, 파일 생성부(260)는 명령어 생성부(250)에서 생성된 메타 명령어와 영역에 대응되는 래스터 이미지를 포함하는 메타 파일을 생성할 수 있다. 예를 들어, 단색 배경 및 그라데이션 배경에 대해서는 이에 대응되는 메타 명령어만을 메타 파일에 포함시키고, 다색 배경에 대해서는 다색 배경에 대응되는 래스터 이미지와 해당 래스터 이미지를 묘사하는 메타 명령어를 메타 파일에 포함시킬 수 있다. The file generation unit 260 generates a meta file based on the generated meta command. Specifically, the file generating unit 260 may generate a meta file including a meta command generated by the command generating unit 250 and a raster image corresponding to an area. For example, for a monochrome background and a gradient background, only meta-commands corresponding to the monochrome background and the gradient background are included in the metafile, and for a multicolor background, a raster image corresponding to a multicolor background and a meta- have.

이때, 파일 생성부(260)는 다색 배경에 대응되는 래스터 이미지에 대한 해상도를 낮추는 스케일링을 수행하고, 스케일링된 래스터 이미지를 메타 파일에 포함시킬 수 있다. At this time, the file generation unit 260 may perform scaling to lower the resolution of the raster image corresponding to the multicolor background, and may include the scaled raster image in the meta file.

그리고 다색 영역에 대해서는 다색 배경에 대응되는 형태로, 다색 영역에 대응되는 래스터 이미지와 해당 래스터 이미지의 위치 등을 묘사하는 메타 명령어를 메타 파일에 포함 시킬 수 있다. 이때, 파일 생성부(260)는 다색 영역이 직사각형이 아닌 경우에 구분된 클리핑 구간별로 해당 래스터 이미지 및 각 래스터 이미지의 위치를 묘사하는 메타 명령어를 메타 파일에 포함시킬 수 있다. 또한, 파일 생성부(150)는 다색 영역에 대응되는 래스터 이미지에 대한 스케일링을 수행하고, 스케일링된 래스터 이미지를 메타 파일에 포함시킬 수도 있다. For a multicolor area, a meta-command that describes a raster image corresponding to a multicolor area and a position of a raster image corresponding to a multicolor background may be included in the meta file. At this time, the file generating unit 260 may include a meta command describing the raster image and the position of each raster image in the clipping interval, when the multicolor area is not a rectangle. Also, the file generating unit 150 may perform scaling on the raster image corresponding to the multicolor area, and may include the scaled raster image on the meta file.

그리고 단색 영역에 대해서, 파일 생성부(260)는 벡터화된 메타 명령어를 메타 파일에 포함시킬 수 있다. 이와 같이 본 실시 예에서는 단색 영역에 대응되는 메타 명령어만을 메타 파일에 포함하는바, 더욱 작은 용량의 메타 파일을 생성할 수 있게 된다. For the monochromatic region, the file generation unit 260 may include vectorized meta-instructions in the meta file. As described above, in this embodiment, only the meta-instructions corresponding to the monochromatic region are included in the meta file, so that a meta file having a smaller capacity can be generated.

한편, 파일 생성부(260)는 메타 명령어를 메타 파일에 포함시킬 때, 무손실 압축을 수행하여 메타 파일에 포함시킬 수 있다. Meanwhile, when the meta command is included in the meta file, the file generation unit 260 may perform lossless compression and include the meta command in the meta file.

제어부(270)는 화상독취장치(200) 내의 각 구성에 대한 제어를 수행한다. 구체적으로, 제어부(270)는 사용자 인터페이스부(230)를 통하여 스캔 명령 또는 메타 파일 생성 명령을 입력받으면, 원고를 독취하여 래스터 이미지가 생성되도록 스캔부(240)를 제어하고, 생성된 래스터 이미지에 대응되는 메타 명령어가 생성되도록 명령어 생성부(250)를 제어하고, 생성된 메타 명령어를 포함하는 메타 파일이 생성되도록 파일 생성부(260)를 제어할 수 있다. The control unit 270 performs control for each configuration in the image reading device 200. [ Specifically, when the control unit 270 receives a scan command or a metafile creation command through the user interface unit 230, the controller 270 controls the scan unit 240 to generate a raster image by reading the manuscript, The control unit 250 controls the command generation unit 250 to generate a corresponding meta command and controls the file generation unit 260 to generate a meta file including the generated meta command.

이상과 같이 본 실시 예에 따른 화상독취장치(200)는 입력받은 래스터 이미지를 배경 영역, 단색 영역 및 다색 영역으로 구분하고, 각 영역에 최적화된 방식으로 메타 명령어를 생성하여 메타 파일을 생성하는바, 작은 용량의 메타 파일을 생성할 수 있다. 더욱이 단색 영역에 대해서는 벡터화하고, 이에 대응되는 명령어를 메타 파일에 저장하는바, 더욱더 작은 용량의 메타 파일을 생성할 수 있게 된다. As described above, the image reading apparatus 200 according to the present embodiment divides the input raster image into a background area, a monochrome area, and a multicolor area, and generates a meta-command in a manner optimized for each area to generate a meta file , A small capacity metafile can be generated. Furthermore, vectorization is performed for the monochromatic region, and a command corresponding to the monochromatic region is stored in the metafile, so that a smaller capacity metafile can be generated.

이상에서는 본 발명의 바람직한 실시 예에 대해서 도시하고, 설명하였으나, 본 발명은 상술한 특정의 실시 예에 한정되지 아니하며, 청구범위에서 청구하는 본 발명의 요지를 벗어남이 없이 당해 발명이 속하는 기술분야에서 통상의 지식을 가진자라면 누구든지 다양한 변형 실시할 수 있는 것은 물론이고, 그와 같은 변경은 청구범위 기재의 범위 내에 있게 된다. While the present invention has been particularly shown and described with reference to exemplary embodiments thereof, it is to be understood that the invention is not limited to the disclosed exemplary embodiments, but, on the contrary, It will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the scope of the appended claims.

100: 래스터 이미지 변환 장치 110: 통신 인터페이스부
120: 저장부 130: 사용자 인터페이스부
140: 명령어 생성부 150: 파일 생성부
160: 제어부 200: 화상독취장치
210: 통신 인터페이스부 220: 저장부
230: 사용자 인터페이스부 240: 스캔부
250: 명령어 생성부 260: 파일 생성부
270: 제어부
100: raster image conversion apparatus 110: communication interface unit
120: storage unit 130: user interface unit
140: command generation unit 150: file generation unit
160: control unit 200: image reading device
210: communication interface unit 220:
230: user interface unit 240: scan unit
250: command generation unit 260: file generation unit
270:

Claims (20)

래스터 이미지 변환 방법에 있어서,
상기 래스터 이미지에서 배경 영역, 단색 영역 및 다색 영역으로 구분하는 단계;
상기 구분된 영역 각각에 대응되는 메타 명령어를 생성하는 단계; 및
상기 생성된 메타 명령어를 기초로 메타 파일을 생성하는 단계;를 포함하고,
상기 메타 명령어를 생성하는 단계는,
상기 구분된 단색 영역의 윤곽을 벡터화하고, 상기 벡터화된 윤곽에 대응되는 메타 명령어를 생성하고,
상기 구분된 다색 영역의 형태가 직사각형이 아니면, 상기 구분된 다색 영역을 복수의 직사각형 구역으로 구분하고,
상기 메타 파일을 생성하는 단계는,
상기 구분된 복수의 직사각형 구역 각각에 대응되는 래스터 이미지를 포함하는 메타 파일을 생성하는 래스터 이미지 변환 방법.
In the raster image conversion method,
Separating the raster image into a background region, a monochromatic region, and a polychromatic region;
Generating a meta-instruction corresponding to each of the divided regions; And
And generating a meta file based on the generated meta-instruction,
Wherein the generating the meta-instruction comprises:
Vectorizing the outline of the segmented monochrome region, generating a meta instruction corresponding to the vectorized outline,
If the shape of the divided multicolor area is not a rectangle, the divided multicolor area is divided into a plurality of rectangular areas,
The generating of the metafile comprises:
And generating a meta file including a raster image corresponding to each of the plurality of divided rectangular regions.
제1항에 있어서,
상기 구분된 배경 영역을 단색 배경, 그라데이션 배경 및 다색 배경 중 하나로 결정하는 단계;를 더 포함하고,
상기 메타 명령어를 생성하는 단계는,
상기 결정된 배경 영역이 단색 배경이면, 상기 배경 영역의 색을 갖는 직사각형을 묘사하는 메타 명령어를 생성하고,
상기 결정된 배경 영역이 그라데이션 배경이면, 상기 배경 영역에 대응되는 색의 경사 방향 및 타입을 결정하는 메타 명령어를 생성하는 것을 특징으로 하는 래스터 이미지 변환 방법.
The method according to claim 1,
Determining the divided background area as one of a monochrome background, a gradient background, and a multicolor background,
Wherein the generating the meta-instruction comprises:
If the determined background area is a monochrome background, generating a meta command describing a rectangle having a color of the background area,
If the determined background area is a gradation background, generating a meta command for determining an oblique direction and a type of a color corresponding to the background area.
제2항에 있어서,
상기 메타 파일을 생성하는 단계는,
상기 결정된 배경 영역이 다색 배경이면, 상기 배경 영역에 대응되는 래스터 이미지를 포함하는 메타 파일을 생성하는 것을 특징으로 하는 래스터 이미지 변환 방법.
3. The method of claim 2,
The generating of the metafile comprises:
If the determined background area is a multicolor background, generating a meta file including a raster image corresponding to the background area.
제2항에 있어서,
상기 구분된 배경 영역에 적용될 투명도를 결정하는 단계;를 더 포함하고,
상기 메타 파일을 생성하는 단계는,
상기 결정된 투명도에 대응되는 메타 명령어를 포함하는 메타 파일을 생성하는 것을 특징으로 하는 래스터 이미지 변환 방법.
3. The method of claim 2,
Further comprising: determining transparency to be applied to the divided background area,
The generating of the metafile comprises:
And generating a meta file including a meta command corresponding to the determined transparency.
제1항에 있어서,
상기 구분된 복수의 사각형 구역 각각에 대응되는 복수의 래스터 이미지의 해상도를 변환하는 단계;를 더 포함하고,
상기 메타 파일을 생성하는 단계는,
상기 해상도가 변경된 복수의 래스터 이미지를 포함하는 메타 파일을 생성하는 것을 특징으로 하는 래스터 이미지 변환 방법.
The method according to claim 1,
Converting a resolution of a plurality of raster images corresponding to each of the divided plurality of rectangular zones,
The generating of the metafile comprises:
And generating a meta file including a plurality of raster images whose resolution is changed.
삭제delete 제5항에 있어서,
상기 메타 명령어를 생성하는 단계는,
상기 구분된 복수의 사각형 구역 각각에 대응되는 메타 명령어를 생성하는 것을 특징으로 하는 래스터 이미지 변환 방법.
6. The method of claim 5,
Wherein the generating the meta-instruction comprises:
And generating a meta-instruction corresponding to each of the plurality of divided rectangular regions.
제1항에 있어서,
상기 메타 명령어를 생성하는 단계는,
상기 구분된 단색 영역의 윤곽을 검출하는 단계;
상기 검출된 윤곽을 간소화하는 단계; 및
상기 간소화된 윤곽에 대응되는 메타 명령어를 생성하는 단계;를 포함하는 것을 특징으로 하는 래스터 이미지 변환 방법.
The method according to claim 1,
Wherein the generating the meta-instruction comprises:
Detecting an outline of the divided monochromatic region;
Simplifying the detected contour; And
And generating a meta-instruction corresponding to the simplified outline.
제8항에 있어서,
상기 검출된 윤곽을 간소화하는 단계는,
상기 검출된 윤곽을 직선 및 베지어 커브만으로 간소화하는 것을 특징으로 하는 래스터 이미지 변환 방법.
9. The method of claim 8,
Wherein the step of simplifying the detected contour comprises:
Wherein the detected contour is simplified by only a straight line and a Bezier curve.
제1항에 있어서,
상기 생성된 메타 명령어를 압축하는 단계;를 더 포함하고,
상기 메타 파일을 생성하는 단계는,
상기 압축된 메타 명령어를 기초로 메타 파일을 생성하는 것을 특징으로 하는 래스터 이미지 변환 방법.
The method according to claim 1,
Further comprising compressing the generated meta-instruction,
The generating of the metafile comprises:
And generating a meta file based on the compressed meta-instructions.
래스터 이미지 변환 장치에 있어서,
래스터 이미지를 입력받는 통신 인터페이스부; 및
상기 입력받은 래스터 이미지를 배경 영역, 단색 영역 및 다색 영역으로 구분하고, 상기 구분된 영역 각각에 대응되는 메타 명령어를 생성하고, 상기 생성된 메타 명령어를 기초로 메타 파일을 생성하는 제어부;를 포함하고,
상기 제어부는,
상기 구분된 단색 영역의 윤곽을 벡터화하고, 상기 벡터화된 윤곽에 대응되는 메타 명령어를 생성하고,
상기 구분된 다색 영역의 형태가 직사각형이 아니면, 상기 구분된 다색 영역을 복수의 직사각형 구역으로 구분하고,
상기 구분된 복수의 직사각형 구역 각각에 대응되는 래스터 이미지를 포함하는 메타 파일을 생성하는 래스터 이미지 변환 장치.
A raster image conversion apparatus comprising:
A communication interface unit for receiving a raster image; And
And a control unit for dividing the input raster image into a background region, a monochromatic region, and a multicolor region, generating a meta command corresponding to each of the divided regions, and generating a meta file based on the generated meta command ,
Wherein,
Vectorizing the outline of the segmented monochrome region, generating a meta instruction corresponding to the vectorized outline,
If the shape of the divided multicolor area is not a rectangle, the divided multicolor area is divided into a plurality of rectangular areas,
And generates a meta file including a raster image corresponding to each of the plurality of divided rectangular regions.
제11항에 있어서,
상기 제어부는,
상기 구분된 배경 영역을 단색 배경, 그라데이션 배경 및 다색 배경 중 하나로 결정하고,
상기 결정된 배경 영역이 단색 배경이면, 상기 배경 영역의 색을 갖는 직사각형을 묘사하는 메타 명령어를 생성하고,
상기 결정된 배경 영역이 그라데이션 배경이면, 상기 배경 영역에 대응되는 색의 경사 방향 및 타입을 결정하는 메타 명령어를 생성하는 것을 특징으로 하는 래스터 이미지 변환 장치.
12. The method of claim 11,
Wherein,
Determining the separated background area as one of a monochrome background, a gradient background, and a multicolor background,
If the determined background area is a monochrome background, generating a meta command describing a rectangle having a color of the background area,
And generates a meta-instruction for determining the oblique direction and the type of the color corresponding to the background area if the determined background area is a gradation background.
제12항에 있어서,
상기 제어부는,
상기 결정된 배경 영역이 다색 배경이면, 상기 배경 영역에 대응되는 래스터 이미지를 포함하는 메타 파일을 생성하는 것을 특징으로 하는 래스터 이미지 변환 장치.
13. The method of claim 12,
Wherein,
And generates a meta file including a raster image corresponding to the background area if the determined background area is a multicolored background.
제11항에 있어서,
상기 제어부는,
상기 구분된 단색 영역의 윤곽을 검출하고, 상기 검출된 윤곽을 간소화하고, 상기 간소화된 윤곽에 대응되는 메타 명령어를 생성하는 것을 특징으로 하는 래스터 이미지 변환 장치.
12. The method of claim 11,
Wherein,
Detecting a contour of the divided monochromatic region, simplifying the detected contour, and generating a meta-instruction corresponding to the simplified contour.
제11항에 있어서,
상기 제어부는,
상기 생성된 메타 명령어를 압축하고, 상기 압축된 메타 명령어를 기초로 메타 파일을 생성하는 것을 특징으로 하는 래스터 이미지 변환 장치.
12. The method of claim 11,
Wherein,
Compresses the generated meta-instruction, and generates a meta file based on the compressed meta-instruction.
화상독취장치에 있어서,
원고를 스캔하여 래스터 이미지를 생성하는 스캔부; 및
상기 생성된 래스터 이미지를 배경 영역, 단색 영역 및 다색 영역으로 구분하고, 상기 구분된 영역 각각에 대응되는 메타 명령어를 생성하고, 상기 생성된 메타 명령어를 기초로 메타 파일을 생성하는 제어부;를 포함하고,
상기 제어부는,
상기 구분된 단색 영역의 윤곽을 벡터화하고, 상기 벡터화된 윤곽에 대응되는 메타 명령어를 생성하고,
상기 구분된 다색 영역의 형태가 직사각형이 아니면, 상기 구분된 다색 영역을 복수의 직사각형 구역으로 구분하고,
상기 구분된 복수의 직사각형 구역 각각에 대응되는 래스터 이미지를 포함하는 메타 파일을 생성하는 화상독취장치.
In the image reading apparatus,
A scan unit for scanning a document to generate a raster image; And
And a controller for dividing the generated raster image into a background region, a monochrome region, and a multicolor region, generating a meta command corresponding to each of the divided regions, and generating a meta file based on the generated meta command ,
Wherein,
Vectorizing the outline of the segmented monochrome region, generating a meta instruction corresponding to the vectorized outline,
If the shape of the divided multicolor area is not a rectangle, the divided multicolor area is divided into a plurality of rectangular areas,
And generates a metafile including a raster image corresponding to each of the plurality of divided rectangular areas.
제16항에 있어서,
상기 제어부는,
상기 구분된 배경 영역을 단색 배경, 그라데이션 배경 및 다색 배경 중 하나로 결정하고,
상기 결정된 배경 영역이 단색 배경이면, 상기 배경 영역의 색을 갖는 직사각형을 묘사하는 메타 명령어를 생성하고,
상기 결정된 배경 영역이 그라데이션 배경이면, 상기 배경 영역에 대응되는 색의 경사 방향 및 타입을 결정하는 메타 명령어를 생성하는 것을 특징으로 하는 화상독취장치.
17. The method of claim 16,
Wherein,
Determining the separated background area as one of a monochrome background, a gradient background, and a multicolor background,
If the determined background area is a monochrome background, generating a meta command describing a rectangle having a color of the background area,
And generates a meta-instruction for determining an oblique direction and a type of a color corresponding to the background area if the determined background area is a gradation background.
제16항에 있어서,
상기 제어부는,
상기 구분된 단색 영역의 윤곽을 검출하고, 상기 검출된 윤곽을 간소화하고, 상기 간소화된 윤곽에 대응되는 메타 명령어를 생성하는 것을 특징으로 하는 화상독취장치.
17. The method of claim 16,
Wherein,
Detecting the outline of the divided monochrome region, simplifying the detected outline, and generating a meta instruction corresponding to the simplified outline.
제18항에 있어서,
상기 제어부는,
상기 검출된 윤곽을 직선 및 베지어 커브만으로 간소화하는 것을 특징으로 하는 화상독취장치.
19. The method of claim 18,
Wherein,
And the detected contour is simplified by only a straight line and a Bezier curve.
래스터 이미지 변환 방법을 실행하기 위한 프로그램을 포함하는 컴퓨터 판독가능 기록매체에 있어서,
상기 래스터 이미지 변환 방법은,
상기 래스터 이미지에서 배경 영역, 단색 영역 및 다색 영역으로 구분하는 단계;
상기 구분된 영역 각각에 대응되는 메타 명령어를 생성하는 단계; 및
상기 생성된 메타 명령어를 기초로 메타 파일을 생성하는 단계;를 포함하고,
상기 메타 명령어를 생성하는 단계는,
상기 구분된 단색 영역의 윤곽을 벡터화하고, 상기 벡터화된 윤곽에 대응되는 메타 명령어를 생성하고,
상기 구분된 다색 영역의 형태가 직사각형이 아니면, 상기 구분된 다색 영역을 복수의 직사각형 구역으로 구분하고,
상기 메타 파일을 생성하는 단계는,
상기 구분된 복수의 직사각형 구역 각각에 대응되는 래스터 이미지를 포함하는 메타 파일을 생성하는 컴퓨터 판독가능 기록 매체.
A computer-readable recording medium containing a program for executing a raster image conversion method,
The raster image conversion method includes:
Separating the raster image into a background region, a monochromatic region, and a polychromatic region;
Generating a meta-instruction corresponding to each of the divided regions; And
And generating a meta file based on the generated meta-instruction,
Wherein the generating the meta-instruction comprises:
Vectorizing the outline of the segmented monochrome region, generating a meta instruction corresponding to the vectorized outline,
If the shape of the divided multicolor area is not a rectangle, the divided multicolor area is divided into a plurality of rectangular areas,
The generating of the metafile comprises:
Generating a metafile including a raster image corresponding to each of the plurality of divided rectangular regions.
KR1020120035063A 2011-11-17 2012-04-04 Raster image conversion apparatus, image scanning apparatus, method for conversion of raster image, and computer-readable recording medium KR101869302B1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
US13/670,973 US20130128324A1 (en) 2011-11-17 2012-11-07 Raster image conversion apparatus, image scanning apparatus, method of converting raster image, and computer-readable recording medium
EP12193139.8A EP2597616A3 (en) 2011-11-17 2012-11-19 Raster image conversion apparatus, image scanning apparatus, method of converting raster image, and computer-readable recording medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
RU2011146617/08A RU2469400C1 (en) 2011-11-17 2011-11-17 Method to convert bitmapped image into metafile
RURU2011146617 2011-11-17

Publications (2)

Publication Number Publication Date
KR20130054899A KR20130054899A (en) 2013-05-27
KR101869302B1 true KR101869302B1 (en) 2018-06-20

Family

ID=48663595

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020120035063A KR101869302B1 (en) 2011-11-17 2012-04-04 Raster image conversion apparatus, image scanning apparatus, method for conversion of raster image, and computer-readable recording medium

Country Status (2)

Country Link
KR (1) KR101869302B1 (en)
RU (1) RU2469400C1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102481005B1 (en) 2022-07-27 2022-12-26 주식회사 이안 System for creating electronic piping drawings using parer piping drawings
KR20240012673A (en) 2022-07-21 2024-01-30 (주)인텔리코리아 System and method for converting raster images of traditional wooden buildings into cad electronic drawings

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
RU2534005C2 (en) * 2013-02-01 2014-11-27 Корпорация "САМСУНГ ЭЛЕКТРОНИКС Ко., Лтд." Method and system for converting screenshot into metafile
RU2643431C2 (en) * 2015-09-02 2018-02-01 Общество С Ограниченной Ответственностью "Яндекс" Method and server of curve simplification
RU2637903C2 (en) * 2015-09-29 2017-12-07 Общество С Ограниченной Ответственностью "Яндекс" Method and computer device for creating simplified borders of graphic objects
RU2637901C2 (en) * 2015-11-06 2017-12-07 Общество С Ограниченной Ответственностью "Яндекс" Method and data storing computer device for drawing graphic objects
KR20180067221A (en) 2016-12-12 2018-06-20 에이치피프린팅코리아 주식회사 Host divice transmitting print data to printer and method for encoding print data by host device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005346137A (en) * 2004-05-31 2005-12-15 Canon Inc Processing method for converting into function, function approximation processor and image processor
JP2006014331A (en) * 2004-06-25 2006-01-12 Xerox Corp Document compression method, system for compressing document, and image processing apparatus
JP2007129456A (en) * 2005-11-02 2007-05-24 Sharp Corp Image encoder, encoding method and program, and recording medium
JP2009296150A (en) * 2008-06-03 2009-12-17 Konica Minolta Business Technologies Inc Image processor, image conversion method and computer program

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5708717A (en) * 1995-11-29 1998-01-13 Alasia; Alfred Digital anti-counterfeiting software method and apparatus
US7289122B1 (en) * 2004-12-22 2007-10-30 Sun Microsystems, Inc. Method and apparatus for approximating an arbitrary shape with a closed Bezier curve
US8441684B2 (en) * 2009-07-07 2013-05-14 Xerox Corporation Between-segment discontinuity reduction for text vectorization using dominant point classification

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005346137A (en) * 2004-05-31 2005-12-15 Canon Inc Processing method for converting into function, function approximation processor and image processor
JP2006014331A (en) * 2004-06-25 2006-01-12 Xerox Corp Document compression method, system for compressing document, and image processing apparatus
JP2007129456A (en) * 2005-11-02 2007-05-24 Sharp Corp Image encoder, encoding method and program, and recording medium
JP2009296150A (en) * 2008-06-03 2009-12-17 Konica Minolta Business Technologies Inc Image processor, image conversion method and computer program

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
일본 공개특허공보 특개2005-346137호(2005.12.15.) 1부. *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20240012673A (en) 2022-07-21 2024-01-30 (주)인텔리코리아 System and method for converting raster images of traditional wooden buildings into cad electronic drawings
KR102481005B1 (en) 2022-07-27 2022-12-26 주식회사 이안 System for creating electronic piping drawings using parer piping drawings

Also Published As

Publication number Publication date
KR20130054899A (en) 2013-05-27
RU2469400C1 (en) 2012-12-10

Similar Documents

Publication Publication Date Title
KR101869302B1 (en) Raster image conversion apparatus, image scanning apparatus, method for conversion of raster image, and computer-readable recording medium
JP4995057B2 (en) Drawing apparatus, printing apparatus, drawing method, and program
CN1859541B (en) Image processing apparatus and its control method
US20140285824A1 (en) Image processing apparatus, image processing method and program
US10592766B2 (en) Image processing apparatus and medium storing program executable by image processing apparatus
JP5700014B2 (en) Printing system, printing control program, and recording medium
US20090303550A1 (en) Image processing apparatus and image processing method
CN104427157B (en) Image processing apparatus and image processing method
US6373602B1 (en) Facsimile transmission of highlight information
JP5644214B2 (en) Print control program, information processing apparatus, storage medium, printing apparatus, printing system
US20120050765A1 (en) Image processing apparatus, image processing method, and storage medium
JP2008042345A (en) Image processing method and image processor
EP2597616A2 (en) Raster image conversion apparatus, image scanning apparatus, method of converting raster image, and computer-readable recording medium
WO2015107622A1 (en) Image processing program, display program, image processing method, display method, image processing device, and information processing device
JP6414475B2 (en) Computer program and control device
JP5012871B2 (en) Image processing apparatus, image forming apparatus, and image processing program
JP4086425B2 (en) Image processing apparatus and method
JP5790000B2 (en) Printing apparatus and printing method therefor
JP2007081886A (en) Drawing processing apparatus
JP5764992B2 (en) Image processing apparatus, image processing method, and image processing program
JP3826091B2 (en) Information processing apparatus, information processing method, printing apparatus, and printing method
JP6361933B2 (en) Image forming system, printer driver, image forming apparatus, and rendering program
JP5720335B2 (en) Image processing apparatus and image processing program
JP4991429B2 (en) Coloring material usage reduction program
JP2001285662A (en) Image processing apparatus and its method

Legal Events

Date Code Title Description
N231 Notification of change of applicant
A201 Request for examination
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right