KR101994472B1 - Method, apparatus and recording medium for generating mask and both-eye images for three-dimensional image - Google Patents

Method, apparatus and recording medium for generating mask and both-eye images for three-dimensional image Download PDF

Info

Publication number
KR101994472B1
KR101994472B1 KR1020170175819A KR20170175819A KR101994472B1 KR 101994472 B1 KR101994472 B1 KR 101994472B1 KR 1020170175819 A KR1020170175819 A KR 1020170175819A KR 20170175819 A KR20170175819 A KR 20170175819A KR 101994472 B1 KR101994472 B1 KR 101994472B1
Authority
KR
South Korea
Prior art keywords
image
shift
mask
generating
foreground
Prior art date
Application number
KR1020170175819A
Other languages
Korean (ko)
Other versions
KR20190074454A (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 KR1020170175819A priority Critical patent/KR101994472B1/en
Publication of KR20190074454A publication Critical patent/KR20190074454A/en
Application granted granted Critical
Publication of KR101994472B1 publication Critical patent/KR101994472B1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N13/00Stereoscopic video systems; Multi-view video systems; Details thereof
    • H04N13/10Processing, recording or transmission of stereoscopic or multi-view image signals
    • H04N13/106Processing image signals
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/20Image enhancement or restoration using local operators
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N13/00Stereoscopic video systems; Multi-view video systems; Details thereof
    • H04N13/20Image signal generators
    • H04N13/204Image signal generators using stereoscopic image cameras
    • H04N13/207Image signal generators using stereoscopic image cameras using a single 2D image sensor

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)
  • Processing Or Creating Images (AREA)

Abstract

평면이미지의 입체화에 이용되는 양안이미지의 생성방법으로서, 상기 평면이미지로부터 분할 또는 복제된 제1 이미지와 제2 이미지가 획득되는 분리단계와, 청구항 1에 의해 생성된 마스크가 상기 제1 이미지 및 제2 이미지에 적용되어, 각각 배경에 대해 전경이 천이된 제1 시프트이미지 및 제2 시프트이미지가 생성되는 프트이미지 생성단계와, 상기 제1 시프트이미지와 제2 시프트이미지를 각각, 우안이미지와 좌안이미지, 또는 좌안이미지와 우안이미지로 확정하는 양안이미지 확정단계를 포함하여 이루어짐을 특징으로 한다.A method of generating a binocular image for use in solidifying a planar image, comprising: a separation step in which a first image and a second image that are divided or copied from the planar image are obtained; It is applied to the second image, each of the soft image generating step and the first shift image and the second shift image when each is wispy shifted first shift image and the second shift images are generated for the background, the right eye image and the left eye including binocular image confirmation step for confirming as an image, or the left eye image and the right eye image is characterized by true.

Description

입체이미지용 마스크 및 양안이미지의 생성방법, 장치 및 기록매체 {METHOD, APPARATUS AND RECORDING MEDIUM FOR GENERATING MASK AND BOTH-EYE IMAGES FOR THREE-DIMENSIONAL IMAGE}[0001] METHOD, APPARATUS AND RECORDING MEDIUM FOR GENERATING MASK AND BOTH-EYE IMAGES FOR THREE-DIMENSIONAL IMAGE [0002]

본 발명은, 입체이미지용 마스크 및 양안이미지의 생성방법, 장치 및 기록매체에 관한 것으로서, 보다 상세히는, 이중조리개(Dual Aperture) 단일렌즈(Single Lens) 4컬러센서(4-color sensor) 카메라에서 추출된 평면이미지인 RGB이미지 및 IR이미지와 함께 깊이이미지(깊이정보)를 이용하여, 평면이미지의 전경/배경을 분리하기 위한 마스크, 이 마스크를 이용한 양안이미지의 생성 방법, 장치 및 기록매체에 관한 것이다.The present invention relates to a mask for a three-dimensional image and a method, apparatus and recording medium for generating a two-dimensional image, and more particularly, to a dual-aperture single lens 4-color sensor camera A mask for separating a foreground / background of a planar image using a depth image (depth information) together with an RGB image and an IR image which are extracted plane images, a method for producing a binocular image using the mask, an apparatus and a recording medium will be.

일반적으로 이미지는, 깊이감의 제공 유무에 따라 평면이미지와 입체이미지로 나뉜다. 입체이미지는, 양안(兩眼)의 시차(視差)를 이용하여 깊이감을 제공한다. 입체이미지는, 시차이미지(disparity)인, 좌안에 의해 인지되는 좌안이미지와 우안에 의해 인지되는 우안이미지의 양안이미지에 의해 구현될 수 있다.Generally, an image is divided into a planar image and a stereoscopic image depending on whether or not a depth sense is provided. The stereoscopic image provides a sense of depth using the parallax of the two eyes. The stereoscopic image can be implemented by a left eye image recognized by the left eye and a right eye image of the right eye image recognized by the right eye, which is a disparity.

입체이미지의 잘 알려진 방식으로, 애너글리프(anaglyph, 여색 입체시, 餘色 立體視) 방식을 들 수 있다. 이는, 좌안이미지와 우안이미지를 서로 다른 컬러, 특히 보색으로 제작하여 합성한다. 그리고 감상시에는, 제작된 이미지의 컬러와 반대 컬러의 좌안렌즈와 우안렌즈를 가지는 안경을 착용하여 감상한다. 예컨대 사이언(Cyan) 좌안이미지와 레드(Red) 우안이미지의 합성으로 애너글리프가 제작됐다면, 이 입체이미지의 감상을 위해서는 레드 좌안렌즈와 사이언 우안렌즈가 구비된 소위 적청(red-cyan)안경을 착용하면 된다.A well-known method of stereoscopic image is anaglyph (stereoscopic stereoscopic, stereoscopic stereoscopic) method. This is accomplished by composing left eye and right eye images in different colors, especially complementary colors. At the time of appreciation, the glasses having the left eye lens and the right eye lens of the color opposite to the color of the produced image are worn and watched. For example, if an anaglyph is produced by combining a Cyan left eye image and a Red right eye image, a so-called red-cyan eyeglass equipped with a red left eye lens and a scientific eye lens is worn for viewing the stereoscopic image .

입체이미지의 다른 방식으로서, 편광안경 방식을 들 수 있다. 이는, 디스플레이의 주사선 중 짝수 주사선과 홀수 주사선에 각각 좌안이미지와 우안이미지를 내보내고, 디스플레이 전면에 이들을 분리 출력하는 필터를 설치하며, 시청자는 이들 두 주사선을 선택적으로 각각 통과시키는 편광렌즈 2개로 구성된 편광안경을 착용하여 감상하도록 구성되어 있다.As another example of the stereoscopic image, there is a polarizing glasses method. This is because a filter for outputting a left eye image and a right eye image to the even scan line and the odd scan line among the scan lines of the display and to separately output the left eye image and the right eye image on the front face of the display, And wear glasses to watch.

또 다른 방식으로서, 셔터안경 방식을 들 수 있다. 이는, 하기 특허문헌과 같이, 디스플레이가 좌안이미지와 우안이미지를 시분할하여 번갈아 출력하고, 시청자는 이에 동기하여 좌안렌즈와 우안렌즈의 셔터를 번갈아 온오프시키는 셔터안경을 착용하여 감상하도록 구성되어 있다.As another example, a shutter glasses system can be mentioned. This is because the display alternately outputs the left-eye image and the right-eye image in a time-division manner, as shown in the following Patent Document, and the viewer wears shutter glasses for turning on and off the left-eye lens and the right-

그리고 또 다른 방식으로서, 안경 없는 방식(무안경 방식)도 제시되어 있다. 이는, 디스플레이가 좌안이미지와 우안이미지의 픽셀을 교대로 나타내고, 디스플레이 전면에 이 픽셀 간격에 맞춰서 구멍이 구비된 차단막(parallax barrier)을 설치함으로써, 시청자는 안경 없이도 구멍들을 통해, 좌안은 좌안이미지 픽셀들만 보고, 우안은 우안이미지 픽셀들만 보도록 구성되어 있다.And, as another method, there is also a method without glasses (non-glasses type). This is because the display alternately displays the pixels of the left eye image and the right eye image, and by installing a parallax barrier with a hole at the front of the display, the viewer can see through the holes without glasses, And the right eye is configured to view only the right eye image pixels.

이처럼, 상기 입체이미지 방식들은 모두 미리 좌안이미지와 우안이미지가 구비되어야 함을 알 수 있다.As described above, it can be seen that the stereoscopic image methods must be provided with a left eye image and a right eye image in advance.

그런데 종래에는, 상기 양안이미지의 획득에 있어서, 서로 이격되어 대상체를 향해 서로 다른 각도로 배치된 서로 다른 2개의 카메라, 즉 좌안용 카메라와 우안용 카메라로 이루어지는 스테레오 카메라(stereo camera)에 의해 동시에 촬상되는 것이 일반적이다. 이 촬상장치를 스테레오스코프(stereoscope, 입체경, 쌍안사진경, 입체카메라)라 한다. 상기 촬상된 두 이미지는, 서로 각도차(시차)를 가지도록 형성되고, 스테레오쌍(stereo pairs)이라 한다.Conventionally, in the acquisition of the binocular image, at the same time by the stereo camera consisting of two different cameras separated from each other and arranged at different angles toward the object, that is, a left eye camera and a right eye camera, . This imaging apparatus is referred to as a stereoscope (stereoscope, binocular photograph, stereoscopic camera). The two captured images are formed so as to have an angle difference (parallax) with each other, and are referred to as stereo pairs.

다만, 스테레오스코프를 이용하지 않고, 평면이미지에 깊이정보를 가미하여 양안이미지의 입체이미지를 형성하는 방식이 개발되었다. 그리고 상기 깊이정보는, 상기 스테레오 카메라에 의해 취득되거나 비행시간(TOF: Time of Flight) 방식의 센서에 의해 취득되었다.However, a method of forming stereoscopic images of a two-dimensional image by adding depth information to a plane image without using a stereo scope has been developed. The depth information is acquired by the stereo camera or acquired by a time-of-flight (TOF) sensor.

특허공개 10-2011-0088963 공보Patent Publication 10-2011-0088963 publication

