KR100962978B1 - Offer method of black and white image in tag field of color image - Google Patents

Offer method of black and white image in tag field of color image Download PDF

Info

Publication number
KR100962978B1
KR100962978B1 KR1020090101315A KR20090101315A KR100962978B1 KR 100962978 B1 KR100962978 B1 KR 100962978B1 KR 1020090101315 A KR1020090101315 A KR 1020090101315A KR 20090101315 A KR20090101315 A KR 20090101315A KR 100962978 B1 KR100962978 B1 KR 100962978B1
Authority
KR
South Korea
Prior art keywords
black
image
white
color
file
Prior art date
Application number
KR1020090101315A
Other languages
Korean (ko)
Inventor
이진표
Original Assignee
(주)비주얼인포시스
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by (주)비주얼인포시스 filed Critical (주)비주얼인포시스
Priority to KR1020090101315A priority Critical patent/KR100962978B1/en
Application granted granted Critical
Publication of KR100962978B1 publication Critical patent/KR100962978B1/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/40Picture signal circuits
    • H04N1/40012Conversion of colour to monochrome
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F7/00Methods or arrangements for processing data by operating upon the order or content of the data handled
    • G06F7/22Arrangements for sorting or merging computer data on continuous record carriers, e.g. tape, drum, disc
    • G06F7/32Merging, i.e. combining data contained in ordered sequence on at least two record carriers to produce a single carrier or set of carriers having all the original data in the ordered sequence merging methods in general

Abstract

PURPOSE: A method for offering a black and white image inserted into a tag area of a color image is provided to minimize download or loading speed by storing together the same black and white image or gray image in one color image file, and downloading the black and white image or gray image inserted into the tag area of the color image as occasion demands. CONSTITUTION: A black and white image insertion unit inserts a black and white image or gray image file of a black and white image generation unit into a tag area of a color image file of a color image generation unit(S140). A file storage unit stores the black and white image or gray image file and the color image file to one file(S150). A referred image output unit outputs the black and white image or gray image of the tag area(S160).

Description

컬러 이미지의 태그 영역에 삽입된 흑백 이미지를 제공하는 방법{offer method of black and white image in tag field of color image.}Offer method of black and white image in tag field of color image.}

본 발명은 컬러 이미지의 태그 영역에 삽입된 흑백 이미지를 제공하는 방법에 관한 것으로서, 더욱 상세하게는 컬러 이미지(jpeg, jpeg2000, Tiff 등)의 생성, 압축, 병합 작업시에 컬러이미지 파일의 태그 영역에 컬러이미지와 동일한 흑백이미지 또는 그레이이미지 파일을 삽입하여 저장할 때 한 개의 컬러이미지 파일에 동일한 흑백이미지 또는 그레이이미지를 태그영역에 같이 저장하여 흑백이미지 또는 그레이이미지를 데이터추출, 입력, 조회 등의 업무에 활용할 경우 컬러이미지 파일의 태그 영역에 삽입된 흑백이미지 또는 그레이이미지 파일을 다운로드하여 보여줌으로써 다운로드나 Loading 속도를 최소화하여 조회 및 업무처리 속도를 빠르게 처리할 수 있는 컬러 이미지의 태그 영역에 삽입된 흑백 이미지를 제공하는 방법에 관한 것이다.The present invention relates to a method for providing a black and white image inserted into a tag region of a color image, and more particularly, to a tag region of a color image file during generation, compression, and merging of a color image (jpeg, jpeg2000, Tiff, etc.). When inserting and saving the same black and white image or gray image file in the same color image, the same black and white image or gray image is saved in one color image file in the tag area to extract, input and search data. When used in the black and white image inserted in the tag area of the color image that can be processed quickly to search and processing by minimizing the download or loading speed by downloading and showing the black and white image or gray image file inserted in the tag area of the color image file Relates to providing an image.

현재 대부분의 문서를 컬러이미지(jpeg, jpeg2000, Tiff)로 저장 관리하여 업무에 활용하고자 하지만 컬러이미지의 Size가 크기 때문에 Loading이나 조회 시간 지연으로 인하여 작업 시간이 많이 소요되고 있으며, 원본은 컬러이미지로 생성하여 인증된 서버, 스토리지 등에 보관하고 DB추출, 입력, 조회 등을 위하여 별도의 흑백이미지를 생성하여 업무에 활용하고 있다.Currently, most documents are saved and managed as color images (jpeg, jpeg2000, Tiff), but they require a lot of work time because of the large size of the color images. It is created and stored in the certified server, storage, etc., and creates a separate black and white image for DB extraction, input, inquiry, etc.

하지만, 흑백이미지와 컬러이미지가 별도의 파일로 생성되기 때문에 흑백이미지가 데이터영역 컬러이미지와 동일하지 않을 수 있으며 같은 문서로 인정하기에는 법적인 문제가 있을 수 있다. However, since the black and white image and the color image are generated as separate files, the black and white image may not be the same as the data region color image, and there may be a legal problem to recognize the same document.

따라서, PC 및 단말기에서 네트워크를 통하여 서버나 스토리지에 등의 이미지가 저장된 저장장치에서 대용량 이미지를 다운로드 받아서 이미지를 입력, 수정, 조회 등의 업무를 할 경우 다운로드나 Loading 속도를 최소화하여 조회 및 업무처리 속도를 빠르게 처리할 수 있는 기술을 요구하게 되었다.Therefore, when a large-scale image is downloaded from a storage device such as an image stored in a server or storage through a network in a PC or a terminal, and an image is inputted, modified, inquired, etc. There is a demand for technology that can handle speeds quickly.