그런데, 양안용 상기 스테레오쌍을 직접 취득하는 상기 스테레오 카메라는, 비교적 매우 고가의 장비이고, 양 카메라가 별개로 구비되어 있고, 그 촬상각도와 초점의 설정 및 유지도 별도로 해야 하고, 촬상의 동기화도 필요하므로, 취급하기 쉽지 않다는 단점이 있다. 그리고 양 카메라는 RGB카메라이므로, 특히 낮은 조도에서는 촬상된 이미지의 품질이 크게 저하된다는 문제가 있다. 낮은 조도에서 이미지 정확성이 저하되므로, 깊이정보가 부정확하여, 전경/배경 등의 경계선(edge)이 부정확해지고 오인식된다는 문제가 있다.However, the stereo camera for directly acquiring the binocular stereophonic pair is relatively expensive, and both cameras are provided separately. The imaging angle and focus must be separately set and maintained, and the synchronization of the imaging So that it is not easy to handle. Since both of the cameras are RGB cameras, there is a problem that the quality of a captured image is greatly deteriorated, especially at low illuminance. There is a problem that the depth information is inaccurate and the edges of the foreground / background are inaccurate and misunderstood because the image accuracy is degraded at low illuminance.

그리고 상기 비행시간 방식의 센서는, 발사된 펄스의 기준시점과 대상물에서의 반사된 펄스의 검출시점 사이의 시간차를 이용하여 거리를 측정하는 것이므로, 카메라 이외에 펄스의 발신 및 수신을 위한 별도의 장치가 추가로 필요한데, 상기 펄스장비가 비교적 매우 고가의 장비라는 문제가 있고, 펄스의 종류에 따라서는, 빛, 소리 등 주변환경과 대상체의 종류(반사, 흡수 등)에 따라 인식율이 취약하다는 단점이 있다. 게다가 카메라와의 동기화도 필요하므로, 역시 취급하기 쉽지 않다는 단점이 있다.Since the distance-based sensor measures the distance using the time difference between the reference time of the emitted pulse and the time of the reflected pulse of the object, a separate device for transmitting and receiving pulses is provided in addition to the camera There is a problem that the pulse equipment is a comparatively very expensive equipment and there is a disadvantage that the recognition rate is weak depending on the surrounding environment such as light and sound and the type of object (reflection, absorption, etc.) depending on the type of pulse . In addition, synchronization with the camera is also required, which makes it difficult to handle.

이처럼, 상기 스테레오 카메라로부터의 깊이정보를 이용한 경우, 평면이미지의 전경(Foreground)의 추출 및 가공을 위한 경계선의 검출이 부정확하고, 평면이미지로부터 가공된 양안용 스테레오쌍의 이미지가 매끄럽지 못하다. 따라서 이들로부터 합성되는 결과물 입체이미지가 부자연스럽다는 단점이 있다. 이러한 단점은 저조도 환경이나 외란이 있는 환경에서 특히 심하다.As described above, when the depth information from the stereo camera is used, the detection of the boundary line for extraction and processing of the foreground of the plane image is inaccurate and the image of the binocular stereo pair processed from the plane image is not smooth. Therefore, there is a disadvantage that the resulting stereoscopic images synthesized from these are unnatural. These drawbacks are particularly severe in low-light environments or disturbances.

본 발명은, 상기 문제점을 해소하기 위해 이루어진 것으로서, 장비의 비용을 최소화할 수 있고, 단일 카메라에 의해 구성되어, 촬상각도와 초점의 설정 및 유지가 불필요하고, 촬상의 동기화도 불필요한, 평면이미지의 입체화를 위한 마스크와 양안이미지 생성방법 및 장치를 제공하고자 하는 것이다.SUMMARY OF THE INVENTION The present invention has been made in order to solve the above-described problems, and it is an object of the present invention to provide a planar image display device which is capable of minimizing the cost of equipment and which does not need to set and maintain an imaging angle and focus, And to provide a mask and a binocular image generation method and apparatus for stereoscopic imaging.

그리고 카메라에서 RGB뿐 아니라 IR이미지도 함께 취득함으로써, 특히 낮은 조도에서도 촬상된 이미지의 품질이 크게 향상되는, 평면이미지의 입체화를 위한 마스크와 양안이미지 생성방법 및 장치를 제공하고자 하는 것이다.It is another object of the present invention to provide a mask and a binocular image generation method and apparatus for stereoscopic image of a planar image, in which not only RGB but also IR image are obtained from the camera, and the quality of the captured image is greatly improved even in low illumination.

그리고 카메라로부터 취득된 깊이정보가 낮은 조도에서도 정확성이 유지되어, 전경/배경 등의 경계선(edge)이 정확하고 오인식이 해소되는, 평면이미지의 입체화를 위한 마스크와 양안이미지 생성방법 및 장치를 제공하고자 하는 것이다.To provide a mask and a binocular image generation method and apparatus for stereoscopic image of a planar image, in which the depth information acquired from the camera is kept accurate even at low illumination, and the edges of the foreground / background are correct and the erroneousness is eliminated .

그리고 펄스의 송수신에 의한 깊이정보 취득방식이 아니어서, 펄스발신 및 수신을 위한 별도의 장치나 카메라와의 동기화 장치가 불필요하고, 빛, 소리 등 주변환경과 대상체의 종류(반사, 흡수 등)에 영향을 받지 않는, 평면이미지의 입체화를 위한 마스크와 양안이미지 생성방법 및 장치를 제공하고자 하는 것이다.In addition, since it is not a depth information acquisition method by transmission and reception of pulses, a separate device for pulse transmission and reception and a synchronization device with a camera are unnecessary, and it is unnecessary to use a type of object (reflection, absorption, etc.) It is intended to provide a mask and a binocular image generation method and apparatus for stereoscopic image of a flat image which is not affected.

상기 과제를 해결하기 위한 본 발명의 마스크의 생성방법은, 이미지에서 전경을 분리하기 위해 이용되는 마스크의 생성방법으로서, 촬상장치로부터 동일 각도로 동시에 생성 및 입력된 RGB이미지와 IR이미지로부터 산출된 깊이(depth)정보를 나타내는 깊이이미지로부터 깊이 배경(background)이미지를 분리 추출하는 깊이배 경 추출단계와, 상기 깊이이미지, RGB이미지 또는 IR이미지로부터 추출된 경계선(edge) 이미지에서 상기 깊이 배경이미지를 감산하여 이루어진 경계선 전경(foreground)이미지의 경계선 내부를 삭제하여 이루어진 마스크를 생성하는 마스크 생성단계가 포함됨을 특징으로 한다.According to another aspect of the present invention, there is provided a mask generation method for separating a foreground from an image, the method comprising the steps of: generating an RGB image simultaneously generated and input at the same angle from the image capture device; (depth) depth times to extract depth depth to remove the background (background) image from the image representing the information around the extraction step and the depth image, RGB image or subtracting the depth of the background image in the boundary (edge) images extracted from the IR image And a mask generation step of generating a mask by deleting the inside of a boundary line of a foreground image of the boundary line formed by the mask line.

여기서, 상기 촬상장치는, 이중조리개 (dual aperture) 단일렌즈(single lens) 4-컬러(4-color) 센서를 포함하는 단일 카메라임이 바람직하다.Here, the imaging apparatus includes a dual-aperture (dual aperture) is preferred to be a single camera comprises a single lens (single lens) 4- color (4-color) sensor.

그리고 상기 깊이배경 추출단계는, 미리 정해진 깊이 임계값을 기준으로 깊이 배경이미지와 깊이 전경이미지를 분리하도록 구성됨이 바람직하다.The depth background extracting step may be configured to separate the depth background image and the depth foreground image based on a predetermined depth threshold value .

그리고 상기 마스크 생성단계의 경계선 이미지는, 상기 IR이미지로부터 추출됨이 바람직하다.And a boundary image of the mask generation step is extracted from the IR image .

그리고, 상기 마스크 생성단계에서, 상기 경계선 전경이미지 상의 등고선(contour)들을 찾은 후, 최대길이 또는 최대면적을 가지는 등고선을 남기고 나머지 등고선들을 지우고, 이진화(binarization)와 스무딩 필터링(smooth filtering)을 진행함이 바람직하다.Then, in the mask generation step, the contour lines on the boundary line foreground image are searched, the contour line having the maximum length or the maximum area is left, the remaining contour lines are cleared, and binarization and smooth filtering are performed .

상기 과제를 해결하기 위한 본 발명의 양안이미지의 생성방법은, 평면이미지의 입체화에 이용되는 양안이미지의 생성방법으로서, 상기 평면이미지로부터 분할 또는 복제된 제1 이미지와 제2 이미지가 획득되는 분리단계와, 청구항 1에 의해 생성된 마스크가 상기 제1 이미지에 적용되어, 배경에 대해 전경이 천이된 제1 시프트이미지가 생성되는 시프트이미지 생성단계와, 상기 제1 시프트이미지와 제2 이미지를 각각, 우안이미지와 좌안이미지, 또는 좌안이미지와 우안이미지로 확정하는 양안이미지 확정단계를 포함하여 이루어짐을 특징으로 한다.Method for generating a binocular image of the present invention for solving the aforementioned problems is a method for generating a binocular image for use in three-dimensional in the plane image separation step in which the first image and the second image partitioned or replicated from the flat image is obtained A shift image generating step in which the mask generated by claim 1 is applied to the first image to generate a first shift image whose foreground is shifted with respect to the background, And a binocular image determination step of confirming the right eye image, the left eye image, or the left eye image and the right eye image.

다른 실시예의 양안이미지의 생성방법은, 평면이미지의 입체화에 이용되는 양안이미지의 생성방법으로서, 상기 평면이미지로부터 분할 또는 복제된 제1 이미지와 제2 이미지가 획득되는 분리단계와, 청구항 1에 의해 생성된 마스크가 상기 제1 이미지 및 제2 이미지에 적용되어, 각각 배경에 대해 전경이 천이된 제1 시프트이미지 및 제2 시프트이미지가 생성되는 시프트이미지 생성단계와, 상기 제1 시프트이미지와 제2 시프트이미지를 각각, 우안이미지와 좌안이미지, 또는 좌안이미지와 우안이미지로 확정하는 양안이미지 확정단계를 포함하여 이루어짐을 특징으로 한다.A method of generating a binocular image in another embodiment is a method of generating a binocular image used for solidifying a planar image, comprising: a separation step in which a first image and a second image that are divided or copied from the planar image are acquired; A shift image generating step in which the generated mask is applied to the first image and the second image to generate a first shift image and a second shift image whose foreground is shifted with respect to the background respectively; characterized by shifting the image, respectively, yirueojim including binocular image confirmation step for confirming a right eye image and the left eye image or the left eye image and a right eye image.

여기서, 상기 시프트이미지 생성단계는, 상기 천이의 대상이 되는 이미지가 상기 마스크에 의해 전경이미지와 배경이미지로 분리되는 전경 분리단계와, 상기 전경이미지가 미리 정해진 방향과 양으로 천이되어, 시프트 전경이미지가 생성되는 전경 시프트단계와, 상기 시프트 전경이미지와 배경이미지가 병합되어 시프트이미지가 산출되는 시프트이미지 산출단계를 포함하여 이루어짐이 바람직하다.Here, the shift image generation step may include a foreground separation step in which an image to be subjected to the transition is divided into a foreground image and a background image by the mask, and the foreground image is transited in a predetermined direction and a predetermined amount, and the generated foreground shift steps, including the calculated image shift step in which the shift in the foreground image and the background image is merged image shift calculation is preferably true.

그리고 상기 평면이미지는 RGB이미지이고, 상기 분리단계에서, 상기 평면이미지가 서로 다른 컬러의 상기 제1 이미지와 제2 이미지로 채널 분할됨이 바람직하다.And the planar image is an RGB image, and in the separating step, the planar image is channel-divided into the first image and the second image of different colors .

여기서, 상기 서로 다른 컬러는, 보색임이 바람직하다.Here, the different colors are preferably complementary colors .

그리고 상기 전경 시프트단계에서, 깊이값이 작을수록 시프트양이 크게 설정됨이 바람직하다.In the foreground shift step, it is preferable that the shift amount is set to be larger as the depth value is smaller.

그리고 상기 시프트이미지 생성단계에서, 상기 제1 이미지와 제2 이미지의 시프트방향이 서로 반대방향이 되도록 설정됨이 바람직하다.In the shift image generation step, the shift directions of the first image and the second image are set to be opposite to each other .

한편, 상기 과제를 해결하기 위한 본 발명의 마스크의 생성장치는, 이미지에서 전경을 분리하기 위해 이용되는 마스크의 생성장치로서, 촬상장치로부터 동일 각도로 동시에 생성 및 입력된 RGB이미지와 IR이미지로부터 산출된 깊이(depth)정보를 나타내는 깊이이미지로부터 깊이 배경(background)이미지를 분리 추출하는 깊이배경 추출부와, 상기 깊이이미지, RGB이미지 또는 IR이미지로부터 추출된 경계선(edge) 이미지에서 상기 깊이 배경이미지를 감산하여 이루어진 경계선 전경(foreground)이미지의 경계선 내부를 삭제하여 이루어진 마스크를 생성하는 마스크 생성부가 포함됨을 특징으로 한다.According to another aspect of the present invention, there is provided an apparatus for generating a mask used for separating a foreground from an image, the apparatus comprising: A depth background extracting unit for separating and extracting a depth background image from a depth image representing depth information of the depth image and an edge image extracted from the depth image, And a mask generating unit for generating a mask by deleting a boundary line of a foreground image of the boundary line formed by subtraction.

그리고 양안이미지의 생성장치는, 평면이미지의 입체화에 이용되는 양안이미지의 생성장치로서, 상기 평면이미지로부터 분할 또는 복제된 제1 이미지와 제2 이미지가 획득되는 분리부와, 청구항 13에 의해 생성된 마스크가 상기 제1 이미지에 적용되어, 배경에 대해 전경이 천이된 제1 시프트이미지가 생성되는 시프트이미지 생성부와, 상기 제1 시프트이미지와 제2 이미지를 각각, 우안이미지와 좌안이미지, 또는 좌안이미지와 우안이미지로 확정하는 양안이미지 확정부를 포함하여 이루어짐을 특징으로 한다.And an apparatus for generating a binocular image comprises a separating unit in which a first image and a second image obtained by dividing or duplicating from the plane image are obtained, A shift image generation unit in which a mask is applied to the first image to generate a first shift image in which a foreground is shifted with respect to a background, and a second shift image generation unit that shifts the first shift image and the second image into a left eye image, binocular image and the right eye image to the final image And a determination unit .

다른 실시예의 양안이미지의 생성장치는, 평면이미지의 입체화에 이용되는 양안이미지의 생성장치로서, 상기 평면이미지로부터 분할 또는 복제된 제1 이미지와 제2 이미지가 획득되는 분리부와, 청구항 13에 의해 생성된 마스크가 상기 제1 이미지 및 제2 이미지에 적용되어, 각각 배경에 대해 전경이 천이된 제1 시프트이미지 및 제2 시프트이미지가 생성되는 시프트이미지 생성부와, 상기 제1 시프트이미지와 제2 시프트이미지를 각각, 우안이미지와 좌안이미지, 또는 좌안이미지와 우안이미지로 확정하는 양안이미지 확정부를 포함하여 이루어짐을 특징으로 한다.An apparatus for generating a binocular image in another embodiment is an apparatus for generating a binocular image for use in solidifying a planar image, comprising: a separation unit in which a first image and a second image that are divided or copied from the planar image are acquired; A generated mask is applied to the first image and the second image to generate a shift image in which a foreground shifted first shift image and a second shift image, respectively, An image generating unit for generating a first shift image and a second shift image, respectively, and a binocular image for determining the first shift image and the second shift image as a right eye image and a left eye image, And a determination unit .

한편, 상기 과제를 해결하기 위한 본 발명의 마스크의 생성방법을 위한 저장매체에 저장된 프로그램은, 상기 마스크의 생성방법의 실행을 위해 저장매체에 저장된 프로그램으로서, 상기 마스크의 생성방법의 각 단계를 정보처리기기에 실행시키기 위해 정보처리기기에 의해 읽을 수 있는 저장매체에 저장된 프로그램이다.According to another aspect of the present invention, there is provided a program stored in a storage medium for generating a mask, the program being stored in a storage medium for executing the method of generating a mask, And a program stored in a storage medium readable by the information processing device for execution by the processing device.

그리고, 본 발명의 양안이미지의 생성방법을 위한 저장매체에 저장된 프로그램은, 상기 각 실시예의 양안이미지의 생성방법의 실행을 위해 저장매체에 저장된 프로그램으로서, 상기 양안이미지의 생성방법의 각 단계를 정보처리기기에 실행시키기 위해 정보처리기기에 의해 읽을 수 있는 저장매체에 저장된 프로그램이다.The program stored in the storage medium for the method of generating a binocular image of the present invention is a program stored in a storage medium for executing a method of generating a binocular image in each of the above embodiments, And a program stored in a storage medium readable by the information processing device for execution by the processing device.

본 발명에 의하면, 장비의 비용을 최소화할 수 있고, 단일 카메라에 의해 구성되어, 촬상각도와 초점의 설정 및 유지가 불필요하고, 촬상의 동기화도 불필요한, 평면이미지의 입체화를 위한 마스크와 양안이미지 생성방법 및 장치가 제공된다.According to the present invention, it is possible to minimize the cost of the equipment, and it is possible to provide a mask and a binocular image for stereoscopic image of a flat image, which are constituted by a single camera, do not require setting and maintaining of an imaging angle and focus, A method and apparatus are provided.

그리고 카메라에서 RGB뿐 아니라 IR이미지도 함께 취득함으로써, 특히 낮은 조도에서도 촬상된 이미지의 품질이 크게 향상되는, 평면이미지의 입체화를 위한 마스크와 양안이미지 생성방법 및 장치가 제공된다.A mask and a binocular image generation method and apparatus for stereoscopic image of a planar image are provided by acquiring an RGB image as well as an IR image from a camera, in particular, a quality of a captured image is greatly improved even at low illumination.

그리고 카메라로부터 취득된 깊이정보가 낮은 조도에서도 정확성이 유지되어, 전경/배경 등의 경계선(edge)이 정확하고 오인식이 해소되는, 평면이미지의 입체화를 위한 마스크와 양안이미지 생성방법 및 장치가 제공된다.A mask and a binocular image generation method and apparatus are provided for a three-dimensional image of a planar image, in which the depth information acquired from the camera maintains accuracy even at low illuminance, and the edges of the foreground / background are correct and the erroneousness is eliminated .

그리고 펄스의 송수신에 의한 깊이정보 취득방식이 아니어서, 펄스발신 및 수신을 위한 별도의 장치나 카메라와의 동기화 장치가 불필요하고, 빛, 소리 등 주변환경과 대상체의 종류(반사, 흡수 등)에 영향을 받지 않는, 평면이미지의 입체화를 위한 마스크와 양안이미지 생성방법 및 장치가 제공된다.In addition, since it is not a depth information acquisition method by transmission and reception of pulses, a separate device for pulse transmission and reception and a synchronization device with a camera are unnecessary, and it is unnecessary to use a type of object (reflection, absorption, etc.) There is provided a mask and binocular image generation method and apparatus for stereoscopic image of an unaffected, planar image.

도 1은, 본 발명의 방법 및 이 방법이 적용되는 장치에서의 데이터 흐름과 처리를 나타내는 블럭도이다.
도 2는, 이중조리개(dual aperture) 단일렌즈(single lens) 4-컬러(4-color) 센서를 포함하는 단일 카메라를 이용하는 반도체 칩의 출력인 깊이(depth)이미지(깊이 맵), RGB 이미지, 및 IR이미지를 나타내는 예시도이다.
도 3은, 깊이이미지를 깊이 전경(FG; Foreground)이미지와 깊이 배경(BG; Background)이미지로 분리하는 과정을 나타내는 예시도이다.
도 4는, IR이미지로부터 IR 경계선(edge) 이미지를 추출하는 경계선 검출과정을 나타내는 예시도이다.
도 5는, IR 경계선 이미지에서 깊이 배경이미지를 감산하여 IR 경계선 전경이미지를 만드는 과정을 나타내는 예시도이다.
도 6은, IR 경계선 전경이미지의 경계선 내부를 삭제하여 형성된 마스크의 예시도이다.
도 7은, RGB이미지를 보색인 제1 이미지인 레드(RED)이미지와 제2 이미지인 사이언(CYAN)이미지로 채널 분리하는 과정을 나타내는 예시도이다.
도 8은, 레드이미지에 마스크를 적용하여 레드 전경이미지와 레드 배경이미지를 만들고, 이 레드 전경이미지를 시프트시켜 시프트 레드 전경이미지를 생성하고, 이 시프트 레드 전경이미지와 레드 배경이미지를 병합하여 시프트 레드이미지를 생성하는 과정을 나타내는 예시도이다.
도 9는, 시프트 레드이미지를 예컨대 우안이미지로, 사이언이미지를 예컨대 좌안이미지로 각각 확정하고, 예컨대 이들을 합성함으로써, 최종 애너글리프식 입체이미지를 생성하는 과정을 나타내는 예시도이다.
1 is a block diagram illustrating data flow and processing in a method of the present invention and in an apparatus to which the method is applied.
Figure 2 shows a depth image (depth map) output of a semiconductor chip using a single camera including a dual aperture single lens 4-color sensor, an RGB image, And an IR image.
3 is an exemplary view showing a process of separating a depth image into a deep foreground (FG) image and a depth background (BG) image.
4 is an exemplary view illustrating a border detection process for extracting an IR border image from an IR image.
5 is an exemplary view showing a process of creating an IR boundary foreground image by subtracting a depth background image from an IR boundary line image.
FIG. 6 is an exemplary view of a mask formed by deleting the inside of the border line of the IR boundary line foreground image. FIG.
FIG. 7 is an exemplary view illustrating a process of separating an RGB image into a red image, which is a complementary color image, and a Cyan image, which is a second image.
8 is a flowchart illustrating a process of applying a mask to a red image to create a red foreground image and a red background image, shifting the red foreground image to produce a shift red foreground image, merging the shift foreground image and the red background image, FIG. 8 is an exemplary diagram showing a process of generating an image. FIG.
FIG. 9 is an exemplary view showing a process of determining a shift red image as a right eye image and a cyan image as a left eye image, respectively, and synthesizing them, for example, to generate a final anaglyphic stereoscopic image.