따라서 본 발명은 상기와 같은 종래 기술의 문제점을 감안하여 제안된 것으로서, 본 발명의 목적은 컬러 이미지(jpeg, jpeg2000, Tiff 등)의 생성, 압축, 병합 작업시에 컬러이미지 파일의 태그 영역에 컬러이미지와 동일한 흑백이미지 또는 그레이이미지 파일을 삽입하여 저장할 때 한 개의 컬러이미지 파일에 동일한 흑백이미지 또는 그레이이미지를 태그영역에 같이 저장하여 흑백이미지 또는 그레이이미지를 데이터추출, 입력, 조회 등의 업무에 활용할 경우 컬러이미지 파일의 태그 영역에 삽입된 흑백이미지 또는 그레이이미지 파일을 다운로드하여 보여줌으로써 다운로드나 Loading 속도를 최소화하여 조회 및 업무처리 속도를 빠르게 처리할 수 있도록 하는데 있다.Accordingly, the present invention has been proposed in view of the above-described problems of the prior art, and an object of the present invention is to provide a color in a tag region of a color image file during generation, compression, and merging of color images (jpeg, jpeg2000, Tiff, etc.). When inserting and saving the same black and white image or gray image file, the same black and white image or gray image is saved in one color image file in the tag area to use the black and white image or gray image for data extraction, input, inquiry, etc. In this case, the black and white image or the gray image file inserted in the tag area of the color image file is downloaded and shown to minimize the download or loading speed so that the inquiry and processing speed can be processed quickly.

본 발명이 해결하고자 하는 과제를 달성하기 위하여,In order to achieve the problem to be solved by the present invention,

본 발명의 일실시예에 따른 컬러 이미지의 태그 영역에 삽입된 흑백 이미지를 제공하는 방법은,Method for providing a black and white image inserted in the tag region of the color image according to an embodiment of the present invention,

스캐너장치에 의해 종이문서를 스캔하는 전자문서변환단계;An electronic document conversion step of scanning the paper document by the scanner device;

상기 스캔되어진 전자문서를 컬러 이미지 파일로 생성하는 컬러이미지생성단계;A color image generation step of generating the scanned electronic document as a color image file;

상기 생성된 컬러 이미지 파일을 흑백이미지 또는 그레이이미지 파일로 생성 하는 흑백이미지생성단계;A black and white image generation step of generating the generated color image file as a black and white image or a gray image file;

상기 생성된 컬러 이미지 파일의 태그 영역에 상기 생성된 흑백이미지 또는 그레이이미지 파일을 삽입하는 흑백이미지삽입단계;를 포함하여 이루어지는 것을 특징으로 하며 이를 통해 본 발명의 과제를 해결하게 된다.And a black and white image inserting step of inserting the generated black and white image or a gray image file into a tag region of the generated color image file, thereby solving the problems of the present invention.

이상의 구성 및 작용을 지니는 본 발명에 따른 컬러 이미지의 태그 영역에 삽입된 흑백 이미지를 제공하는 방법은,Method for providing a black and white image inserted in the tag region of the color image according to the present invention having the above configuration and operation,

컬러 이미지(jpeg, jpeg2000, Tiff 등)의 생성, 압축, 병합 작업시에 컬러이미지 파일의 태그 영역에 컬러이미지와 동일한 흑백이미지 또는 그레이이미지 파일을 삽입하여 저장할 때 한 개의 컬러이미지 파일에 동일한 흑백이미지 또는 그레이이미지를 같이 저장하여 흑백이미지 또는 그레이이미지를 데이터추출, 입력, 조회 등의 업무에 활용할 경우 컬러이미지 파일의 태그 영역에 삽입된 흑백이미지 또는 그레이이미지 파일을 다운로드하여 보여줌으로써 다운로드나 Loading 속도를 최소화하여 조회 및 업무처리 속도를 빠르게 처리할 수 있는 효과를 제공하게 된다.When creating, compressing, or merging color images (jpeg, jpeg2000, Tiff, etc.), the same monochrome image is stored in one color image file when the same monochrome image or gray image file is inserted and saved in the tag area of the color image file. Alternatively, if you save the gray image together and use the black and white image or the gray image for data extraction, input, inquiry, etc., you can download and display the black and white image or the gray image file inserted in the tag area of the color image file. By minimizing it, it provides the effect of speeding up inquiry and business processing speed.

상기 과제를 달성하기 위한 본 발명의 컬러 이미지의 태그 영역에 삽입된 흑백 이미지를 제공하는 방법은,Method for providing a black and white image inserted in the tag region of the color image of the present invention for achieving the above object,

스캐너장치에 의해 종이문서를 스캔하는 전자문서변환단계;An electronic document conversion step of scanning the paper document by the scanner device;

상기 스캔되어진 전자문서를 컬러 이미지 파일로 생성하는 컬러이미지생성단계;A color image generation step of generating the scanned electronic document as a color image file;

상기 생성된 컬러 이미지 파일을 흑백이미지 또는 그레이이미지 파일로 생성하는 흑백이미지생성단계;A black and white image generation step of generating the generated color image file as a black and white image or a gray image file;