이하, 첨부도면을 참조하면서 본 발명을 상세히 설명한다. 다만, 동일 구조에 의해 동일 기능을 수행하는 부재는, 도면이 달라지더라도 동일 부호를 유지함으로써, 그 상세한 설명을 생략하는 경우가 있다. 그리고 하나의 단계나 모듈은, 2 이상의 단계나 모듈로 분리되어 구현될 수 있고, 역으로, 2 이상의 단계나 모듈은, 하나의 단계나 모듈로 병합되어 구현될 수 있다. 그리고 방법을 수행하는 장치는, 하드웨어와 고정 형성된 회로에 의해 구현되어도 좋고, 하드웨어에 설치된 프로그램에 의해 가변적으로 변화 가능한 회로에 의해 구현되어도 좋다.Hereinafter, the present invention will be described in detail with reference to the accompanying drawings. However, members that perform the same function by the same structure are denoted by the same reference numerals even if they are different from each other, and detailed description thereof may be omitted. And one step or module may be implemented as two or more steps or modules, and conversely, two or more steps or modules may be merged into one step or module. The apparatus for performing the method may be implemented by hardware and a fixedly formed circuit, or may be implemented by a circuit that can be variably changed by a program installed in the hardware.

<마스크의 생성방법>&Lt; Method of generating mask >

본 발명의 마스크의 생성방법은, 이미지에서 전경을 분리하기 위해 이용되는 도 6과 같은 마스크(24)의 생성방법이다.The method of generating a mask of the present invention is a method of generating a mask 24 as shown in Fig. 6, which is used for separating a foreground from an image.

상기 마스크의 생성방법은, 도 1과 같이, 깊이배경 추출단계와, 마스크 생성단계가 포함됨을 특징으로 한다.As shown in FIG. 1, the mask generation method includes a depth background extraction step and a mask generation step .

상기 깊이배경 추출단계는, 촬상장치(11)로부터 동일 각도로 동시에 생성 및 입력된 RGB이미지(40)와 IR이미지(20)로부터 깊이맵 모듈(12)에 의해 산출된 깊이(depth)정보를 나타내는 깊이이미지(30)로부터 깊이 배경(background)이미지(31)를 분리 추출하는 단계이다.The depth background extracting step is a step of extracting the RGB image 40 and IR image 20 simultaneously generated and input at the same angle from the image pickup device 11 and representing depth information calculated by the depth map module 12 Extracting a depth background image 31 from the depth image 30. [

상기 촬상장치(11)는 RGB이미지(40)와 IR이미지(20)를 동일 각도로 동시에 생성하는 장치이다. 여기서, 상기 촬상장치(11)는, 예컨대 이중조리개 (dual aperture) 단일렌즈(single lens) 4-컬러(4-color) 센서를 포함하는 단일 카메라임이 바람직하다. 상기 이중조리개 단일렌즈 4-컬러 센서는, 하나의 촬상소자에 RGB와 IR 촬상소자가 함께 구현된 센서로서, 하나의 렌즈를 통해 들어온 빛이 2개의 조리개를 통해 수광되어 4개의 컬러, 즉, R, G, B, IR의 컬러 이미지를 받아들이는 장치이다. 이로써 RGB이미지와 IR이미지는, 서로 동일 각도로 동시에 촬상된다.The image pickup device 11 is an apparatus for simultaneously generating the RGB image 40 and the IR image 20 at the same angle. Here, the imaging device 11 is, for example, it is preferred that a single camera, comprising a double aperture (dual aperture), a single lens (single lens) 4- color (4-color) sensor. The double-aperture single-lens four-color sensor is a sensor in which RGB and IR imaging elements are integrated in one imaging element, and light received through one lens is received through two diaphragms to form four colors, i.e., R , G, B, and IR color images. As a result, the RGB image and the IR image are simultaneously captured at the same angle with each other.

이와 대비하여, 예컨대 종래기술의 스테레오그래프는, 2개의 RGB이미지를 생성하는 장치이므로, RGB이미지와 IR이미지를 생성하는 본 발명의 촬상장치와는 다르다. 게다가 상기 스테레오그래프는, 2개의 RGB이미지들이 서로 시차를 가지도록 생성하므로, 동일 각도로 생성하는 본 발명의 촬상장치와는 다르다.Contrastingly, for example, the prior art stereo graph is an apparatus for generating two RGB images, and thus differs from the imaging apparatus of the present invention for generating an RGB image and an IR image. Furthermore, the stereograms are different from the imaging apparatus of the present invention, which generates two angular RGB images with equal parallax, because they generate the same angle.

그리고 상기 깊이이미지(30)는, RBG이미지(40)와 IR이미지(20)로부터 생성되는 것이므로, IR이미지에 의해 저조도에 강인한 효과가 있다. 예컨대 RGB이미지가 전혀 획득될 수 없는 칠흑같은 어둠 속에서도, 본원발명은 IR이미지에 의해 깊이정보의 취득이 가능하다.Since the depth image 30 is generated from the RBG image 40 and the IR image 20, the IR image has a strong effect on the low-illuminance image. For example, even in the dark darkness where no RGB image can be obtained at all, the present invention can acquire the depth information by the IR image.

이와 비교하여, 오직 2개의 RGB이미지들로부터 얻어지는 스테레오그래프에 의한 깊이정보는, 저조도에서 깊이정보의 취득이 불가능하거나 부정확하므로, 본 발명의 상기 깊이이미지(30)와 다르다.In comparison, the depth information by the stereo graph obtained from only two RGB images differs from the depth image 30 of the present invention because it is impossible or imprecise to acquire depth information in low light.

게다가 비행시간 방식 센서에 의한 깊이정보는, 펄스의 발신 및 수신을 위한 별도의 장치가 추가로 필요하므로, 본 발명의 상기 촬상장치와는 다르다. 그리고 펄스의 종류에 따라서는, 빛, 소리 등 주변환경과 대상체의 종류(반사, 흡수 등)에 따라 인식율이 취약하다는 단점이 있다.In addition, the depth information by the flight time sensor is different from the above-described image pickup apparatus of the present invention because a separate apparatus for transmitting and receiving pulses is additionally required. In addition, depending on the types of pulses, there is a disadvantage in that the recognition rate is weak depending on the surrounding environment such as light, sound, and the type of objects (reflection, absorption, etc.).

그리고 상기 깊이배경 추출단계는, 미리 정해진 깊이 임계값(D threshold)을 기준으로 깊이 배경이미지(31)와 깊이 전경이미지(32)를 분리하도록 구성됨이 바람직하다. 깊이 임계값은, 예컨대 중간값, 예컨대 0~100 중 50으로 설정(Th = 50)될 수 있다.The depth background extracting step may be configured to separate the depth background image 31 and the depth forehead image 32 based on a predetermined depth threshold value (D threshold) . The depth threshold value may be set to 50 (Th = 50), for example, an intermediate value, for example, 0 to 100.

상기 마스크 생성단계는, 상기 깊이이미지(30), RGB이미지(40) 또는 IR이미지로(20)부터 추출된 경계선(edge) 이미지(21)에서 상기 깊이 배경이미지를 감산하여 이루어진 경계선 전경(foreground)이미지(23)의 경계선 내부를 삭제하여 이루어진 마스크(24)를 생성하는 단계이다.The mask generation step may include generating a boundary foreground that is obtained by subtracting the depth background image from the depth image 30, the RGB image 40, or the edge image 21 extracted from the IR image 20, And creating a mask 24 by deleting the inside of the boundary line of the image 23.

그리고 상기 마스크 생성단계의 상기 경계선 이미지(21)는, 상기 깊이이미지(30)나 RGB이미지(40)에서 추출되어도 좋지만, 선명도나 조도의 면에서, 특히 상기 IR이미지(20)로부터 추출됨이 바람직하다. 상기 IR이미지(20)는, 전초점(all in-fucus) 이미지이고, 저조도 환경에서 강인하다.The boundary image 21 of the mask generation step may be extracted from the depth image 30 or the RGB image 40 but is preferably extracted from the IR image 20 in terms of sharpness and roughness Do. The IR image 20 is an all in-fucus image and is robust in a low-light environment.

그리고 상기 마스크 생성단계에서, 상기 경계선 내부의 삭제과정은, 상기 경계선 전경이미지(23) 상의 등고선(contour)들을 찾은 후, 최대길이 또는 최대면적을 가지는 등고선을 남기고 나머지 등고선들을 지우고, 이진화(binarization)와 스무딩 필터링(smooth filtering)을 진행함이 바람직하다.In the mask generation step, the deletion process of the borderline is performed by finding contours on the borderline foreground image 23, deleting contour lines having a maximum length or a maximum area, deleting the remaining contour lines, And smooth filtering is preferably performed.

<효과><Effect>

상기 과정에서 따라 마스크가 생성되면, 촬상장치가 간이하고 정밀도가 높으므로, 마스크의 경계선이 정밀하고 선명하게 된다. 또한, 별도의 IR장치 없이 촬상장치에서 IR이미지를 직접 획득하므로, 간소하게 저조도 하에서 정밀도가 향상된다. 그리고 하나의 촬상장치에 의해 RGB이미지와 IR이미지가 동시에 얻어지므로, 동기화가 필요치 않다. 게다가 촬상장치에 의해 RGB이미지와 IR이미지가 동일 각도로 촬상되므로, 두 이미지의 중심 어긋남이 발생되지 않는다. 그리고 하나의 촬상장치에 의한 RGB이미지와 IR이미지로부터 직접 깊이이미지가 추출되므로, 연산이 신속하고 정확하다.When the mask is formed in accordance with the above procedure, the image pickup device is simple and high in precision, so that the boundary line of the mask is precise and clear. In addition, since the IR image is directly obtained in the imaging device without a separate IR device, the accuracy is simply improved under low illumination. Since an RGB image and an IR image are simultaneously obtained by one imaging device, synchronization is not required. Furthermore, since the RGB image and the IR image are captured at the same angle by the image pickup apparatus, the center shift of the two images is not generated. Since the depth image is directly extracted from the RGB image and the IR image by one imaging device, the calculation is quick and accurate.

상기 마스크는, 다음의 양안이미지의 생성에 이용될 수 있다.The mask can be used to generate the following binocular image.

<양안이미지의 생성방법>&Lt; Method of generating binocular image >

본 발명의 양안이미지의 생성방법은, 입체이미지의 구현을 위해 필요한 양안이미지, 즉 우안이미지와 좌안이미지를 생성하는 방법이다.A method of generating a binocular image of the present invention is a method of generating a binocular image, i.e., a right eye image and a left eye image required for implementing a stereoscopic image.

애너글리프 방식에서는 양안이미지가 병합되어 입체이미지가 되고, 이 입체이미지는 적청안경을 통해 입체로 시인되게 된다.In the anaglyph method, a binocular image is merged into a stereoscopic image, which is viewed as a stereoscopic image through red-eyeglasses.

편광안경 방식에서는, 짝수 주사선과 홀수 주사선에 각각 좌안이미지와 우안이미지를 내보내고, 디스플레이 전면에 이들을 분리 출력하는 필터를 설치하며, 시청자는 이들 두 주사선을 선택적으로 각각 통과시키는 편광렌즈 2개로 구성된 편광안경을 착용하여 입체로 시인하게 된다.In the polarizing glasses system, a filter for outputting a left eye image and a right eye image to the even-numbered scanning lines and an odd-numbered scanning line, respectively, is provided on the front surface of the display. To be seen as a three-dimensional body.

셔터방식에서는, 좌안이미지와 우안이미지를 시분할하여 번갈아 출력하고, 시청자는 이에 동기하여 좌안렌즈와 우안렌즈의 셔터를 번갈아 온오프시키는 셔터안경을 착용하여 입체로 시인하게 된다.In the shutter system, a left-eye image and a right-eye image are alternately outputted in a time-division manner, and the viewer wears shutter glasses for alternately turning on and off the left-eye lens and the right-

무안경방식에서는, 디스플레이가 좌안이미지와 우안이미지의 픽셀을 교대로 나타내고, 디스플레이 전면에 이 픽셀 간격에 맞춰서 구멍이 구비된 차단막(parallax barrier)이 설치되며, 시청자는 안경 없이도 구멍들을 통해, 좌안은 좌안이미지 픽셀들만 보고, 우안은 우안이미지 픽셀들만 보고 입체로 시인하게 된다In the non-eyeglass mode, the display alternately displays the pixels of the left-eye image and the right-eye image, and a parallax barrier is provided in front of the display with a hole aligned with the pixel interval. Only the left eye image pixels are viewed, and the right eye only sees right eye image pixels and is viewed as a stereoscopic image

이 양안이미지는, 평면이미지로부터 생성된다. 이 평면이미지로서, RGB이미지(40)뿐 아니라 IR이미지(20)도 이용될 수 있다. 하지만, 이하에서는 편의상 평면이미지가 RGB이미지(40)인 경우를 예로 들어 설명한다. 다만, 평면이미지가 IR이미지(20)인 경우에도, 컬러를 전제로 한 기술을 제외하고는, RGB이미지(40)의 경우와 동일하게 적용된다.This binocular image is generated from a planar image. As this plane image, not only the RGB image 40 but also the IR image 20 can be used. However, for the sake of convenience, the case where the plane image is the RGB image 40 will be described below as an example. However, even when the plane image is the IR image 20, the same applies to the case of the RGB image 40, except for the technique based on color.

<양안이미지의 생성방법-제1 실시예>&Lt; Method of generating binocular image - First embodiment >

본 발명의 양안이미지의 생성방법은, 평면이미지(40)의 입체화에 이용되는 양안이미지의 생성방법이다.A method of generating a binocular image of the present invention is a method of generating a binocular image used for solidification of a planar image (40).

제1 실시예의 양안이미지의 싱성방법은, 분리단계와, 시프트이미지 생성단계와, 양안이미지 확정단계를 포함하여 이루어짐을 특징으로 한다.The method for singularity of a binocular image of the first embodiment is characterized by comprising a separation step , a shift image generation step , and a binocular image determination step .

상기 분리단계는, 상기 평면이미지(40)로부터 분할 또는 복제된 제1 이미지(41)와 제2 이미지(42)가 획득되는 단계이다.The separating step is a step in which a first image 41 and a second image 42 obtained from the planar image 40 are obtained.

상기 시프트이미지 생성단계는, 상기 설명된 마스크(24)가 상기 제1 이미지(41)에 적용되어, 배경(44)에 대해 전경(43)이 천이된 제1 시프트이미지(46)가 생성되는 단계이다.The step of generating the shift image may include the step of generating a first shift image 46 in which the mask 24 described above is applied to the first image 41 so that the foreground 43 is shifted relative to the background 44 to be.

여기서, 상기 시프트이미지 생성단계는, 전경 분리단계와, 전경 시프트단계와, 시프트이미지 산출단계를 포함하여 이루어짐을 특징으로 한다.Here, the shift image generation step may include a foreground separation step , a foreground shift step , and a shift image calculation step .

상기 전경 분리단계는, 상기 천이의 대상이 되는 이미지(41, 42)가 상기 마스크(24)에 의해 전경이미지(43)와 배경이미지(44)로 분리되는 단계이다.The foreground separating step separates the images 41 and 42 to be shifted into the foreground image 43 and the background image 44 by the mask 24.

여기서 특히, 도 1과 같이, 상기 평면이미지가 RGB이미지(40)인 경우에는, 상기 분리단계에서, 상기 평면이미지(40)가 서로 다른 컬러의 상기 제1 이미지(41)와 제2 이미지(42)로 채널 분할됨이 바람직하다. 이로써 컬러에 따라 양안이미지를 분리시키는 전통적인 애너글리프가 만들어질 수 있다.1, when the planar image is an RGB image 40, in the separating step, the planar image 40 includes the first image 41 and the second image 42 of different colors ). &Lt; / RTI &gt; This can produce a traditional anaglyph that separates the binocular image according to color.

여기서, 상기 서로 다른 컬러에 대해서는 제한이 없지만, 컬러가 유사하면 입체성이 저하되고, 컬러가 서로 반대성향이 강할수록 시인성 및 입체성이 증가된다. 특히, 상기 서로 다른 컬러는, 보색임이 바람직하다. 빛의 보색인 경우, 예컨대 레드와 사이언처럼, 두 컬러가 겹치면 백색이 된다.Here, there is no limitation on the different colors, but if the colors are similar, the stereoscopic effect is lowered, and as the colors tend to be opposite to each other, visibility and stereoscopic effect are increased. In particular, the different colors are preferably complementary colors . In the case of a complementary color of light, for example, red and cyane, when two colors overlap, it becomes white.

상기 전경 시프트단계는, 상기 전경이미지(43)가 미리 정해진 방향과 양으로 천이되어, 시프트 전경이미지(45)가 생성되는 단계이다.The foreground shift step is a step in which the foreground image 43 is shifted in a predetermined direction and amount, and a shift foreground image 45 is generated.

여기서, 상기 전경 시프트단계에서, 깊이값이 작을수록 시프트양이 크게 설정됨이 바람직하다. 이로써 근거리의 전경은 큰 폭으로 움직이고 원거리의 전경은 작은 폭으로 움직이고 배경은 움직이지 않는 시프트이미지가 만들어진다.Here, in the foreground shift step, it is preferable that the shift amount is set larger as the depth value is smaller. This creates a shift image with close-range foreground motion, a far foreground image with a small width, and a background with no moving image.

상기 시프트이미지 산출단계는, 상기 시프트 전경이미지(45)와 배경이미지(44)가 병합되어 시프트이미지(46, 47)가 산출되는 단계이다.The shift image calculation step is a step in which the shift foreground image 45 and the background image 44 are merged to generate a shift image 46, 47.

상기 양안이미지 확정단계는, 상기 제1 시프트이미지(46)와 제2 이미지(42)를 각각, 우안이미지와 좌안이미지, 또는 좌안이미지와 우안이미지로 확정하는 단계이다.The binocular image fixing step is a step of fixing the first shift image 46 and the second image 42 to the right eye image and the left eye image, or the left eye image and the right eye image, respectively.

<효과><Effect>

본 발명의 양안이미지의 생성방법에 의하면, 평면이미지가 2개의 이미지로 분리된 후, 이들 중 하나인 제1 이미지에 상기 마스크가 적용되어 전경이 분리되어 시프트된 후 배경과 결합됨으로써 시프트이미지기가 만들어지고, 이 시프트이미지와 원래의 제2 이미지가 양안이미지가 된다. 따라서 평면이미지에서 양안이미지가 생성된다. 특히 RGB이미지와 IR이미지를 동일 각도로 동시에 획득하는 센서로부터 연산된 깊이이미지를 이용하여 상기 마스크가 생성되므로, 마스크의 정밀도, 조도 강인성, 경계의 매끄러움 등이 우수하다. 그리고 시프트방향과 양이 제어 가능하므로, 다양한 시인성과 입체성의 양안이미지가 산출될 수 있다.According to the method of generating a two-dimensional image of the present invention, a planar image is divided into two images, and then the mask is applied to the first image, which is one of the two images. And the shift image and the original second image become a two-dimensional image. Thus, a binocular image is generated in the planar image. In particular, since the mask is generated using the depth image calculated from the sensor that simultaneously acquires the RGB image and the IR image at the same angle, the precision of the mask, the robustness of the illumination, and the smoothness of the boundary are excellent. Since the shift direction and amount can be controlled, a binocular image of various visibility and stereoscopic effect can be calculated.