상기 생성된 컬러 이미지 파일의 태그 영역에 상기 생성된 흑백이미지 또는 그레이이미지 파일을 삽입하는 흑백이미지삽입단계;를 포함하여 이루어지는 것을 특징으로 한다.And a black and white image inserting step of inserting the generated black and white image or a gray image file into a tag region of the generated color image file.

한편, 본 발명의 다른 일실시예에 따른 컬러 이미지의 태그 영역에 삽입된 흑백 이미지를 제공하는 방법은,On the other hand, the method for providing a black and white image inserted in the tag region of the color image according to another embodiment of the present invention,

스캐너장치에 의해 종이문서를 스캔하는 전자문서변환단계;An electronic document conversion step of scanning the paper document by the scanner device;

상기 스캔되어진 전자문서를 컬러 이미지 파일로 생성하는 컬러이미지생성단계;A color image generation step of generating the scanned electronic document as a color image file;

상기 생성된 컬러 이미지 파일을 흑백이미지 또는 그레이이미지 파일로 생성하는 흑백이미지생성단계;A black and white image generation step of generating the generated color image file as a black and white image or a gray image file;

상기 생성된 컬러 이미지 파일의 태그 영역에 상기 생성된 흑백이미지 또는 그레이이미지 파일을 삽입하는 흑백이미지삽입단계;A black and white image insertion step of inserting the generated black and white image or gray image file into a tag region of the generated color image file;

상기 흑백이미지삽입단계를 통해 처리된 태그 영역에 삽입된 흑백이미지 또는 그레이이미지와 데이터 영역의 컬러 이미지 파일을 하나의 파일로 저장하는 파일저장단계;A file storing step of storing the black and white image or the gray image inserted in the tag region processed through the black and white image inserting step and the color image file of the data region into one file;

이미지 파일의 조회시 상기 저장된 컬러 이미지 파일 내 데이터 영역의 컬러 이미지가 아닌 태그 영역의 흑백이미지 또는 그레이이미지를 획득하여 출력시키는 조회이미지출력단계;를 포함하여 이루어지는 것을 특징으로 한다.And an inquiry image output step of acquiring and outputting a black and white image or a gray image of a tag region instead of the color image of the data region in the stored color image file when the image file is inquired.

이때, 상기 컬러 이미지 파일에 메타데이터 입력 또는 수정시 데이터 영역의 컬러 이미지가 아닌 태그영역의 흑백이미지 또는 그레이이미지를 획득하여 수정하는 것을 특징으로 한다.In this case, when the metadata is input or modified in the color image file, a black and white image or a gray image of the tag region is acquired and modified instead of the color image of the data region.

이때, 상기 컬러 이미지 파일의 메타데이터 추출시 데이터 영역의 컬러 이미지가 아닌 태그영역의 흑백이미지 또는 그레이이미지에서 추출하는 것을 특징으로 한다.In this case, the metadata of the color image file may be extracted from the black and white image or the gray image of the tag region instead of the color image of the data region.

이때, 상기 컬러 이미지 파일은, In this case, the color image file,

태그 영역 및 데이터 영역을 포함하고 있는 것을 특징으로 한다.A tag area and a data area are included.

이때, 상기 컬러 이미지 파일은,In this case, the color image file,

태그 영역 및 데이터 영역을 포함하고 있으며, 상기 태그 영역에 흑백이미지 또는 그레이이미지 파일이 존재하며, 상기 데이터 영역에 원본 컬러이미지 파일이 존재하는 것을 특징으로 한다.A tag area and a data area are included, and the black and white image or gray image file exists in the tag area, and the original color image file exists in the data area.

이때, 상기 흑백이미지생성단계는,At this time, the black and white image generation step,

색깔판별모듈에 의해 컬러 이미지 파일 내의 레드 및 블루 색깔을 체크하여 검정색으로 생성하고 나머지 색깔은 흰색으로 생성하는 색깔판별단계와,The color discrimination step of checking the red and blue colors in the color image file by the color discrimination module to generate black and the remaining colors to white,

하이로우계산모듈에 의해 변경할 색상의 하이, 로우 값을 계산하는 하이로우계산단계와,A high low calculating step of calculating high and low values of a color to be changed by a high low calculating module;

변경색상레이트계산모듈에 의해 변경할 색상의 Rate 값을 구하는 변경색상레 이트계산단계와,A change color rate calculation step of obtaining a rate value of a color to be changed by the change color rate calculation module;

흑백변환모듈에 의해 레이트(rate) 값에 따라 블랙/화이트로 변환하게 되는 흑백변환단계를 포함하여 구성되는 것을 특징으로 한다.The black and white conversion module is characterized in that it comprises a black and white conversion step to convert to black / white according to the rate (rate).

이하, 본 발명에 의한 컬러 이미지의 태그 영역에 삽입된 흑백 이미지를 제공하는 방법의 실시예를 통해 상세히 설명하도록 한다.Hereinafter, an embodiment of a method of providing a black and white image inserted into a tag region of a color image according to the present invention will be described in detail.

도 1은 본 발명의 일실시예에 따른 컬러 이미지의 태그 영역에 삽입된 흑백 이미지를 제공하는 방법의 흐름도이다.1 is a flowchart of a method of providing a black and white image inserted into a tag region of a color image according to an embodiment of the present invention.

도 1에 도시한 바와 같이, 본 발명의 컬러 이미지의 태그 영역에 삽입된 흑백 이미지를 제공하는 방법은,As shown in Fig. 1, the method for providing a black and white image inserted into a tag region of a color image of the present invention is as follows.

스캐너장치에 의해 종이문서를 스캔하는 전자문서변환단계(S110);An electronic document conversion step (S110) of scanning the paper document by the scanner device;

상기 스캔되어진 전자문서를 컬러 이미지 파일로 생성하는 컬러이미지생성단계(S120);A color image generation step (S120) of generating the scanned electronic document as a color image file;

상기 생성된 컬러 이미지 파일을 흑백이미지 또는 그레이이미지 파일로 생성하는 흑백이미지생성단계(S130);A black and white image generation step (S130) of generating the generated color image file as a black and white image or a gray image file;

상기 생성된 컬러 이미지 파일의 태그 영역에 상기 생성된 흑백이미지 또는 그레이이미지 파일을 삽입하는 흑백이미지삽입단계(S140);A black and white image insertion step (S140) of inserting the generated black and white image or gray image file into a tag region of the generated color image file;

상기 흑백이미지삽입단계를 통해 처리된 태그 영역에 삽입된 흑백이미지 또는 그레이이미지와 데이터 영역의 컬러 이미지 파일을 하나의 파일로 저장하는 파일저장단계(S150);A file storage step (S150) of storing the black and white image or the gray image inserted in the tag region processed through the black and white image insertion step as a single file;

이미지 파일의 조회시 상기 저장된 컬러 이미지 파일 내 데이터 영역의 컬러 이미지가 아닌 태그 영역의 흑백이미지 또는 그레이이미지를 획득하여 출력시키는 조회이미지출력단계(S160);를 포함하여 이루어지는 것을 특징으로 한다.And an inquiry image output step (S160) of acquiring and outputting a black and white image or a gray image of a tag region instead of the color image of the data region in the stored color image file when the image file is inquired.

본 발명의 컬러 이미지의 태그 영역에 삽입된 흑백 이미지를 제공하는 방법을 수행하기 위한 시스템은,A system for performing a method for providing a black and white image inserted into a tag region of a color image of the present invention,

종이문서를 스캔하는 스캐너장치(미도시);A scanner device (not shown) for scanning a paper document;

상기 스캔되어진 전자문서를 컬러 이미지 파일로 생성하는 컬러이미지생성부(미도시);A color image generation unit (not shown) for generating the scanned electronic document as a color image file;

상기 생성된 컬러 이미지 파일을 흑백이미지 또는 그레이이미지 파일로 생성하는 흑백이미지생성부(미도시);A black and white image generation unit (not shown) for generating the generated color image file as a black and white image or a gray image file;

상기 생성된 컬러 이미지 파일의 태그 영역에 상기 생성된 흑백이미지 또는 그레이이미지 파일을 삽입하는 흑백이미지삽입부(미도시);A black and white image insertion unit (not shown) for inserting the generated black and white image or gray image file into a tag region of the generated color image file;

상기 흑백이미지삽입부를 통해 처리된 태그 영역에 삽입된 흑백이미지 또는 그레이이미지와 데이터 영역의 컬러 이미지 파일을 하나의 파일로 저장하는 파일저장부(미도시);를 기본적으로 구성하고 있으며, 이미지 파일의 조회시 상기 저장된 컬러 이미지 파일 내 데이터 영역의 컬러 이미지가 아닌 태그 영역의 흑백이미지 또는 그레이이미지를 획득하여 출력시키는 조회이미지출력부(미도시)를 포함하여 구성하여 본 발명의 방법을 제공하게 되는 것이다.A file storage unit (not shown) for storing the black and white image or the gray image inserted in the tag region processed by the black and white image insertion unit as a single file; It provides a method of the present invention by including an inquiry image output unit (not shown) for acquiring and outputting a black and white image or a gray image of a tag region instead of the color image of the data region in the stored color image file. .

본 발명의 단계를 구체적으로 설명하자면 하기와 같다.The steps of the present invention will be described in detail below.

상기 전자문서변환단계(S110)는 스캐너장치에 의해 종이문서를 스캔하게 되며, 상기 스캔되어진 전자문서를 컬러이미지생성부에 의해 컬러 이미지 파일로 생 성(S120)하게 된다.The electronic document conversion step (S110) is to scan the paper document by the scanner device, and generates the scanned electronic document as a color image file by the color image generating unit (S120).

그리고, 상기 생성된 컬러 이미지 파일을 흑백이미지생성부에 의해 흑백이미지 또는 그레이이미지 파일로 생성(S130)하게 된다.The generated color image file is generated as a black and white image or a gray image file by the black and white image generator (S130).

즉, 도 3을 참조하여 설명하자면 흑백이미지생성부는 색깔판별모듈, 하이로우계산모듈, 변경색상레이트계산모듈, 흑백변환모듈을 포함하여 구성되며, 색깔판별모듈에 의해 컬러 이미지 파일 내의 레드 및 블루 색깔을 체크하여 검정색으로 생성하고 나머지 색깔은 흰색으로 생성하게 되고, 하이로우계산모듈에 의해 변경할 색상의 하이, 로우 값을 계산하게 되며, 변경색상레이트계산모듈에 의해 변경할 색상의 Rate 값을 구하게 되며, 흑백변환모듈에 의해 레이트(rate) 값에 따라 블랙/화이트로 변환하게 되는 것이다.That is, referring to FIG. 3, the black and white image generation unit includes a color discrimination module, a hi-low calculation module, a change color rate calculation module, and a black and white conversion module, and the red and blue colors in the color image file by the color discrimination module. Check to generate black and the remaining colors to white, calculate the high and low values of the color to be changed by the high low calculation module, and obtain the rate value of the color to be changed by the change color rate calculation module. The black-and-white conversion module converts the black / white according to the rate value.