상기 양안이미지는, 애너글리프 방식, 편광방식, 필터방식, 무안경방식 등의 각 입체이미지 시청방식에 이용될 수 있다.The binocular image can be used for each stereoscopic image viewing system such as an anaglyph system, a polarization system, a filter system, and an eyeglass system.

<양안이미지의 생성방법-제2 실시예>&Lt; Method for Generating Binocular Image-Second Embodiment >

제2 실시예의 양안이미지 생성방법은, 제1 실시예와 기본적으로 동일하지만, 제2 이미지(42)도 시프트된다는 점에 차이가 있다. 이로써, 상기 시프트이미지 생성단계에서, 제1 시프트이미지(46) 뿐아니라 제2 시프트이미지(47)도 생성된다. 그리고 상기 양안이미지 확정단계에서, 상기 제1 시프트이미지(46)와 제2 시프트이미지(47)를 각각, 우안이미지와 좌안이미지, 또는 좌안이미지와 우안이미지로 확정하게 된다.The binocular image generating method of the second embodiment is basically the same as the first embodiment, except that the second image 42 is also shifted. Thus, in the shift image generation step, not only the first shift image 46 but also the second shift image 47 are generated. In the binocular image determination step, the first shift image 46 and the second shift image 47 are determined as the right eye image and the left eye image, or the left eye image and the right eye image, respectively.

<효과><Effect>

이 제2 실시예에 의하면, 제1 이미지(41)와 제2 이미지(42)가 모두 시프트되어, 제1 시프트이미지(46)와 제2 시프트이미지(47)가 생성되고, 이들이 양안이미지가 되므로, 원본 평면이미지의 전경이미지의 중심으로부터 입체이미지의 전경이미지의 중심이 이탈되는 정도를 줄일 수 있고, 예컨대 시프트 방향을 다양화함으로써 다양한 입체효과를 줄 수 있다.According to the second embodiment, both the first image 41 and the second image 42 are shifted, so that the first shift image 46 and the second shift image 47 are generated, , The degree of deviation of the center of the foreground image of the stereoscopic image from the center of the foreground image of the original plane image can be reduced, and various stereoscopic effects can be provided by, for example, diversifying the shift direction.

즉, 이 제2 실시예에 있어서, 상기 시프트이미지 생성단계에서, 상기 제1 이미지와 제2 이미지의 시프트방향이 서로 반대방향이 되도록 설정됨이 바람직하다. 이로써 중심의 이탈을 저감시킬 수 있다. 여기에 더하여, 시프트양까지 동일하게 하면, 중심의 이탈도는 제로가 되므로, 입체화에 따른 불합리한 왜곡을 방지할 수 있다.That is, in the second embodiment, it is preferable that, in the shift image generation step, the shift directions of the first image and the second image are set so as to be opposite to each other . This can reduce center deviation. In addition, if the shift amounts are equal to each other, the degree of deviation of the center becomes zero, thereby making it possible to prevent unreasonable distortion due to solidification.

<장치><Device>

상기 본 발명의 방법은, 소프트 와이어링 또는 하드 와이어링을 통한 장치로서 구현될 수 있다.The method of the present invention can be implemented as an apparatus via soft wiring or hard wiring.

<마스크의 생성장치>&Lt; Mask Generating Apparatus >

본 발명의 마스크의 생성장치는, 이미지에서 전경을 분리하기 위해 이용되는 도 6과 같은 마스크(24)의 생성장치이다. 이는 본 발명의 마스크의 생성방법과 대응된다.An apparatus for generating a mask of the present invention is an apparatus for generating a mask 24 as shown in Fig. 6, which is used for separating a foreground from an image. This corresponds to the mask generation method of the present invention.

상기 마스크의 생성장치는, 도 1과 같이, The apparatus for generating a mask, as shown in Fig. 1,

촬상장치(11)로부터 동시에 생성 및 입력된 RGB이미지(40)와 IR이미지(20)로부터 깊이맵 모듈(12)에 의해 산출된 깊이(depth)정보를 나타내는 깊이이미지(30)로부터 깊이 배경(background)이미지(31)를 분리 추출하는 깊이배경 추출부와, From the depth image 30 representing depth information calculated by the depth map module 12 from the RGB image 40 and the IR image 20 simultaneously generated and input from the imaging device 11, A depth background extraction unit for separating and extracting the image 31,

상기 깊이이미지(30), RGB이미지(40) 또는 IR이미지로(20)부터 추출된 경계선(edge) 이미지(21)에서 상기 깊이 배경이미지를 감산하여 이루어진 경계선 전경(foreground)이미지(23)의 경계선 내부를 삭제하여 이루어진 마스크(24)를 생성하는 마스크 생성부 The boundary image of the borderline foreground image 23 made by subtracting the depth background image from the depth image 30, the RGB image 40 or the edge image 21 extracted from the IR image 20, A mask generating unit 24 for generating a mask 24,

가 포함됨을 특징으로 한다..

<양안이미지의 생성장치-제1 실시예><Device for Generating Binocular Image - First Embodiment>

평면이미지(40)의 입체화에 이용되는 양안이미지의 생성장치로서, An apparatus for generating a binocular image for use in solidification of a planar image (40)

상기 평면이미지(40)로부터 분할 또는 복제된 제1 이미지(41)와 제2 이미지(42)가 획득되는 분리부와, And a separation unit in which the image plane 40 is split or replicated the first image 41 and second image 42 from the pickup,

청구항 13에 의해 생성된 마스크(24)가 상기 제1 이미지(41)에 적용되어, 배경(44)에 대해 전경(43)이 천이된 제1 시프트이미지(46)가 생성되는 시프트이미지 생성부와, A shift image generation unit in which the mask 24 generated by claim 13 is applied to the first image 41 to generate a first shift image 46 in which the foreground 43 is shifted relative to the background 44 ,

상기 제1 시프트이미지(46)와 제2 이미지(42)를 각각, 우안이미지와 좌안이미지, 또는 좌안이미지와 우안이미지로 확정하는 양안이미지 확정부 And a binocular image determining unit 42 for determining the first shift image 46 and the second image 42 as the right eye image and the left eye image or the left eye image and the right eye image,

를 포함하여 이루어짐을 특징으로 한다.And a control unit.

<양안이미지 생성장치-제2 실시예>&Lt; Binocular image generating device-Second embodiment >

평면이미지(40)의 입체화에 이용되는 양안이미지의 생성장치로서, An apparatus for generating a binocular image for use in solidification of a planar image (40)

상기 평면이미지(40)로부터 분할 또는 복제된 제1 이미지(41)와 제2 이미지(42)가 획득되는 분리부와, And a separation unit in which the image plane 40 is split or replicated the first image 41 and second image 42 from the pickup,

청구항 13에 의해 생성된 마스크(24)가 상기 제1 이미지(41) 및 제2 이미지(42)에 적용되어, 각각 배경(44)에 대해 전경(43)이 천이된 제1 시프트이미지(46) 및 제2 시프트이미지(47)가 생성되는 시프트이미지 생성부와, The mask 24 generated by claim 13 is applied to the first image 41 and the second image 42 to produce a first shift image 46 in which the foreground 43 is shifted relative to the background 44, and the second shift image 47 is generated which shifts image generation unit,

상기 제1 시프트이미지(46)와 제2 시프트이미지(47)를 각각, 우안이미지와 좌안이미지, 또는 좌안이미지와 우안이미지로 확정하는 양안이미지 확정부 Said first shift image 46 and the second binocular image for deciding the shift image (47), respectively, the right eye image and the left eye image or the left eye image and the right eye image decision section

를 포함하여 이루어짐을 특징으로 한다.And a control unit.

<저장매체에 저장된 프로그램><Program stored on storage medium>

상기 본 발명의 방법은, 정보처리기기에 의해 읽을 수 있는 저장매체에 저장된 프로그램으로서 구현될 수 있다.The method of the present invention can be implemented as a program stored in a storage medium readable by an information processing device.

<저장매체-마스크의 생성방법><Storage medium -Mask generation method>

상기 마스크의 생성방법용 프로그램은, 상기 설명된 마스크의 생성방법의 각 단계를 정보처리기기에 실행시키기 위해 정보처리기기에 의해 읽을 수 있는 저장매체에 저장된 프로그램이다.The program for generating the mask is a program stored in a storage medium readable by the information processing apparatus for causing the information processing apparatus to execute the steps of the mask generation method described above.

<저장매체-양안이미지의 생성방법><Storage medium - Method of generating binocular image>

상기 양안이미지의 생성방법용 프로그램은, 상기 설명된 양안이미지의 생성방법의 각 단계를 정보처리기기에 실행시키기 위해 정보처리기기에 의해 읽을 수 있는 저장매체에 저장된 프로그램이다.The program for the method of generating a binocular image is a program stored in a storage medium that can be read by the information processing device to execute the steps of the above-described method of generating a binocular image to the information processing device.

이상, 본 발명의 구체적 구성에 대해 첨부도면 및 실시예를 통해 상세히 설명하였으나, 본 발명은 이에 한하는 것이 아니고, 첨부된 청구범위에 기재된 범위 내에서 이루어지는 개량, 변형, 변경은 모두, 본 발명의 범위에 속하는 것으로 이해되어야 한다.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 embodiments, but, on the contrary, Should be understood as belonging to the scope.

본 발명은, 입체이미지용 마스크 및 양안이미지의 생성방법, 장치 및 기록매체의 산업에 이용될 수 있다.INDUSTRIAL APPLICABILITY The present invention can be applied to a mask for stereoscopic images and a method for producing a two-dimensional image, an apparatus and an industry of a recording medium.

10: 정보추출장치
11: DA 카메라 모듈(촬상장치)
12: DA 깊이맵 모듈
20: IR이미지
21: IR 경계선이미지
22: 필터링
23: IR 경계선 전경이미지
24: 마스크
30: 깊이이미지
31: 깊이 배경이미지
32: 깊이 전경이미지
40: RGB이미지
41: 제1 이미지
42: 제2 이미지
43: 전경이미지
44: 배경이미지
45: 시프트 전경이미지
46: 제1 시프트 이미지
47: 제2 시프트 이미지
48: 입체이미지(이너글리프)
10: information extraction device
11: DA camera module (image pickup device)
12: DA depth map module
20: IR image
21: IR boundary image
22: Filtering
23: IR Border image in the foreground
24: Mask
30: depth image
31: Depth background image
32: Depth foreground image
40: RGB image
41: 1st image
42: Second image
43: foreground image
44: background image
45: Shift foreground image
46: 1st shift image
47: 2nd shift image
48: stereoscopic image (inner glyph)