즉, 상기 색깔판별모듈은 컬러 이미지 파일 내의 레드 및 블루 색깔을 체크하여 검정색으로 생성하고 나머지 색깔은 흰색으로 생성하게 된다.(S131)That is, the color discrimination module generates black by checking red and blue colors in the color image file and generates the remaining colors as white (S131).

바람직한 예를 들자면, 하기의 int ConvertBWImage(ImageTag *img, unsigned char **bwimage ,int rgbPriority)를 이용하게 된다.As a preferred example, the following int ConvertBWImage (ImageTag * img, unsigned char ** bwimage, int rgbPriority) is used.

int ConvertBWImage(ImageTag *img, unsigned char **bwimage ,int rgbPriority)int ConvertBWImage (ImageTag * img, unsigned char ** bwimage, int rgbPriority)

{{

int x,y,c;int x, y, c;

int l = 255,h = 0;int l = 255, h = 0;

int avg=0,cnt=0;int avg = 0, cnt = 0;

double sum=0;double sum = 0;

int bCount =0;int bCount = 0;

그 다음으로 하이로우계산모듈은 변경할 색상의 하이, 로우 값을 계산(S132)하게 되며 그 알고리즘은 하기와 같다.Next, the high low calculation module calculates high and low values of the color to be changed (S132), and the algorithm is as follows.

for(y=0; y < img->ysize; y++)for (y = 0; y <img-> ysize; y ++)

{{

for(x=0; x < img->xsize; x++)for (x = 0; x <img-> xsize; x ++)

{ {

c = (int)(img->image[y][x*3+0]*0.2)+img->image[y][x*3+1]+int(img->image[y][x*3+2]);c = (int) (img-> image [y] [x * 3 + 0] * 0.2) + img-> image [y] [x * 3 + 1] + int (img-> image [y] [x * 3 + 2]);

l = min(c,l);l = min (c, l);

h = max(c,h);h = max (c, h);

}}

}}

그 다음으로 변경색상레이트계산모듈은 변경할 색상의 Rate 값을 구하게 되며(S133), 그 알고리즘은 하기와 같다.Next, the change color rate calculation module obtains a rate value of the color to be changed (S133), and the algorithm is as follows.

for(y=0; y < img->ysize; y++)for (y = 0; y <img-> ysize; y ++)

{{

for(x=0; x < img->xsize; x++)for (x = 0; x <img-> xsize; x ++)

{{

c = int(img->image[y][x*3+0])+img->image[y][x*3+1]+int(img->image[y][x*3+2]);c = int (img-> image [y] [x * 3 + 0]) + img-> image [y] [x * 3 + 1] + int (img-> image [y] [x * 3 + 2 ]);

if(c < l) if (c <l)

c = 0;c = 0;

else if (c>h) else if (c> h)

c = 255;c = 255;

else else

{{

if (h-l == 0)if (h-l == 0)

{{

c = ((c-l)*255);c = ((c-l) * 255);

}else} else

{{

c = ((c-l)*255)/(h-l);c = ((c-l) * 255) / (h-l);

}}

} }

bwimage[y][x] = c;bwimage [y] [x] = c;

sum += c;sum + = c;

cnt++;cnt ++;

}}

}}

avg = int(sum/cnt);avg = int (sum / cnt);

그 다음으로 흑백변환모듈은 Rate 값에 따라 블랙/화이트로 변환(S134)하게 되며, 그 알고리즘은 하기와 같다.Then, the black and white conversion module is converted to black / white according to the rate value (S134), the algorithm is as follows.

if (avg == 0)if (avg == 0)

{{

avg = 255;avg = 255;

}}

for(y=0; y < img->ysize; y++)for (y = 0; y <img-> ysize; y ++)

{{

for(x=0; x < img->xsize; x++)for (x = 0; x <img-> xsize; x ++)

{{

c = bwimage[y][x];c = bwimage [y] [x];

if(c < avg)if (c <avg)

bwimage[y][x] = 1;bwimage [y] [x] = 1;

elseelse

bwimage[y][x] = 0;bwimage [y] [x] = 0;

}}

}}

return 1;return 1;

}}

상기 생성된 컬러 이미지 파일의 태그 영역에 상기 생성된 흑백이미지 또는 그레이이미지 파일을 흑백이미지삽입부에 의해 삽입(S140)하게 된다.The generated black and white image or gray image file is inserted into the tag region of the generated color image file by the black and white image inserting unit (S140).

즉, 태그 영역에 상기 생성된 흑백이미지 또는 그레이이미지 파일을 흑백이미지삽입부에 의해 삽입하는 함수는 int Save_TIFF(char *fileName,BYTE *bwimage, int bufSize)이며 그 알고리즘은 하기와 같다.That is, the function of inserting the generated black and white image or gray image file into the tag area by the black and white image inserting unit is int Save_TIFF (char * fileName, BYTE * bwimage, int bufSize) and the algorithm is as follows.

int Save_TIFF(char *fileName,BYTE *bwimage, int bufSize)int Save_TIFF (char * fileName, BYTE * bwimage, int bufSize)

{{

TIFF *tif;    TIFF * tif;

tif = TIFFOpen(fileName,"a");    tif = TIFFOpen (fileName, "a");

if (bufSize>0)    if (bufSize> 0)

{    {

BYTE bsize = (BYTE) bufSize;BYTE bsize = (BYTE) bufSize;

TIFFSetField(tif, TIFFTAG_BW_IMAGE,bsize, bwimage);TIFFSetField (tif, TIFFTAG_BW_IMAGE, bsize, bwimage);

}     }

TIFFClose(tif);    TIFFClose (tif);

return (1);    return (1);

}}

상기 흑백이미지삽입단계를 통해 처리된 태그 영역에 삽입된 흑백이미지 또 는 그레이이미지 파일과 컬러 이미지 파일을 파일저장처리부(미도시)에 의해 하나의 파일로 파일저장부에 저장(S150)하게 된다.The black and white image or the gray image file and the color image file inserted in the tag region processed through the black and white image insertion step are stored as a file by the file storage processor (not shown) (S150).

상기와 같은 기본적인 저장 단계를 거치게 되며, 상기 파일저장부에 저장된 특정 컬러 이미지 파일을 조회할 경우에는 상기 저장된 컬러 이미지 파일 내 데이터 영역의 컬러 이미지가 아닌 태그 영역의 흑백이미지 또는 그레이이미지를 조회이미지출력부에 의해 획득하여 출력(S160)하게 된다.When the specific color image file stored in the file storage unit is inquired, the black and white image or the gray image of the tag region is displayed instead of the color image of the data region in the stored color image file. Acquired by the negative and output (S160).

상기와 같은 단계를 통해 컬러이미지 파일의 태그 영역에 삽입된 흑백이미지 또는 그레이이미지 파일을 다운로드하여 보여줌으로써 다운로드나 Loading 속도를 최소화하여 조회 및 업무처리 속도를 빠르게 처리할 수 있는 효과를 제공하게 된다.Through the above steps, the black and white image or the gray image file inserted into the tag region of the color image file is downloaded and shown, thereby minimizing the download or loading speed, thereby providing an effect of speeding up the inquiry and processing speed.

또한, 상기 파일저장부에 저장된 컬러 이미지 파일에 메타데이터 입력 또는 수정시 메타데이터수정부에 의해 데이터 영역의 컬러 이미지가 아닌 태그영역의 흑백이미지 또는 그레이이미지를 획득하여 수정하게 된다.In addition, when metadata is input or modified in the color image file stored in the file storage unit, the black and white image or the gray image of the tag region is acquired and modified by the metadata correction unit.

또한, 상기 파일저장부에 저장된 컬러 이미지 파일의 메타데이터 추출시 메타데이터추출부에 의해 데이터 영역의 컬러 이미지가 아닌 태그영역의 흑백이미지 또는 그레이이미지에서 추출하게 된다.In addition, when the metadata of the color image file stored in the file storage unit is extracted, the metadata extracting unit extracts the black image or the gray image of the tag region instead of the color image of the data region.

일반적인 메타 데이터 추출은 신경망알고리즘을 사용하여 추출하게 되며, 이러한 추출 기술은 이미 당업자들에게 널리 알려진 기술이므로 이에 대한 상세한 설명은 생략하도록 한다.General metadata extraction is extracted using neural network algorithm, and this extraction technique is already well known to those skilled in the art, so a detailed description thereof will be omitted.

한편, 본 발명의 컬러 이미지 파일은 도 2에 도시한 바와 같이, 태그 영역 및 데이터 영역을 포함하고 있으며, 상기 태그 영역에 흑백이미지 또는 그레이이미지 파일이 존재하며, 상기 데이터 영역에 원본 컬러이미지 파일이 존재하게 된다.Meanwhile, as shown in FIG. 2, the color image file of the present invention includes a tag region and a data region, and a black and white image or a gray image file exists in the tag region, and an original color image file is present in the data region. It will exist.

결론적으로 태그 영역에 삽입된 흑백이미지 또는 그레이이미지의 메타데이터를 추출하거나, 입력 혹은 수정하거나, 조회함으로써, 원본 컬러 이미지 파일을 출력시켜 확인하는 것보다 다운로드나 Loading 속도를 최소화하여 조회 및 업무처리 속도를 빠르게 처리할 수 있는 것이다.In conclusion, by extracting, inputting, modifying, or inquiring the metadata of the black and white image or the gray image inserted in the tag area, the search and processing speed is minimized by minimizing the download or loading speed than outputting and checking the original color image file. Can be processed quickly.

본 발명에서 언급하고 있는 이미지 포맷은 일반적인 TIFF, JPEG, JPEG2000, BMP 등으로 어느 한 포맷에 한정되지 않는다. The image format referred to in the present invention is not limited to any one format such as general TIFF, JPEG, JPEG2000, BMP, and the like.