Claims (20)

이미지에서 전경을 분리하기 위해 이용되는 마스크의 생성방법으로서,
촬상장치로부터 동일 각도로 동시에 생성 및 입력된 RGB이미지와 IR이미지로부터 산출된 깊이(depth)정보를 나타내는 깊이이미지로부터 깊이 배경(background)이미지를 분리 추출하는 깊이배경 추출단계와,
상기 IR이미지로부터 추출된 경계선(edge) 이미지에서 상기 깊이 배경이미지를 감산하여 이루어진 경계선 전경(foreground)이미지의 경계선 내부를 삭제하여 이루어진 마스크를 생성하는 마스크 생성단계
가 포함됨을 특징으로 하는 마스크의 생성방법.
A method of generating a mask for use in separating a foreground from an image,
A depth background extracting step of separating and extracting a depth background image from a depth image representing depth information calculated from an RGB image and an IR image simultaneously generated and input at the same angle from the image pickup apparatus,
A mask generation step of generating a mask by deleting a boundary line of a boundary foreground image obtained by subtracting the depth background image from an edge image extracted from the IR image;
Wherein the mask comprises a mask.
이미지에서 전경을 분리하기 위해 이용되는 마스크의 생성방법으로서,
촬상장치로부터 동일 각도로 동시에 생성 및 입력된 RGB이미지와 IR이미지로부터 산출된 깊이(depth)정보를 나타내는 깊이이미지로부터 깊이 배경(background)이미지를 분리 추출하는 깊이배경 추출단계와,
상기 깊이이미지, RGB이미지 또는 IR이미지로부터 추출된 경계선(edge) 이미지에서 상기 깊이 배경이미지를 감산하여 이루어진 경계선 전경(foreground)이미지의 경계선 내부를 삭제하여 이루어진 마스크를 생성하는 마스크 생성단계
가 포함되어 이루어지고,
상기 마스크 생성단계에서,
상기 경계선 전경이미지 상의 등고선(contour)들이 찾아진 후, 최대길이 또는 최대면적을 가지는 등고선이 남겨지고 나머지 등고선들이 지워지고,
이진화(binarization)와 스무딩 필터링(smooth filtering)이 진행됨
을 특징으로 하는 마스크의 생성방법.
A method of generating a mask for use in separating a foreground from an image,
A depth background extracting step of separating and extracting a depth background image from a depth image representing depth information calculated from an RGB image and an IR image simultaneously generated and input at the same angle from the image pickup apparatus,
A mask generation step of generating a mask by deleting a boundary line of a boundary foreground image obtained by subtracting the depth background image from an edge image extracted from the depth image, the RGB image, or the IR image;
And,
In the mask generation step,
After contours on the borderline foreground image are found, contour lines having a maximum length or maximum area are left and the remaining contour lines are erased,
Binarization and smooth filtering are performed.
Wherein the mask is a mask.
평면이미지의 입체화에 이용되는 양안이미지의 생성방법으로서,
상기 평면이미지로부터 분할 또는 복제된 제1 이미지와 제2 이미지가 획득되는 분리단계와,
청구항 1 또는 청구항 2에 의해 생성된 마스크가 상기 제1 이미지에 적용되어, 배경에 대해 전경이 천이된 제1 시프트이미지가 생성되는 시프트이미지 생성단계와,
상기 제1 시프트이미지와 제2 이미지를 각각, 우안이미지와 좌안이미지, 또는 좌안이미지와 우안이미지로 확정하는 양안이미지 확정단계
를 포함하여 이루어짐을 특징으로 하는 양안이미지의 생성방법.
A method of generating a binocular image for use in solidifying a planar image,
A separation step in which a first image and a second image that are divided or copied from the plane image are obtained;
A shift image generation step in which a mask generated by the first or second aspect is applied to the first image to generate a first shift image whose foreground is shifted with respect to the background,
The first image with the shifted second image, respectively, both eyes image confirmation step for confirming a right eye image and the left eye image or the left eye image and the right eye image
And generating a binocular image based on the generated binocular image.
평면이미지의 입체화에 이용되는 양안이미지의 생성방법으로서,
상기 평면이미지로부터 분할 또는 복제된 제1 이미지와 제2 이미지가 획득되는 분리단계와,
청구항 1 또는 청구항 2에 의해 생성된 마스크가 상기 제1 이미지 및 제2 이미지에 적용되어, 각각 배경에 대해 전경이 천이된 제1 시프트이미지 및 제2 시프트이미지가 생성되는 시프트이미지 생성단계와,
상기 제1 시프트이미지와 제2 시프트이미지를 각각, 우안이미지와 좌안이미지, 또는 좌안이미지와 우안이미지로 확정하는 양안이미지 확정단계
를 포함하여 이루어짐을 특징으로 하는 양안이미지의 생성방법.
A method of generating a binocular image for use in solidifying a planar image,
A separation step in which a first image and a second image that are divided or copied from the plane image are obtained;
A shift image generation step in which the mask generated by the first or second aspect is applied to the first image and the second image to generate a first shift image and a second shift image,
A binocular image determination step of determining the first shift image and the second shift image as a right eye image and a left eye image, respectively, or a left eye image and a right eye image,
And generating a binocular image based on the generated binocular image.
청구항 3에 있어서,
상기 시프트이미지 생성단계는,
상기 천이의 대상이 되는 이미지가 상기 마스크에 의해 전경이미지와 배경이미지로 분리되는 전경 분리단계와,
상기 전경이미지가 미리 정해진 방향과 양으로 천이되어, 시프트 전경이미지가 생성되는 전경 시프트단계와,
상기 시프트 전경이미지와 배경이미지가 병합되어 시프트이미지가 산출되는 시프트이미지 산출단계
를 포함하여 이루어짐을 특징으로 하는 양안이미지의 생성방법.
The method of claim 3,
The shift image generation step may include:
A foreground separation step in which an image to be subjected to the transition is separated into a foreground image and a background image by the mask;
A foreground shift step in which the foreground image is shifted in a predetermined direction and amount so that a shift foreground image is generated;
A shift image calculation step in which the shift foreground image and the background image are merged to generate a shift image
And generating a binocular image based on the generated binocular image.
청구항 4에 있어서,
상기 시프트이미지 생성단계는,
상기 천이의 대상이 되는 이미지가 상기 마스크에 의해 전경이미지와 배경이미지로 분리되는 전경 분리단계와,
상기 전경이미지가 미리 정해진 방향과 양으로 천이되어, 시프트 전경이미지가 생성되는 전경 시프트단계와,
상기 시프트 전경이미지와 배경이미지가 병합되어 시프트이미지가 산출되는 시프트이미지 산출단계
를 포함하여 이루어짐을 특징으로 하는 양안이미지의 생성방법.
The method of claim 4,
The shift image generation step may include:
A foreground separation step in which an image to be subjected to the transition is separated into a foreground image and a background image by the mask;
A foreground shift step in which the foreground image is shifted in a predetermined direction and amount so that a shift foreground image is generated;
A shift image calculation step in which the shift foreground image and the background image are merged to generate a shift image
And generating a binocular image based on the generated binocular image.
청구항 3에 있어서,
상기 평면이미지는 RGB이미지이고,
상기 분리단계에서, 상기 평면이미지가 서로 다른 컬러의 상기 제1 이미지와 제2 이미지로 채널 분할됨
을 특징으로 하는 양안이미지의 생성방법.
The method of claim 3,
Wherein the planar image is an RGB image,
In the separating step, the planar image is channel-divided into the first image and the second image of different colors
Wherein the first and second images are displayed on the display unit.
청구항 4에 있어서,
상기 평면이미지는 RGB이미지이고,
상기 분리단계에서, 상기 평면이미지가 서로 다른 컬러의 상기 제1 이미지와 제2 이미지로 채널 분할됨
을 특징으로 하는 양안이미지의 생성방법.
The method of claim 4,
Wherein the planar image is an RGB image,
In the separating step, the planar image is channel-divided into the first image and the second image of different colors
Wherein the first and second images are displayed on the display unit.
청구항 7에 있어서,
상기 서로 다른 컬러는, 보색
을 특징으로 하는 양안이미지의 생성방법.
The method of claim 7,
The different colors are complementary colors.
Wherein the first and second images are displayed on the display unit.
청구항 8에 있어서,
상기 서로 다른 컬러는, 보색
을 특징으로 하는 양안이미지의 생성방법.
The method of claim 8,
The different colors are complementary colors.
Wherein the first and second images are displayed on the display unit.
청구항 5에 있어서,
상기 전경 시프트단계에서, 깊이값이 작을수록 시프트양이 크게 설정됨
을 특징으로 하는 양안이미지의 생성방법.
The method of claim 5,
In the foreground shift step, the shift amount is set larger as the depth value is smaller
Wherein the first and second images are displayed on the display unit.
청구항 6에 있어서,
상기 전경 시프트단계에서, 깊이값이 작을수록 시프트양이 크게 설정됨
을 특징으로 하는 양안이미지의 생성방법.
The method of claim 6,
In the foreground shift step, the shift amount is set larger as the depth value is smaller
Wherein the first and second images are displayed on the display unit.
청구항 4에 있어서,
상기 시프트이미지 생성단계에서, 상기 제1 이미지와 제2 이미지의 시프트방향이 서로 반대방향이 되도록 설정됨
을 특징으로 하는 양안이미지의 생성방법.
The method of claim 4,
In the shift image generation step, the shift directions of the first image and the second image are set so as to be opposite to each other
Wherein the first and second images are displayed on the display unit.
이미지에서 전경을 분리하기 위해 이용되는 마스크의 생성장치로서,
촬상장치로부터 동일 각도로 동시에 생성 및 입력된 RGB이미지와 IR이미지로부터 산출된 깊이(depth)정보를 나타내는 깊이이미지로부터 깊이 배경(background)이미지를 분리 추출하는 깊이배경 추출부와,
상기 IR이미지로부터 추출된 경계선(edge) 이미지에서 상기 깊이 배경이미지를 감산하여 이루어진 경계선 전경(foreground)이미지의 경계선 내부를 삭제하여 이루어진 마스크를 생성하는 마스크 생성부
가 포함됨을 특징으로 하는 마스크의 생성장치.
An apparatus for generating a mask for use in separating a foreground from an image,
A depth background extracting unit for separating and extracting a depth background image from a depth image representing depth information calculated from an RGB image and an IR image generated and input simultaneously from the imaging apparatus at the same angle;
A mask generating unit for generating a mask by deleting a boundary line of a border foreground image obtained by subtracting the depth background image from an edge image extracted from the IR image ,
Wherein the mask is a mask.
이미지에서 전경을 분리하기 위해 이용되는 마스크의 생성장치로서,
촬상장치로부터 동일 각도로 동시에 생성 및 입력된 RGB이미지와 IR이미지로부터 산출된 깊이(depth)정보를 나타내는 깊이이미지로부터 깊이 배경(background)이미지를 분리 추출하는 깊이배경 추출부와,
상기 깊이이미지, RGB이미지 또는 IR이미지로부터 추출된 경계선(edge) 이미지에서 상기 깊이 배경이미지를 감산하여 이루어진 경계선 전경(foreground)이미지의 경계선 내부를 삭제하여 이루어진 마스크를 생성하는 마스크 생성부
가 포함되어 이루어지고,
상기 마스크 생성부에서,
상기 경계선 전경이미지 상의 등고선(contour)들이 찾아진 후, 최대길이 또는 최대면적을 가지는 등고선이 남겨지고 나머지 등고선들이 지워지고,
이진화(binarization)와 스무딩 필터링(smooth filtering)이 진행됨
을 특징으로 하는 마스크의 생성장치.
An apparatus for generating a mask for use in separating a foreground from an image,
A depth background extracting unit for separating and extracting a depth background image from a depth image representing depth information calculated from an RGB image and an IR image generated and input simultaneously from the imaging apparatus at the same angle;
A mask generating unit for generating a mask by deleting a boundary line of a boundary foreground image obtained by subtracting the depth background image from an edge image extracted from the depth image, the RGB image, or the IR image;
And,
In the mask generator,
After contours on the borderline foreground image are found, contour lines having a maximum length or maximum area are left and the remaining contour lines are erased,
Binarization and smooth filtering are performed.
Wherein the mask is a mask.
평면이미지의 입체화에 이용되는 양안이미지의 생성장치로서,
상기 평면이미지로부터 분할 또는 복제된 제1 이미지와 제2 이미지가 획득되는 분리부와,
청구항 14 또는 청구항 15에 의해 생성된 마스크가 상기 제1 이미지에 적용되어, 배경에 대해 전경이 천이된 제1 시프트이미지가 생성되는 시프트이미지 생성부와,
상기 제1 시프트이미지와 제2 이미지를 각각, 우안이미지와 좌안이미지, 또는 좌안이미지와 우안이미지로 확정하는 양안이미지 확정부
를 포함하여 이루어짐을 특징으로 하는 양안이미지의 생성장치.
An apparatus for generating a binocular image, which is used for solidification of a planar image,
A separating section in which a first image and a second image that are divided or copied from the plane image are obtained,
A shift image generation unit in which a mask generated by the method of claim 14 or 15 is applied to the first image to generate a first shift image whose foreground is shifted with respect to the background,
And a binocular image determining unit for determining the first shift image and the second image as a right eye image and a left eye image or a left eye image and a right eye image,
And an image generating unit for generating a binocular image based on the generated binocular image.
평면이미지의 입체화에 이용되는 양안이미지의 생성장치로서,
상기 평면이미지로부터 분할 또는 복제된 제1 이미지와 제2 이미지가 획득되는 분리부와,
청구항 14 또는 청구항 15에 의해 생성된 마스크가 상기 제1 이미지 및 제2 이미지에 적용되어, 각각 배경에 대해 전경이 천이된 제1 시프트이미지 및 제2 시프트이미지가 생성되는 시프트이미지 생성부와,
상기 제1 시프트이미지와 제2 시프트이미지를 각각, 우안이미지와 좌안이미지, 또는 좌안이미지와 우안이미지로 확정하는 양안이미지 확정부
를 포함하여 이루어짐을 특징으로 하는 양안이미지의 생성장치.
An apparatus for generating a binocular image, which is used for solidification of a planar image,
A separating section in which a first image and a second image that are divided or copied from the plane image are obtained,
A shift image generation unit in which masks generated by the fourteenth aspect of the present invention are applied to the first image and the second image to generate a first shift image and a second shift image,
And a binocular image determination unit for determining the first shift image and the second shift image as a right eye image and a left eye image or a left eye image and a right eye image,
And an image generating unit for generating a binocular image based on the generated binocular image.
이미지에서 전경을 분리하기 위해 이용되는 마스크의 생성방법의 각 단계를 정보처리기기에 실행시키기 위해 저장매체에 저장된 프로그램으로서,
청구항 1 또는 청구항 2의 마스크의 생성방법의 각 단계를 정보처리기기에 실행시키기 위해 정보처리기기에 의해 읽을 수 있는 저장매체에 저장된 프로그램.
A program stored in a storage medium for causing an information processing apparatus to execute each step of a method for generating a mask used for separating a foreground from an image,
A program stored in a storage medium readable by an information processing device for causing each of the steps of the method for generating a mask of claim 1 or 2 to be executed by the information processing device.
평면이미지의 입체화에 이용되는 양안이미지의 생성방법의 각 단계를 정보처리기기에 실행시키기 위해 저장매체에 저장된 프로그램으로서,
청구항 3의 양안이미지의 생성방법의 각 단계를 정보처리기기에 실행시키기 위해 정보처리기기에 의해 읽을 수 있는 저장매체에 저장된 프로그램.
A program stored in a storage medium for causing an information processing apparatus to execute each step of a method of generating a binocular image used for stereoscopic image formation,
A program stored in a storage medium readable by an information processing apparatus for causing each of the steps of the method of generating a binocular image of claim 3 to be executed by the information processing apparatus.
평면이미지의 입체화에 이용되는 양안이미지의 생성방법의 각 단계를 정보처리기기에 실행시키기 위해 저장매체에 저장된 프로그램으로서,
청구항 4의 양안이미지의 생성방법의 각 단계를 정보처리기기에 실행시키기 위해 정보처리기기에 의해 읽을 수 있는 저장매체에 저장된 프로그램.
A program stored in a storage medium for causing an information processing apparatus to execute each step of a method of generating a binocular image used for stereoscopic image formation,
A program stored in a storage medium readable by an information processing apparatus for causing each of the steps of the method for generating a two-dimensional image of claim 4 to be executed by the information processing apparatus.
KR1020170175819A 2017-12-20 2017-12-20 Method, apparatus and recording medium for generating mask and both-eye images for three-dimensional image KR101994472B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020170175819A KR101994472B1 (en) 2017-12-20 2017-12-20 Method, apparatus and recording medium for generating mask and both-eye images for three-dimensional image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020170175819A KR101994472B1 (en) 2017-12-20 2017-12-20 Method, apparatus and recording medium for generating mask and both-eye images for three-dimensional image