상기와 같은 구성 및 동작을 통해 컬러 이미지(jpeg, jpeg2000, Tiff 등)의 생성, 압축, 병합 작업시에 컬러이미지 파일의 태그 영역에 컬러이미지와 동일한 흑백이미지 또는 그레이이미지 파일을 삽입하여 저장할 때 한 개의 컬러이미지 파일에 동일한 흑백이미지 또는 그레이이미지를 같이 저장하여 흑백이미지 또는 그레이이미지를 데이터추출, 입력, 조회 등의 업무에 활용할 경우 컬러이미지 파일의 태그 영역에 삽입된 흑백이미지 또는 그레이이미지 파일을 다운로드하여 보여줌으로써 다운로드나 Loading 속도를 최소화하여 조회 및 업무처리 속도를 빠르게 처리할 수 있는 효과를 제공하게 된다.When creating, compressing, or merging color images (jpeg, jpeg2000, Tiff, etc.) through the above configuration and operation, insert the same black and white image or gray image file into the tag area of the color image file and save them. When the same black and white or gray image is saved in two color image files, and the black and white image or gray image is used for data extraction, input, inquiry, etc., the black and white image or gray image file inserted in the tag area of the color image file is downloaded. By minimizing the download or loading speed, it provides the effect of speeding up the inquiry and processing speed.

이상에서와 같은 내용의 본 발명이 속하는 기술분야의 당업자는 본 발명의 기술적 사상이나 필수적 특징을 변경하지 않고서 다른 구체적인 형태로 실시될 수 있다는 것을 이해할 수 있을 것이다. 그러므로 이상에서 기술한 실시 예들은 모든 면에서 예시된 것이며 한정적인 것이 아닌 것으로서 이해해야만 한다. Those skilled in the art to which the present invention pertains as described above may understand that the present invention may be implemented in other specific forms without changing the technical spirit or essential features of the present invention. Therefore, the above-described embodiments are to be understood as illustrative in all respects and not restrictive.

본 발명의 범위는 상기 상세한 설명보다는 후술하는 특허청구범위에 의하여 나타내어지며, 특허청구 범위의 의미 및 범위 그리고 그 등가 개념으로부터 도출되는 모든 변경 또는 변형된 형태가 본 발명의 범위에 포함되는 것으로 해석되어야 한다.The scope of the present invention is defined by the appended claims rather than the detailed description and all changes or modifications derived from the meaning and scope of the claims and their equivalents are to be construed as being included within the scope of the present invention do.

본 발명인 컬러 이미지의 태그 영역에 삽입된 흑백 이미지를 제공하는 방법은 네트워크의 부하를 최소화 함으로서 문서의 업무 처리시간(입력,수정, 조회 등) 개선의 효과가 있게 되어 전자문서 관리분야에 널리 활용할 수 있게 될 것이다.The present invention provides a method for providing a black and white image inserted in a tag region of a color image, thereby minimizing network load, thereby improving work processing time (input, modification, inquiry, etc.) of a document, and thus can be widely used in the electronic document management field. Will be.

도 1은 본 발명의 일실시예에 따른 컬러 이미지의 태그 영역에 삽입된 흑백 이미지를 제공하는 방법의 흐름도이다.1 is a flowchart of a method of providing a black and white image inserted into a tag region of a color image according to an embodiment of the present invention.

도 2는 본 발명의 일실시예에 따른 컬러 이미지의 태그 영역에 삽입된 흑백 이미지를 제공하는 방법의 컬러 이미지 파일을 나타낸 예시도이다.2 is an exemplary view showing a color image file of a method for providing a black and white image inserted into a tag region of a color image according to an embodiment of the present invention.

도 3은 본 발명의 일실시예에 따른 컬러 이미지의 태그 영역에 삽입된 흑백 이미지를 제공하는 방법의 흑백이미지생성단계 흐름도이다.3 is a flowchart of a black and white image generation step of a method for providing a black and white image inserted into a tag region of a color image according to an embodiment of the present invention.

Claims (8)

삭제delete 스캐너장치에 의해 종이문서를 스캔하는 전자문서변환단계;An electronic document conversion step of scanning the paper document by the scanner device; 상기 스캔되어진 전자문서를 컬러 이미지 파일로 생성하는 컬러이미지생성단계;A color image generation step of generating the scanned electronic document as a color image file; 상기 생성된 컬러 이미지 파일을 흑백이미지 또는 그레이이미지 파일로 생성하는 흑백이미지생성단계;A black and white image generation step of generating the generated color image file as a black and white image or a gray image file; 상기 생성된 컬러 이미지 파일의 태그 영역에 상기 생성된 흑백이미지 또는 그레이이미지 파일을 삽입하는 흑백이미지삽입단계;A black and white image insertion step of inserting the generated black and white image or gray image file into a tag region of the generated color image file; 상기 흑백이미지삽입단계를 통해 처리된 태그 영역에 삽입된 흑백이미지 또는 그레이이미지와 데이터 영역의 컬러 이미지 파일을 하나의 파일로 저장하는 파일저장단계;를 포함하여 이루어지되,And a file storage step of storing the black and white image or the gray image inserted in the tag region processed through the black and white image insertion step as a single file. 상기 이미지 파일의 조회시 상기 저장된 컬러 이미지 파일 내 데이터 영역의 컬러 이미지가 아닌 태그 영역의 흑백이미지 또는 그레이이미지를 획득하여 출력시키는 조회이미지출력단계;를 더 포함하여 이루어지는 것을 특징으로 하며, And an inquiry image output step of acquiring and outputting a black and white image or a gray image of a tag region, which is not a color image of a data region of the stored color image file, when the image file is inquired. 상기 컬러 이미지 파일은,The color image file, 태그 영역 및 데이터 영역을 포함하고 있으며, 상기 태그 영역에 흑백이미지 또는 그레이이미지 파일이 존재하며, 상기 데이터 영역에 원본 컬러이미지 파일이 존재하는 것을 특징으로 하는 컬러 이미지의 태그 영역에 삽입된 흑백 이미지를 제공하는 방법.A black and white image inserted in a tag region of a color image, comprising a tag region and a data region, wherein a black and white image or a gray image file exists in the tag region, and an original color image file exists in the data region. How to give. 삭제delete 삭제delete 삭제delete 삭제delete 삭제delete 제 2항에 있어서,3. The method of claim 2, 상기 흑백이미지생성단계는,The black and white image generation step, 색깔판별모듈에 의해 컬러 이미지 파일 내의 레드 및 블루 색깔을 체크하여 검정색으로 생성하고 나머지 색깔은 흰색으로 생성하는 색깔판별단계와,The color discrimination step of checking the red and blue colors in the color image file by the color discrimination module to generate black and the remaining colors to white, 하이로우계산모듈에 의해 변경할 색상의 하이, 로우 값을 계산하는 하이로우계산단계와,A high low calculating step of calculating high and low values of a color to be changed by a high low calculating module; 변경색상레이트계산모듈에 의해 변경할 색상의 Rate 값을 구하는 변경색상레이트계산단계와,A change color rate calculating step of obtaining a rate value of a color to be changed by the change color rate calculating module; 흑백변환모듈에 의해 레이트(rate) 값에 따라 블랙/화이트로 변환하게 되는 흑백변환단계를 포함하여 구성되는 것을 특징으로 하는 컬러 이미지의 태그 영역에 삽입된 흑백 이미지를 제공하는 방법.And a black and white conversion step of converting to black / white according to a rate value by the black and white conversion module.
KR1020090101315A 2009-10-23 2009-10-23 Offer method of black and white image in tag field of color image KR100962978B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020090101315A KR100962978B1 (en) 2009-10-23 2009-10-23 Offer method of black and white image in tag field of color image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020090101315A KR100962978B1 (en) 2009-10-23 2009-10-23 Offer method of black and white image in tag field of color image

Publications (1)

Publication Number Publication Date
KR100962978B1 true KR100962978B1 (en) 2010-06-10

Family

ID=42369902

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020090101315A KR100962978B1 (en) 2009-10-23 2009-10-23 Offer method of black and white image in tag field of color image

Country Status (1)

Country Link
KR (1) KR100962978B1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107046612A (en) * 2016-02-05 2017-08-15 株式会社东芝 Image processing system

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001357010A (en) 2000-04-10 2001-12-26 Mitsubishi Corp Method for entrusting and managing file in web server on internet and a file entrusting and managing device to be used for the same

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001357010A (en) 2000-04-10 2001-12-26 Mitsubishi Corp Method for entrusting and managing file in web server on internet and a file entrusting and managing device to be used for the same

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107046612A (en) * 2016-02-05 2017-08-15 株式会社东芝 Image processing system
CN107046612B (en) * 2016-02-05 2020-01-07 株式会社东芝 Image forming apparatus with a toner supply device

Similar Documents

Publication Publication Date Title
US20050244060A1 (en) Reformatting binary image data to generate smaller compressed image data size
US20080115055A1 (en) Removal of Redundant Information from Electronic Documents
US8224073B2 (en) System and method for efficient storage of MRC images for easy classification and retrieval
JP5276539B2 (en) Image processing method, image processing apparatus, and program
JP6107756B2 (en) Electronic document generation system, electronic document generation apparatus and program
US7626743B2 (en) Image processing apparatus, image processing method and image processing program for rendering pixels transparent in circumscribed areas
KR20160030701A (en) Host divice transmitting print data to printer and method for rendering print data by host device
US20150146224A1 (en) Image processing apparatus and image processing method
JP4579759B2 (en) Image processing apparatus, image processing method, and computer program
JP2010056827A (en) Apparatus and program for processing image
US8971647B2 (en) Image compression apparatus, image compression method, and storage medium
JP2003244447A (en) Image processor and image processing method
KR100962978B1 (en) Offer method of black and white image in tag field of color image
JP3960210B2 (en) Image processing device
JP3899872B2 (en) Image processing apparatus, image processing method, image processing program, and computer-readable recording medium recording the same
JP6397183B2 (en) Image processing apparatus, method, and program
JP2009296218A (en) Area discrimination method, image compression method, image compression device, and computer program
JP5612851B2 (en) Information processing apparatus, information processing method, and program
US20160323468A1 (en) Image processing apparatus capable of preventing page missing, control method therefor, and storage medium
JP2004222078A (en) Image processor, image processing method, and program thereof
US20060126931A1 (en) Image processor for and method of performing tonal transformation on image data
JP2005316813A (en) Image processing method, image processing program, and image processor
JP2003338934A (en) Image processing equipment and method therefor
JP3724728B2 (en) Structured document processing device
JP3882657B2 (en) Image processing apparatus, image processing method, image processing program, and computer-readable recording medium on which image processing program is recorded

Legal Events

Date Code Title Description
A201 Request for examination
A302 Request for accelerated examination
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20130401

Year of fee payment: 4

FPAY Annual fee payment

Payment date: 20140530

Year of fee payment: 5

FPAY Annual fee payment

Payment date: 20150514

Year of fee payment: 6

LAPS Lapse due to unpaid annual fee