Publications (2)

Publication Number Publication Date
KR20190074454A KR20190074454A (en) 2019-06-28
KR101994472B1 true KR101994472B1 (en) 2019-07-31

Family

ID=67065741

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020170175819A KR101994472B1 (en) 2017-12-20 2017-12-20 Method, apparatus and recording medium for generating mask and both-eye images for three-dimensional image

Country Status (1)

Country Link
KR (1) KR101994472B1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20240020854A (en) * 2022-08-09 2024-02-16 삼성전자주식회사 Electornic device and method for obtaining depth map
CN117707204A (en) * 2024-01-30 2024-03-15 清华大学 Unmanned aerial vehicle high-speed obstacle avoidance system and method based on photoelectric end-to-end network

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101399418B1 (en) * 2013-06-03 2014-05-27 고려대학교 산학협력단 Device and method for video processing
KR101681199B1 (en) * 2015-06-03 2016-12-01 (주)이더블유비엠 Multi-color sensor based, method and apparatus for extraction of depth information from image using high-speed convolution

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101090179B1 (en) 2010-01-29 2011-12-06 주식회사 사이버메드 Display system for displaying 3-d images
KR20120014876A (en) * 2010-08-10 2012-02-20 삼성전자주식회사 Image processing apparatus and method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101399418B1 (en) * 2013-06-03 2014-05-27 고려대학교 산학협력단 Device and method for video processing
KR101681199B1 (en) * 2015-06-03 2016-12-01 (주)이더블유비엠 Multi-color sensor based, method and apparatus for extraction of depth information from image using high-speed convolution

Also Published As

Publication number Publication date
KR20190074454A (en) 2019-06-28

Similar Documents

Publication Publication Date Title
KR101185870B1 (en) Apparatus and method for processing 3 dimensional picture
US8199147B2 (en) Three-dimensional display apparatus, method, and program
US9544576B2 (en) 3D photo creation system and method
US6466255B1 (en) Stereoscopic video display method and apparatus, stereoscopic video system, and stereoscopic video forming method
JP5238429B2 (en) Stereoscopic image capturing apparatus and stereoscopic image capturing system
JP4635403B2 (en) Stereoscopic image creation method and apparatus
TWI444661B (en) Display device and control method of display device
US8766973B2 (en) Method and system for processing video images
JP4942106B2 (en) Depth data output device and depth data receiver
US8130259B2 (en) Three-dimensional display device and method as well as program
GB2465072A (en) Combining range information with images to produce new images of different perspective
JP2014056466A (en) Image processing device and method
US8648953B2 (en) Image display apparatus and method, as well as program
JP2011120233A (en) 3d video special effect apparatus, 3d video special effect method, and, 3d video special effect program
KR101994472B1 (en) Method, apparatus and recording medium for generating mask and both-eye images for three-dimensional image
EP2512146A1 (en) 3-d video processing device and 3-d video processing method
KR101994473B1 (en) Method, apparatus and program sotred in recording medium for refocucing of planar image
CN107155102A (en) 3D automatic focusing display method and system thereof
JP2006267767A (en) Image display device
KR101192121B1 (en) Method and apparatus for generating anaglyph image using binocular disparity and depth information
KR102242923B1 (en) Alignment device for stereoscopic camera and method thereof
KR102293837B1 (en) 3D display device and driving method thereof
JP3088852B2 (en) 3D image input device
JP2012213016A (en) Stereoscopic image generation device and stereoscopic image generation method
JP2007017558A (en) Apparatus and method for displaying stereoscopic image

Legal Events

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