KR101169786B1 - Video carving method and apparatus thereof - Google Patents
Video carving method and apparatus thereof Download PDFInfo
- Publication number
- KR101169786B1 KR101169786B1 KR1020100072363A KR20100072363A KR101169786B1 KR 101169786 B1 KR101169786 B1 KR 101169786B1 KR 1020100072363 A KR1020100072363 A KR 1020100072363A KR 20100072363 A KR20100072363 A KR 20100072363A KR 101169786 B1 KR101169786 B1 KR 101169786B1
- Authority
- KR
- South Korea
- Prior art keywords
- seam
- extracted
- frame
- current frame
- pixel
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 71
- 238000000605 extraction Methods 0.000 claims abstract description 31
- 230000008859 change Effects 0.000 claims abstract description 30
- 230000001186 cumulative effect Effects 0.000 claims description 19
- 230000007704 transition Effects 0.000 claims description 7
- 238000009826 distribution Methods 0.000 abstract description 6
- 238000010586 diagram Methods 0.000 description 12
- 230000008569 process Effects 0.000 description 10
- 230000002123 temporal effect Effects 0.000 description 9
- 239000000284 extract Substances 0.000 description 8
- 238000001514 detection method Methods 0.000 description 7
- 230000008901 benefit Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 1
- 238000009960 carding Methods 0.000 description 1
- 230000003247 decreasing effect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformations in the plane of the image
- G06T3/04—Context-preserving transformations, e.g. by using an importance map
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/85—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using pre-processing or post-processing specially adapted for video compression
- H04N19/87—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using pre-processing or post-processing specially adapted for video compression involving scene cut or scene change detection in combination with video compression
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Television Signal Processing For Recording (AREA)
- Image Analysis (AREA)
Abstract
본 발명은 내용 기반의 동영상 크기 조절 방법 및 장치에 관한 것으로, 더욱 상세하게는 심카빙(Seam Carving) 방식을 이용한 동영상 크기 조절 방법에서 현재 프레임의 장면 전환 여부를 통해 심 추출 방식을 구분하여 심을 추출함으로써 장면 전환시에만 독립적인 심 추출 방식을 사용하도록 하여 크기 조절시 연산량을 감소시키고 처리 속도를 향상시키며, 장면 전환이 일어나지 않은 경우 이전 프레임에서 추출한 심의 관련 정보를 이용하여 현재 프레임의 심을 추출함으로써 에너지 분포가 유사한 동일 장면에서의 연속 프레임에 대해 해당 장면의 전체 프레임의 정보 없이 현재 프레임의 심을 추출하도록 하여 실시간 스트리밍 형태로 제공되는 동영상에도 적용할 수 있고, 이전 프레임에서 추출한 심의 순서를 참고하여 기 추출한 심을 제외한 상태로 현재 프레임의 심을 추출함으로써 심의 좌표 중복을 방지하도록 하여 크기 조절한 동영상의 정상적인 재생을 가능하게 하는 효과가 있다.The present invention relates to a method and apparatus for resizing a video based on content, and more particularly, to extracting a seam by dividing a seam extraction method based on whether a current frame is changed in a video resizing method using a seam carving method. By using independent seam extraction method only when changing scenes, the amount of computation is reduced and processing speed is increased. When scene change does not occur, the seam of the current frame is extracted by using the relevant information of seams extracted from the previous frame. Simultaneous frames in the same scene with similar distribution can be extracted from the current frame without the information of the entire frame of the scene, and can be applied to a video provided in the real-time streaming form. Without shim It is effective in enabling the normal playback of the video scaling to prevent deliberate redundancy coordinates by extracting plant material of the frame.
Description
본 발명은 내용 기반의 동영상 크기 조절 방법 및 장치에 관한 것으로, 특히 심카빙(Seam Carving) 방식을 이용한 동영상 크기 조절 방법에서 이전 프레임에서 검출한 심의 관련 정보를 이용하여 현재 프레임의 심을 검출하도록 알고리즘을 개선하여 실시간 스트리밍 방식의 동영상에서도 적용 가능하도록 한 내용 기반의 동영상 크기 조절 방법 및 장치에 관한 것이다.
The present invention relates to a method and apparatus for resizing a video based on content, and in particular, an algorithm for detecting a seam of a current frame using seam related information detected in a previous frame in a video resizing method using a seam carving method. The present invention relates to a content-based video resizing method and apparatus that can be applied to a video of a real-time streaming method.
최근 무선통신과 모바일 기기의 활용도가 높아지면서 통신망을 통해 다양한 영상을 주고 받거나 모바일 기기에서 영상을 재생하는 빈도가 점차 증가하고 있는 추세이며, 이로 인해 영상은 이미 중요한 정보매체로 자리매김하였다. Recently, as the utilization of wireless communication and mobile devices increases, the frequency of transmitting and receiving various images through a communication network or playing videos on a mobile device is gradually increasing. As a result, video has become an important information medium.
이러한 모바일 기기는 화면의 크기가 제한적이므로 해당 기기에서 다양한 영상을 더욱 효과적으로 이용하기 위하여, 영상의 크기를 변경하여 재생하는 작업은 매우 중요하다. 예를 들면, 많은 수의 영상들을 동시에 검색하기 위해 영상의 사이즈를 작게 만들어서 동시에 복수의 사진을 화면에 보여주는 썸네일(Thumbnail) 기술이 그 일 예이다.Since the screen size of the mobile device is limited, in order to use various images more effectively in the corresponding device, it is very important to resize and play the video. For example, a thumbnail technology for reducing the size of an image to simultaneously search a large number of images and simultaneously displaying a plurality of pictures on the screen is one example.
이러한 영상의 크기를 조절하는 방식은 다양하나, 그 중의 하나로 최근 각광받고 있는 것이 영상의 내용을 기반으로 하여 그 중요도에 따라 영상의 크기를 조절함으로써 영상의 크기를 어느 방향으로 조절하더라도 원본 영상이 갖는 원래의 비율이 크게 왜곡되지 않으면서 원본 영상의 전체적인 영상 정보를 모두 담을 수 있도록 한 영상 내용을 기반으로 한 영상 크기 조절 방식이다.There are various ways to adjust the size of the image, but one of the most recent spotlights is to adjust the size of the image based on its importance based on the content of the image so that the original image can be adjusted in any direction. It is an image resizing method based on the video contents that can contain all the image information of the original image without significantly distorting the original ratio.
이러한 내용 기반의 영상 크기 조절 방식 중 정지영상을 기반으로 높은 성능을 인정받는 방식이 심카빙(Seam Carving) 방식으로서, 심카빙 방식은 원본 영상의 내용을 분석하여 중요하지 않다고 판단되는 픽셀(Pixel)들을 복제하거나 제거함으로써 영상의 크기를 늘리거나 줄이는 영상 크기 조절 방식이다. Among the content-based image resizing methods, a high performance recognition method based on a still image is a seam carving method, and a deep carbing method analyzes the contents of an original image and is determined to be insignificant. Image resizing is made by increasing or decreasing the size of images by copying or removing them.
즉, 심카빙 방식은 기 설정한 방식으로 정의되는 각 픽셀들의 에너지 (Energy)값을 구하고, 원본 영상에서 중요도가 낮은 부분일수록 해당 픽셀의 에너지값도 낮다는 상관관계를 이용하여, 원본 영상에서 에너지값이 작은 부분을 삭제하거나 복제하여 영상의 크기를 조절한다. That is, the simcarving method obtains energy values of each pixel defined by a preset method, and uses the correlation that the lower importance portion of the original image has a lower energy value. Adjust the size of the image by deleting or duplicating the small value.
이때, 일반적인 방식으로 픽셀들을 삭제하거나 복제하여 크기를 조절할 경우 최종 영상이 일그러지는 현상이 발생하게 된다. 따라서, 이를 방지하기 위해 영상의 가로, 세로 방향의 에너지를 구하고 각각의 시작 좌표에서 연결된 에너지값의 합이 최소가 되는 라인을 찾아 심(seam : 가로 또는 세로 방향으로 이웃 픽셀과 인접하며 에너지값이 최소가 되는 픽셀들의 집합) 후보로 사용한다. 이러한 심(seam) 후보 중 가장 작은 합을 가지는 라인이 최종 심으로 선택되며, 이 심의 픽셀들을 복제하거나 제거하는 방법으로 영상의 크기를 조절한다. In this case, when the size is deleted by deleting or duplicating the pixels in a general manner, the final image is distorted. Therefore, in order to prevent this, the energy of the horizontal and vertical directions of the image is obtained, and the line where the sum of the connected energy values in each start coordinate is the minimum is found and the seam is adjacent to the neighboring pixels in the horizontal or vertical direction. It is used as a candidate). The line having the smallest sum among these seam candidates is selected as the final seam, and the image size is adjusted by duplicating or removing pixels of the seam.
심카빙 방식을 이용하면 원본 영상의 특정 부분들의 정보 손실은 있지만 전체적으로 콘텐츠를 유지하면서 배경 영역과 같이 비 관심 영역의 자료를 줄여 자연스럽게 영상의 크기를 조절할 수 있는 장점이 있다.
Using the sim carding method, there is a loss of information of certain parts of the original image, but there is an advantage that the size of the image can be naturally adjusted by reducing the data of the uninterested region such as the background region while maintaining the content as a whole.
이러한 심카빙 방식은 동영상에도 적용하여 해당 동영상의 크기를 조절할 수 있다. 도 1은 심카빙 방식을 적용한 동영상의 예시도로서, 비디오 카빙(Video Carving)은 시간축(6)으로 프레임들(3,4,5)을 연결한 3차원 큐브(1)를 이용한다.This simcarving method can be applied to a video to adjust the size of the video. FIG. 1 is an exemplary view of a video using a deep carving method, and video carving uses a
동영상의 크기를 조절하는 경우는, 정지 영상과는 달리 해당 동영상에 포함되는 전체 프레임에 대해 프레임 내의 에너지와 연속된 프레임들의 에너지 상관 관계를 이용한다. 따라서, 정확하고 손실이 적은 심 집합인 최적의 심 집합(Seam Set)을 찾기 위해서는 현재 프레임의 에너지값뿐만 아니라, 이후 프레임에서의 위치별 에너지도 중요하기 때문에, 동영상 전체를 분석하여 에너지 누적값이 최저인 심 집합(2: 11,12,13을 포함함)을 구한다.When adjusting the size of a video, unlike the still image, the energy correlation of the energy in the frame and the continuous frames is used for the entire frame included in the video. Therefore, in order to find the optimal seam set, which is an accurate and low loss seam set, not only the energy value of the current frame but also the energy of each position in subsequent frames is important. Find the lowest seam set (including 2: 11,12,13).
이러한 최적의 심 집합은 공간좌표와 시간좌표에서 최적의 값을 가지며, 복수의 심을 구하게 된다면 심의 개수만큼의 반복 계산이 필요하다.
This optimal set of shims has an optimal value in spatial and temporal coordinates, and if a plurality of shims is obtained, it is necessary to repeatedly calculate the number of shims.
심 카빙을 동영상에 적용하는 방법의 일 예로서, 하나의 장면에 속한 모든 프레임의 검색을 통하여 최적의 심 집합을 추출하는 방법이 있다. 그러나, 이러한 방법은 동영상 전체를 미리 가지고 있어야 하므로, 내장된 동영상을 심 카빙에 의해 원하는 사이즈로 미리 변환한 후 재생할 때는 문제가 없으나, 실시간 방송형태의 동영상에 적용하기에는 문제점이 있다.As an example of a method of applying seam carving to a video, there is a method of extracting an optimal set of seams by searching all frames belonging to a scene. However, since this method must have the entire video in advance, there is no problem in converting the embedded video to the desired size by sim carving and playing it in advance, but there is a problem in applying it to a real-time broadcasting video.
또한, 동영상에서 최적의 심 집합을 구하기 위해서는 장면이 시작된 프레임에서 최적의 심을 구한 후, 이후 프레임에서 연결성을 가지는 모든 경우의 수를 다시 계산해야 한다. 이는 상기 경우의 수에 의해 늘어나는 심의 개수에 따라 기하급수적으로 계산 복잡도가 증가하는 문제점이 있다.In addition, in order to obtain an optimal shim set from a video, an optimal shim is obtained from a frame at which a scene starts, and then the number of all cases having connectivity in a subsequent frame must be recalculated. This has a problem that the computational complexity increases exponentially with the number of shims increasing by the number of cases.
더불어, 동영상에서의 최적의 심 집합이 되기 위해서는 단순성(monotonic)과 연결성(connected)을 모두 가지고 있어야 한다. 즉, 단순성이 없을 경우 중요한 영상 정보의 훼손이 일어날 수 있으며, 연결성이 보장되지 않으면 각각의 공간좌표에서의 복수의 심들이 서로 연관관계 없이 독립적으로 존재하게 되어, 이러한 연결성이 보장되지 않은 심을 이용하여 재생할 경우 화면의 심한 떨림(jitter)이 발생하는 문제점이 있다.
In addition, in order to be an optimal shim set in a video, it must have both simplicity (monotonic) and connected (connected). In other words, in the absence of simplicity, important image information may be damaged. If the connectivity is not guaranteed, a plurality of shims in each spatial coordinate may exist independently of each other, and thus, using such seams that are not guaranteed to be connected, There is a problem that severe jitter occurs when playing.
전술한 문제점을 개선하기 위한 본 발명 실시 예의 목적은 현재 프레임의 장면 전환 여부를 통해 심 추출 방식을 구분하여 심을 추출함으로써 장면 전환시에만 독립적인 심 추출 방식을 사용하도록 한 내용 기반의 동영상 크기 조절 방법 및 장치를 제공하는 것이다.An object of an embodiment of the present invention for improving the above-described problem is to extract the seam by dividing the seam extraction method based on whether or not the scene transition of the current frame to use an independent seam extraction method only when the scene change And to provide an apparatus.
전술한 문제점을 개선하기 위한 본 발명 실시 예의 다른 목적은 장면 전환이 일어나지 않은 경우 이전 프레임에서 추출한 심의 관련 정보를 이용하여 현재 프레임의 심을 추출함으로써 에너지 분포가 유사한 동일 장면에서의 연속 프레임에 대해 해당 장면의 전체 프레임의 정보 없이 현재 프레임의 심을 추출하도록 한 내용 기반의 동영상 크기 조절 방법 및 장치를 제공하는 것이다.Another object of the embodiment of the present invention for improving the above-described problem is to extract the seam of the current frame using the seam information extracted from the previous frame when the scene change does not occur, the scene for the continuous frame in the same scene with similar energy distribution The present invention provides a method and apparatus for resizing a content-based video that extracts a seam of a current frame without information on the entire frame.
전술한 문제점을 개선하기 위한 본 발명 실시 예의 또 다른 목적은 이전 프레임에서 추출한 심의 순서를 참고하여 기 추출한 심을 제외한 상태로 현재 프레임의 심을 추출함으로써 심의 좌표 중복을 방지하도록 한 내용 기반의 동영상 크기 조절 방법 및 장치를 제공하는 것이다.Another object of an embodiment of the present invention for improving the above-described problem is to adjust the content-based video size to prevent the overlap of the seam coordinates by extracting the seam of the current frame with the exception of the seam already extracted by referring to the order of seams extracted from the previous frame And to provide an apparatus.
전술한 문제점을 개선하기 위한 본 발명 실시 예의 또 다른 목적은 장면 내 현재 프레임의 심의 추출시 각 픽셀의 에너지값 및 누적 에너지값을 이전 프레임의 심의 에너지값 및 누적 에너지값과 비교하여 추출함으로써 단순성을 만족하도록 한 내용 기반의 동영상 크기 조절 방법 및 장치를 제공하는 것이다.Another object of the present invention for improving the above-described problem is to extract simplicity by extracting the energy value and the cumulative energy value of each pixel in the extraction of the seam of the current frame in the scene by comparing the energy value and the cumulative energy value of the seam of the previous frame. To provide a content-based video resizing method and apparatus to satisfy.
전술한 문제점을 개선하기 위한 본 발명 실시 예의 또 다른 목적은 장면 내 현재 프레임의 심의 추출시 각 픽셀의 공간적 연결성 및 이전 프레임의 심과의 시간적 연결성을 고려하여 추출함으로써 연결성을 만족하도록 한 내용 기반의 동영상 크기 조절 방법 및 장치를 제공하는 것이다.Another object of the present invention for improving the above-described problem is to extract the seam of the current frame in the scene in consideration of the spatial connectivity of each pixel and the temporal connectivity with the seam of the previous frame to extract the content-based content A method and apparatus for resizing a video are provided.
전술한 문제점을 개선하기 위한 본 발명 실시 예의 또 다른 목적은 동영상의 크기 조절시 복제되거나 제거되는 영상의 픽셀에 따라 이에 대응하는 심 맵의 좌표를 삽입하거나 삭제함으로써 동영상과 심 맵의 좌표를 동기화하도록 한 내용 기반의 동영상 크기 조절 방법 및 장치를 제공하는 것이다.
Another object of the present invention for improving the above-described problem is to synchronize the coordinates of the video and the seam map by inserting or deleting the coordinates of the seam map corresponding to the pixels of the image to be copied or removed when the video is resized One aspect of the present invention is to provide a method and an apparatus for resizing video.
상기 목적을 달성하기 위한 본 발명의 실시 예에 따른 내용 기반의 동영상 크기 조절 방법은 a) 현재 프레임의 장면 전환 여부를 검출하는 단계; b) 상기 a) 단계에서 현재 프레임이 장면 전환 프레임이 아니면 이전 프레임에서 추출한 심의 관련 정보를 이용하여 이에 대응하는 현재 프레임의 심을 추출하는 단계; c) 상기 b) 단계에서 추출한 현재 프레임의 심의 관련 정보를 저장하는 단계; 및 d) 상기 b) 단계에서 추출한 심을 이용하여 현재 프레임의 크기를 조절하는 단계를 포함한다.Content-based video resizing method according to an embodiment of the present invention for achieving the above object comprises the steps of: a) detecting whether or not to change the scene of the current frame; b) extracting a seam of a current frame corresponding to the seam using information related to seams extracted from a previous frame if the current frame is not a scene change frame in step a); c) storing the shim related information of the current frame extracted in step b); And d) adjusting the size of the current frame using the seams extracted in step b).
상기 b) 단계는 상기 a) 단계에서 현재 프레임이 장면 전환 프레임이면 이전 프레임에서 추출한 심의 관련 정보를 이용하지 않고 현재 프레임의 심을 추출하는 단계를 더 포함한다.The step b) further includes extracting the seam of the current frame without using the seam-related information extracted from the previous frame if the current frame is a scene change frame in step a).
상기 c) 단계는 현재 프레임에서 추출한 심의 순서를 저장하며, 상기 b) 단계는 이전 프레임에서 추출한 심의 순서대로 이에 대응하는 심을 기 추출한 심을 제외한 상태로 추출하는 것을 상기 심의 순서의 개수만큼 반복한다.Step c) stores the order of seams extracted from the current frame, and step b) repeats the extraction of seams corresponding to the seams extracted from the previous frame with the number of seam orders except for the seams already extracted.
상기 c) 단계는 현재 프레임에서 추출한 심에 포함되는 픽셀의 좌표를 저장하며, 상기 b) 단계는 상기 대응되는 이전 프레임에서 추출한 심의 시작 픽셀의 좌표를 기준으로 동일 라인의 소정 범위 내 좌표를 시작 픽셀의 좌표로 하는 심을 추출한다.Step c) stores the coordinates of the pixels included in the seam extracted from the current frame, and step b) starts the coordinates within a predetermined range of the same line based on the coordinates of the start pixel of the seam extracted from the corresponding previous frame. Extract the seam with the coordinates of.
상기 b) 단계는 e) 상기 현재 프레임의 심을 추출하기 위해 상기 소정 범위 내 좌표 중 하나를 시작 픽셀의 좌표로 하는 심 후보를 하나 이상 선별하는 단계를 더 포함한다.The step b) further includes e) selecting one or more seam candidates having one of the coordinates within the predetermined range as starting pixel coordinates to extract the seams of the current frame.
상기 e) 단계에서 상기 심 후보를 구성하는 픽셀은 인접 라인의 픽셀과 인접하며, 상기 대응되는 이전 프레임의 심의 동일 라인에서 대응되는 픽셀의 좌표와 그 좌표가 인접하거나 동일한 것을 픽셀 조건으로 갖는다.In step e), the pixels constituting the shim candidate are adjacent to the pixels of the adjacent line, and have pixel conditions that the coordinates of the corresponding pixel and the coordinates of the corresponding line in the same line of the shim of the corresponding previous frame are adjacent or the same.
상기 c) 단계는 현재 프레임에서 추출한 심에 포함되는 픽셀의 에너지값을 저장하며, 상기 e) 단계는 상기 픽셀 조건을 만족하는 픽셀들의 에너지값을 계산하여, 이와 상기 대응되는 이전 프레임의 심의 동일 라인에서 상기 픽셀과 대응되는 픽셀의 에너지값과 최소 차이를 갖는 픽셀들을 상기 심 후보를 구성하는 픽셀로 하여 상기 심 후보로 선별한다.In step c), the energy value of the pixel included in the seam extracted from the current frame is stored. In step e), the energy value of the pixels satisfying the pixel condition is calculated to correspond to the same line of the seam of the previous frame. In FIG. 5, pixels having a minimum difference from an energy value of a pixel corresponding to the pixel are selected as the shim candidates as pixels constituting the shim candidate.
상기 c) 단계는 현재 프레임에서 추출한 심에 포함되는 픽셀의 에너지값의 누적값을 저장하며, 상기 b) 단계는 상기 하나 이상의 심 후보 중 픽셀의 에너지값의 누적값이 상기 대응되는 이전 프레임의 심의 픽셀의 에너지값의 누적값과 최소 차이를 갖는 심 후보를 상기 이전 프레임의 심에 대응되는 현재 프레임의 심으로 추출한다.In step c), a cumulative value of energy values of pixels included in a seam extracted from a current frame is stored, and in step b), a cumulative value of a previous frame corresponding to the cumulative value of energy values of pixels among the one or more seam candidates is determined. A seam candidate having a minimum difference from an accumulated value of energy values of pixels is extracted as a seam of the current frame corresponding to the seam of the previous frame.
상기 e) 단계에서 상기 심 후보를 구성하는 픽셀은 인접 라인의 픽셀과 소정 범위 이내이며, 상기 대응되는 이전 프레임의 심의 동일 라인에서 대응되는 픽셀의 좌표와 그 좌표가 소정 범위 이내인 것을 픽셀 조건으로 갖는다.In step e), the pixels constituting the shim candidate are within a predetermined range with the pixels of the adjacent line, and the pixel condition is that the coordinates of the corresponding pixel and the coordinates are within the predetermined range in the same line of the shim of the corresponding previous frame. Have
상기 d) 단계는 상기 동영상에 대응되는 심 맵을 생성하는 단계; 및 좌표와의 동기화를 위해, 상기 동영상의 크기 조절시 복제되거나 또는 제거되는 픽셀에 대응하는 상기 심 맵의 픽셀을 삽입하거나 또는 삭제하는 단계를 더 포함한다.
The step d) may include generating a seam map corresponding to the video; And inserting or deleting a pixel of the seam map corresponding to a pixel that is copied or removed when the video is resized for synchronization with coordinates.
또한, 상기 목적을 달성하기 위한 본 발명의 실시 예에 따른 내용 기반의 동영상 크기 조절 장치는 현재 프레임의 장면 전환 여부를 검출하는 장면 전환 검출부; 현재 프레임이 장면 전환 프레임이 아니면 이전 프레임에서 추출한 심의 관련 정보를 이용하여 이에 대응하는 현재 프레임의 심을 추출하고, 현재 프레임이 장면 전환 프레임이면 이전 프레임에서 추출한 심의 관련 정보를 이용하지 않고 현재 프레임의 심을 추출하는 심 추출부; 상기 추출한 현재 프레임의 심의 관련 정보를 저장하는 심 정보 저장부; 및 상기 추출한 심을 이용하여 현재 프레임의 크기를 조절하는 리사이징부를 포함한다.In addition, a content-based video resizing apparatus according to an embodiment of the present invention for achieving the above object includes a scene change detection unit for detecting whether the current frame scene change; If the current frame is not a transition frame, the seam of the current frame corresponding to the seam extracted from the previous frame is extracted. If the current frame is a transition frame, the seam of the current frame is extracted without using the seam information of the previous frame. A seam extractor for extracting; A shim information storage unit for storing shim related information of the extracted current frame; And a resizing unit for adjusting the size of the current frame by using the extracted shim.
상기 심 정보 저장부는 상기 현재 프레임에서 추출한 심의 순서를 저장하며,The shim information storage unit stores an order of shims extracted from the current frame,
상기 심 추출부는 이전 프레임에서 추출한 심의 순서대로 이에 대응하는 심을 기 추출한 심을 제외한 상태로 추출하는 것을 상기 심의 순서의 개수만큼 반복한다.
The shim extractor repeats extracting the shims corresponding to the shims extracted from the previous frame in a state other than the pre-extracted shims by the number of shims.
본 발명의 실시 예에 따른 내용 기반의 동영상 크기 조절 방법 및 장치는 현재 프레임의 장면 전환 여부를 통해 심 추출 방식을 구분하여 심을 추출함으로써 장면 전환시에만 독립적인 심 추출 방식을 사용하도록 하여 크기 조절시 연산량을 감소시키고 처리 속도를 향상시키는 효과가 있다.Content-based video resizing method and apparatus according to an embodiment of the present invention is to extract the seam by dividing the seam extraction method based on whether the current frame scene change or not, so that the independent seam extraction method is used only when the scene change This reduces the amount of computation and improves the processing speed.
본 발명의 실시 예에 따른 내용 기반의 동영상 크기 조절 방법 및 장치는 장면 전환이 일어나지 않은 경우 이전 프레임에서 추출한 심의 관련 정보를 이용하여 현재 프레임의 심을 추출함으로써 에너지 분포가 유사한 동일 장면에서의 연속 프레임에 대해 해당 장면의 전체 프레임의 정보 없이 현재 프레임의 심을 추출하도록 하여 실시간 스트리밍 형태로 제공되는 동영상에도 적용할 수 있는 효과가 있다.Content-based video resizing method and apparatus according to an embodiment of the present invention extracts the seam of the current frame by using the seam-related information extracted from the previous frame when no scene change occurs in the continuous frame in the same scene with similar energy distribution By extracting the seam of the current frame without the information of the entire frame of the scene, there is an effect that can be applied to the video provided in the real-time streaming form.
본 발명의 실시 예에 따른 내용 기반의 동영상 크기 조절 방법 및 장치는 이전 프레임에서 추출한 심의 순서를 참고하여 기 추출한 심을 제외한 상태로 현재 프레임의 심을 추출함으로써 심의 좌표 중복을 방지하도록 하여 크기 조절한 동영상의 정상적인 재생을 가능하게 하는 효과가 있다.Content-based video resizing method and apparatus according to an embodiment of the present invention to extract the seam of the current frame in the state except the pre-extracted seam with reference to the order of seams extracted from the previous frame to prevent overlapping coordinates of the seam It has the effect of enabling normal reproduction.
본 발명의 실시 예에 따른 내용 기반의 동영상 크기 조절 방법 및 장치는 장면 내 현재 프레임의 심의 추출시 각 픽셀의 에너지값 및 누적 에너지값을 이전 프레임의 심의 에너지값 및 누적 에너지값과 비교하여 추출함으로써 단순성을 만족하도록 하여 크기 조절한 동영상의 부드러운 재생을 가능하게 하는 효과가 있다.Content-based video resizing method and apparatus according to an embodiment of the present invention by extracting the energy value and the cumulative energy value of each pixel in the extraction of the seam of the current frame in the scene by comparing the energy value and cumulative energy value of the seam of the previous frame The simplicity is satisfied to enable smooth playback of the resized video.
본 발명의 실시 예에 따른 내용 기반의 동영상 크기 조절 방법 및 장치는 장면 내 현재 프레임의 심의 추출시 각 픽셀의 공간적 연결성 및 이전 프레임의 심과의 시간적 연결성을 고려하여 추출함으로써 연결성을 만족하도록 하여 크기 조절한 동영상의 화면 떨림 현상을 방지하는 효과가 있다.Content-based video resizing method and apparatus according to an embodiment of the present invention to extract the seam of the current frame in the scene in consideration of the spatial connectivity of each pixel and the temporal connectivity with the seam of the previous frame to extract the size to satisfy the connectivity It is effective to prevent the screen shaking of the adjusted video.
본 발명의 실시 예에 따른 내용 기반의 동영상 크기 조절 방법 및 장치는 동영상의 크기 조절시 복제되거나 제거되는 영상의 픽셀에 따라 이에 대응하는 심 맵의 좌표를 삽입하거나 삭제함으로써 동영상과 심 맵의 좌표를 동기화하도록 하여 동영상의 크기 조절 연산을 용이하게 하는 효과가 있다.
Content-based video resizing method and apparatus according to an embodiment of the present invention by inserting or deleting the coordinates of the seam map corresponding to the pixel of the image to be copied or removed when the size of the video is adjusted to adjust the coordinates of the video and seam map By synchronizing, it is easy to resize the video.
도 1은 심카빙(Video Carving) 방식을 적용한 동영상의 예시도.
도 2는 본 발명의 실시 예에 따른 내용 기반의 동영상 크기 조절 방법의 순서도.
도 3은 본 발명의 실시 예에 따른 이전 프레임의 심 관련 정보의 예시도.
도 4는 본 발명의 실시 예에 따른 심 추출 단계의 순서도.
도 5는 본 발명의 실시 예에 따른 심 후보의 예시도.
도 6은 본 발명의 실시 예에 따른 심 후보의 픽셀 선별의 예시도.
도 7은 본 발명의 실시 예에 따른 심 후보 선별의 예시도.
도 8은 본 발명의 실시 예에 따른 심 추출의 예시도.
도 9는 본 발명의 실시 예에 따른 프레임 크기 조절의 예시도.
도 10은 본 발명의 실시 예에 따른 프레임 크기 조절의 순서도.
도 11은 본 발명의 실시 예에 따른 동영상 크기 조절 장치의 구성도.
도 12는 본 발명의 실시 예에 따른 심추출부의 구성도.1 is an exemplary diagram of a video to which a video carving method is applied.
2 is a flow chart of a content-based video scaling method according to an embodiment of the present invention.
3 is an exemplary diagram of seam related information of a previous frame according to an embodiment of the present invention.
4 is a flow chart of a seam extraction step according to an embodiment of the present invention.
5 is an exemplary view of a shim candidate according to an embodiment of the present invention.
6 is an exemplary diagram of pixel selection of a shim candidate according to an embodiment of the present invention.
7 is an illustration of shim candidate selection according to an embodiment of the present invention.
8 is an exemplary view of shim extraction according to an embodiment of the present invention.
9 is an exemplary diagram of frame size adjustment according to an embodiment of the present invention.
10 is a flowchart illustrating frame size adjustment according to an embodiment of the present invention.
11 is a block diagram of a video size control device according to an embodiment of the present invention.
12 is a block diagram of a heart extraction unit according to an embodiment of the present invention.
상기한 바와 같은 본 발명을 첨부된 도면들과 실시 예들을 통해 상세히 설명하도록 한다.The present invention as described above will be described in detail with reference to the accompanying drawings and embodiments.
도 2는 본 발명의 실시 예에 따른 내용 기반의 동영상 크기 조절 방법의 순서도로서, 상기 본 발명의 실시 예에 따른 내용 기반의 동영상 크기 조절 방법은 현재 프레임의 정보가 입력되는 단계(S110), 현재 프레임의 장면 전환(Scene Change) 여부를 검출하는 단계(S120), 상기 장면 전환 검출 단계(S120)에서 현재 프레임이 장면 전환 프레임이 아니면 이전 프레임에서 추출한 심의 관련 정보를 이용하여 이에 대응하는 현재 프레임의 심(Seam)을 추출하는 단계(S130), 상기 심 추출 단계(S130)에서 추출한 현재 프레임의 심의 관련 정보를 저장하는 단계(S150) 및 상기 심 추출 단계(S130)에서 추출한 심을 이용하여 현재 프레임의 크기를 조절하는 단계(S160)를 포함한다.2 is a flowchart of a content-based video resizing method according to an embodiment of the present invention, the content-based video resizing method according to an embodiment of the present invention step (S110), the current frame information is input; Detecting whether a frame has a scene change (S120), and if the current frame is not a scene change frame in the scene change detection step (S120), by using the relevant information of a seam extracted from a previous frame, Extracting a seam (S130), storing the seam-related information of the current frame extracted in the seam extraction step (S130) (S150) and the seam extracted in the seam extraction step (S130) of the current frame Adjusting the size (S160).
상기 심 추출 단계(S130)는 상기 장면 전환 검출 단계(S120)에서 현재 프레임이 장면 전환 프레임이면 이전 프레임에서 추출한 심의 관련 정보를 이용하지 않고 현재 프레임의 심을 추출하는 단계(S140)를 더 포함한다.The seam extraction step S130 further includes extracting a seam of the current frame without using seam-related information extracted from a previous frame if the current frame is a scene change frame in the scene change detection step S120.
상기 장면 전환 검출 단계(S120)는 동영상의 프레임을 입력으로 받아 장면 전환 검출을 통하여 새로운 장면이 시작되었는지 여부를 판단한다. 이때, 다양한 방법을 이용하여 장면 전환 여부를 검출할 수 있으므로 이의 상세한 설명은 생략하기로 한다.The scene change detection step (S120) receives a frame of a video as an input and determines whether a new scene has started through scene change detection. In this case, the scene change may be detected using various methods, and thus its detailed description will be omitted.
상기 심 추출 단계는 새로운 장면이 시작되었을 경우에는 이전 장면에서의 심 관련 정보를 무시하고, 정지영상에서의 심 카빙(Seam Carving) 방식을 통하여 심을 추출한다(S140). 반면에 장면 전환이 일어나지 않은 경우, 즉 이전 프레임과 같은 장면에 속할 경우, 이전 프레임의 심 관련 정보를 이용하여 현재 프레임에서 심을 검색한다(S130). 상기 심 관련 정보의 상세한 설명은 도 3에서 하기로 한다.When the new scene starts, the shim extraction step ignores the shim related information in the previous scene and extracts the shim through a seam carving method in the still image (S140). On the other hand, if no scene change occurs, that is, belonging to the same scene as the previous frame, the seam is searched for in the current frame using the seam related information of the previous frame (S130). Detailed description of the shim related information will be given below with reference to FIG. 3.
상기 단계 이후, 검색된 심에 대한 정보를 갱신한 뒤, 영상의 크기를 조절한다(S160).After the above step, after updating the information on the searched seam, the size of the image is adjusted (S160).
이처럼 상기 심 추출 단계(S130, S140)에서 현재 프레임의 장면 전환 여부를 통해 심 추출 방식을 구분하여 심을 추출하기 때문에, 장면 전환시에만 독립적인 심 추출 방식을 사용하도록 하므로 기존의 방법에 비해 목적 동영상의 크기를 조절할 때 연산량을 감소시키고 처리 속도를 향상시킬 수 있다.In this way, since the seam extraction method is used to extract seams based on whether the current frame is switched in the seam extraction step (S130, S140), an independent seam extraction method is used only when the scene changes, so that the target video is compared with the existing method. You can reduce the amount of computation and increase the processing speed when resizing.
또한, 장면 전환이 일어나지 않은 경우 이전 프레임에서 추출한 심의 관련 정보를 이용하여 현재 프레임의 심을 추출하여, 에너지 분포가 유사한 동일 장면에서의 연속 프레임에 대해 해당 장면의 전체 프레임의 정보 없이 현재 프레임의 심을 추출할 수 있으므로, 실시간 스트리밍 형태로 제공되는 동영상에도 적용할 수 있다.
In addition, if no scene transition occurs, the seam of the current frame is extracted using the seam information extracted from the previous frame, and the seam of the current frame is extracted without information of the entire frame of the scene for successive frames in the same scene having similar energy distribution. It can also be applied to videos provided in the form of real-time streaming.
도 3은 본 발명의 실시 예에 따른 이전 프레임의 심 관련 정보의 예시도로서, 장면 전환이 발생하지 않은 프레임에서 심 추출시에 이용하는 이전 프레임의 심 관련 정보를 도시한 것이다.3 is a diagram illustrating seam related information of a previous frame according to an exemplary embodiment of the present invention, and illustrates seam related information of a previous frame used for seam extraction in a frame in which no scene change occurs.
장면 전환이 발생하면, 해당 장면의 첫 프레임에 대해서는 일반적인 정지영상의 심 카빙 방식을 사용하여 심을 추출한다. 이때, 상기 추출한 심에 대하여 상기 심에 포함되는 픽셀에 해당하는 각각의 좌표와 좌표별로 구한 에너지(energy)값을 저장하여 다음 프레임에서 심을 추출할 때 이용한다. 상기 이전 프레임의 심 관련 정보로서 도시한 바와 같이, 심을 추출한 순서대로 심의 순서(1,2,3,4), 심의 픽셀 좌표, 좌표별 에너지값(픽셀의 에너지값) 및 심이 가지는 총 누적 에너지값(심에 포함되는 픽셀 에너지값의 누적값)을 저장하고 있다. If a scene change occurs, the first frame of the scene is extracted using a seam carving method of a general still image. At this time, the coordinates of the extracted seam and the energy value obtained for each coordinate corresponding to the pixel included in the seam are stored and used to extract the seam in the next frame. As shown as the shim related information of the previous frame, the order of seams (1, 2, 3, 4), the pixel coordinates of the seams, the energy value per coordinate (energy value of pixels) and the total cumulative energy value of the seams in the order of seam extraction. (A cumulative value of pixel energy values included in the shim) is stored.
상기 이전 프레임의 심 관련 정보를 이용하여 현재 프레임에서 심을 추출하는 단계는 도 4에서 상세히 설명하기로 한다.
Extracting the seam from the current frame using the seam related information of the previous frame will be described in detail with reference to FIG. 4.
도 4는 본 발명의 실시 예에 따른 심 추출 단계의 순서도로서, 장면 전환이 일어나지 않고 현재 프레임이 이전 프레임과 같은 장면에 속할 경우, 이전 프레임에서 저장된 심의 관련 정보를 이용하여 현재 프레임의 심을 추출하는 단계를 도시한 것이다. 4 is a flowchart of a seam extraction step according to an embodiment of the present invention. When a scene change does not occur and the current frame belongs to the same scene as the previous frame, the seam of the current frame is extracted using the seam-related information stored in the previous frame. The steps are shown.
상기 심 추출 단계에서는 이전 프레임에서 추출한 심이 해당 프레임에서의 최적의 심이고, 같은 장면 내의 연속하는 두 프레임 즉, 이전 프레임과 현재 프레임은 서로 유사성을 지닌다는 특징을 이용한다. 영상이 유사하다는 것은 에너지 분포가 유사하다는 것으로, 이것은 두 영상의 심도 유사한 형태로 추출된다는 것을 말한다. 따라서, 이를 이용하여 이전 프레임에서 추출한 심의 좌표에서 소정 범위 내에서 현재 프레임의 심을 추출할 수 있다. In the seam extraction step, the seam extracted from the previous frame is an optimal seam in the frame, and two consecutive frames in the same scene, that is, the previous frame and the current frame have similarities. Similarity of images means that the energy distribution is similar, which means that the depths of the two images are extracted in a similar form. Accordingly, the seam of the current frame may be extracted within a predetermined range from the coordinates of the seam extracted from the previous frame.
만일, 이런 과정 없이 매 프레임마다 독립적으로 심을 추출한다면, 주요 콘텐츠가 흔들리는 현상인 화면 떨림 현상(jitter)이 발생하는데, 이는 콘텐츠를 중심으로 주변에 결정되는 심의 개수가 프레임별로 다르기 때문이다. If the seams are extracted independently every frame without this process, jitter, which is a phenomenon in which the main content is shaken, occurs because the number of seams determined around the content varies from frame to frame.
예를 들어, 이전 프레임에서 콘텐츠 왼쪽에 3개, 오른쪽에 5개의 심이 추출되었고, 현재 프레임에서 콘텐츠 왼쪽에 5개, 오른쪽에 3개의 심이 추출되었다고 가정하면, 영상의 크기는 동일하나, 콘텐츠의 상대적 위치는 1프레임 사이에 2 픽셀을 움직이게 된다.For example, suppose that three shims were extracted to the left of the content and five shims to the right from the previous frame, and five shims were extracted to the left of the content and three shims to the right from the current frame. The position moves two pixels between frames.
비디오 영상에서는 최적의 심을 찾는 것과 함께 떨림 현상이 없도록 하는 것이 중요하며, 본 발명의 실시 예에 따른 심 추출 단계를 이용하면 떨림 현상을 방지하면서도 영상의 크기 조절에 용이한 심을 찾을 수 있다.In a video image, it is important to find an optimal shim and to avoid shaking, and by using a seam extraction step according to an exemplary embodiment of the present invention, a shim can be found to easily adjust the size of an image while preventing a shake.
상기 심 추출 단계는 상기 심 관련 정보를 저장하는 단계에서 저장된 이전 프레임에서 심들의 순서를 이용하여(S131), 이전 프레임에서 추출한 심의 순서대로 이에 대응하는 심을 기 추출한 심을 제외한 상태로 추출하는 것을 상기 심의 순서의 개수만큼 반복한다(S131~S138).In the shim extraction step, the seam-related information is extracted using a sequence of shims in a previous frame stored in the step of storing the shim-related information (S131), except for seams that have been previously extracted in the order of shims extracted from the previous frame. The number of steps is repeated (S131 to S138).
이처럼, 심의 순서를 이용하여 순서대로 진행하는 이유는 좌표의 중복성을 없애기 위해 먼저 추출한 심을 제거한 후 다음 심을 추출하기 때문이다. 따라서, 현재 프레임에서의 심의 순서도 이전 프레임에서 연산한 심의 순서를 참조하여 갱신함으로 이전 프레임의 심의 순서와 동일하다.As described above, the reason for proceeding in order using the order of shims is to remove the first shim and then extract the next shim in order to eliminate the redundancy of coordinates. Therefore, the order of the shims in the current frame is also the same as the order of the shims in the previous frame by updating with reference to the order of the shims calculated in the previous frame.
만일, 이러한 좌표의 중복성을 무시하고 심을 추출할 경우, 실제 해당 프레임의 크기를 조절할 때에 좌표의 중복 부위에서 1 픽셀이 부족한 경우가 생겨 영상 전체가 찌그러지는 현상이 발생한다.If the seam is extracted while ignoring the redundancy of the coordinates, when the size of the corresponding frame is actually adjusted, one pixel may be insufficient at the overlapping portion of the coordinates, resulting in the entire image being distorted.
이처럼, 본 발명의 실시 예에 따른 내용 기반의 동영상 크기 조절 방법은 이전 프레임에서 추출한 심의 순서를 참고하여 기 추출한 심을 제외한 상태로 현재 프레임의 심을 추출하여 심의 좌표 중복을 방지하므로 크기 조절한 동영상의 정상적인 재생을 가능하게 한다.As described above, the content-based video resizing method according to an embodiment of the present invention extracts the shim of the current frame with the exception of the pre-extracted shim with reference to the order of shims extracted from the previous frame, thereby preventing overlapping coordinates of the seam. Enable playback.
또한, 상기 현재 프레임에서는 상기 현재 프레임의 심의 순서와 대응되는 이전 프레임에서 추출한 심의 시작 픽셀의 좌표를 기준(S132)으로 동일 라인의 소정 범위 내 좌표를 시작 픽셀의 좌표로 하는 심을 추출하는데, 이때, 상기 현재 프레임의 심을 추출하기 위해 상기 소정 범위 내 좌표 중 하나를 시작 픽셀의 좌표로 하는 심 후보를 하나 이상 선별하여 소정의 조건을 만족하는 심 후보를 심으로 추출하게 된다(S132~S137).In addition, the current frame extracts a shim having coordinates within a predetermined range of the same line as starting pixel coordinates based on the coordinates of the starting pixel of the shim extracted from the previous frame corresponding to the order of the shims of the current frame. In order to extract the seam of the current frame, one or more seam candidates having one of the coordinates within the predetermined range as the start pixel coordinates are selected to extract seam candidates that satisfy a predetermined condition as seams (S132 to S137).
이때, 상기 심 후보를 구성하는 픽셀은 인접 라인의 픽셀과 인접하며, 상기 대응되는 이전 프레임의 심의 동일 라인에서 대응되는 픽셀의 좌표와 그 좌표가 인접하거나 동일한 것을 픽셀 조건으로 갖는다(S133).In this case, the pixels constituting the shim candidate are adjacent to the pixels of the adjacent line, and have pixel conditions that the coordinates of the corresponding pixel and the coordinates of the corresponding line in the same line of the shim of the corresponding previous frame are adjacent or the same (S133).
또는, 상기 심 후보를 선별하는 단계에서 상기 심 후보를 구성하는 픽셀은 인접 라인의 픽셀과 소정 범위 이내이며, 상기 대응되는 이전 프레임의 심의 동일 라인에서 대응되는 픽셀의 좌표와 그 좌표가 소정 범위 이내인 것을 픽셀 조건으로 가질 수도 있다(S133).Alternatively, in the selecting of the shim candidate, the pixels constituting the shim candidate are within a predetermined range with the pixels of the adjacent line, and the coordinates of the corresponding pixels and the coordinates of the corresponding lines in the same line of the shim of the corresponding previous frame are within the predetermined range. It may have to be a pixel condition (S133).
이와 같은 픽셀 조건으로 인하여, 장면 내 현재 프레임의 심의 추출시 각 픽셀의 공간적 연결성 및 이전 프레임의 심과의 시간적 연결성을 고려하여 추출할 수 있으므로 동영상에서의 심간 연결성을 만족할 수 있어 목적 동영상의 화면 떨림 현상 등을 방지할 수 있다.Due to such pixel condition, when extracting the seam of the current frame in the scene, it can be extracted in consideration of the spatial connectivity of each pixel and the temporal connectivity with the seam of the previous frame, thereby satisfying the inter-connectivity in the video. The phenomenon can be prevented.
상기 심 후보의 픽셀 조건은 도 5 내지 도 6에서 상세히 설명하기로 한다.The pixel condition of the shim candidate will be described in detail with reference to FIGS. 5 to 6.
또한, 상기 심 후보를 선별하는 단계는 상기 픽셀 조건을 만족하는 픽셀들의 에너지값을 계산하여, 이와 상기 대응되는 이전 프레임의 심의 동일 라인에서 상기 픽셀과 대응되는 픽셀의 에너지값과 최소 차이를 갖는 픽셀들을 상기 심 후보를 구성하는 픽셀로 하여 상기 심 후보로 선별한다(S134,S135).The selecting of the shim candidate may include calculating an energy value of pixels satisfying the pixel condition, and selecting a shim candidate to have a minimum difference from an energy value of a pixel corresponding to the pixel in the same line of the shim of the previous frame. Are selected as the pixels forming the shim candidate (S134, S135).
이후, 상기 하나 이상의 시작 좌표에 대해 각각의 심 후보를 선별하는 과정을 반복하여(S136), 선별된 하나 이상의 심 후보 중 픽셀의 에너지값의 누적값이 상기 대응되는 이전 프레임의 심의 픽셀의 에너지값의 누적값과 최소 차이를 갖는 심 후보를 상기 이전 프레임의 심에 대응되는 현재 프레임의 심으로 추출한다(S137).Subsequently, the process of selecting each shim candidate with respect to the one or more starting coordinates is repeated (S136), and an energy value of the pixel of the shim of the previous frame corresponding to the cumulative value of energy values of pixels among the selected one or more shim candidates is repeated. A shim candidate having a minimum difference with a cumulative value of is extracted as a shim of the current frame corresponding to the shim of the previous frame (S137).
이와 같은 에너지값 및 누적 에너지값의 비교 방식과 심 추출 방식의 자세한 설명은 도 7 내지 도 8에서 상세히 설명하기로 한다.A detailed description of the comparison method and the shim extraction method of the energy value and the cumulative energy value will be described in detail with reference to FIGS. 7 to 8.
이처럼, 본 발명의 실시 예에 따른 내용 기반의 동영상 크기 조절 방법은 장면 내 현재 프레임의 심의 추출시에, 각 픽셀의 에너지값 및 누적 에너지값을 이전 프레임의 심의 에너지값 및 누적 에너지값과 비교하여 추출하여 심의 단순성을 만족하므로 목적 동영상의 부드러운 재생을 가능하게 한다.
As described above, the content-based video resizing method according to an embodiment of the present invention compares the energy value and the cumulative energy value of each pixel with the energy value and the cumulative energy value of the previous frame at the time of extracting the seam of the current frame in the scene. Extraction satisfies the simplicity of the seam, thus enabling smooth playback of the target video.
도 5는 본 발명의 실시 예에 따른 심 후보의 예시도로서, 심 후보의 시작 좌표(1,2,3)에 따라 달라지는 심 후보 경로(Path)의 예를 도시한 것이다. 상기 심 후보의 시작 좌표(1,2,3)는 단순히 이전 프레임의 심(50)의 시작 좌표(2)와 동일한 좌표를 사용하는 것이 아니라 좌우로 연결된 N개의 좌표를 모두 고려한다.FIG. 5 is an exemplary diagram of a shim candidate according to an exemplary embodiment of the present invention, and illustrates an example of a shim candidate path depending on the start coordinates (1, 2, 3) of the shim candidate. The starting coordinates (1, 2, 3) of the shim candidates do not simply use the same coordinates as the starting coordinate (2) of the
상기 연결된 좌표를 모두 고려하는 이유는 도 5와 같이 심의 시작 좌표에 따라 픽셀 조건을 만족하는 다음 좌표들의 경우가 달라지기 때문이다(51, 52, 53). 도 5는 3개의 좌표를 고려한 경우를 예시한 것이다.
The reason for considering all of the connected coordinates is that the following coordinates satisfying the pixel condition vary according to the starting coordinates of the seam as shown in FIG. 5 (51, 52, 53). 5 illustrates a case in which three coordinates are considered.
도 6은 본 발명의 실시 예에 따른 심 후보의 픽셀 선별의 예시도로서, 현재 선택한 픽셀의 좌표와 이전 프레임에서 연산한 심의 픽셀의 좌표를 이용한 소정의 픽셀 조건에 따라 이를 만족하는 좌표를 갖는 픽셀을 심의 다음 픽셀로 구하는 것을 도시한 것이다.6 is an exemplary diagram of pixel selection of a shim candidate according to an exemplary embodiment of the present invention, wherein a pixel having a coordinate satisfying the predetermined condition is determined using a coordinate of a currently selected pixel and a coordinate of a pixel of a shim calculated in a previous frame. To obtain the next pixel of the seam.
상기 픽셀 조건으로는 공간적 연결과 시간적 연결이 있으며, 상기 공간적 연결은 현재 선택할 픽셀의 좌표(62)는 이전 라인에서 선택한 픽셀의 좌표(61)와 연결되어 있어야 함이며, 상기 시간적 연결이란 이전 프레임에서 연산한 심의 픽셀의 대응 좌표(63)와 시간 축으로 연결(64)되어 있어야 함이다.The pixel condition includes a spatial connection and a temporal connection. The spatial connection requires that the coordinate 62 of the pixel to be selected currently is connected to the coordinate 61 of the pixel selected in the previous line. The corresponding coordinates 63 of the pixel of the seam of the seam to be calculated are connected to the
즉, 상기 공간적 연결은 도 6a와 같이 현재 프레임에서 인접한 픽셀(61,62)은 연결되어 있어야 하는 것을 말하며, 상기 시간적 연결은 도6b와 같이 현재 프레임에서 선택할 픽셀(64)은 이전 프레임에서 결정한 심의 픽셀 좌표(63)와 연결되어야 한다는 것이다. 이러한 시간적 연결은 떨림 현상을 방지할 수 있다. 도6c는 상기 공간적 연결과 시간적 연결을 모두 만족하는 픽셀(65)을 도시한 것이다.
That is, the spatial connection means that
도 7은 본 발명의 실시 예에 따른 심 후보 선별의 예시도로서, 상기 픽셀 조건을 만족하는 픽셀들의 에너지값을 계산하고, 이를 이전 프레임의 대응되는 심의 픽셀의 에너지값과 비교하여 조건에 맞는 심 후보를 선별하는 것을 도시한 것이다.FIG. 7 illustrates an example of shim candidate selection according to an exemplary embodiment of the present disclosure, and calculates an energy value of pixels satisfying the pixel condition, compares the energy value of a corresponding shim pixel of a previous frame, and matches a shim that meets the condition; FIG. Selecting candidates is shown.
먼저, 도 6에서 설명한 픽셀 조건을 만족하는 픽셀들의 좌표(71)에 대해 에너지값을 구한다(72,73). 본 발명의 실시 예에서 이용하는 에너지 계산 방식은 다양한 방법으로 실시할 수 있으나, 포워드 에너지(Forward Energy) 방식을 이용하여 에너지값을 구하는 것이 바람직하다.First, an energy value is obtained for the
상기 픽셀의 에너지값을 구하는 단계에서 현재 선택한 좌표에 대해 픽셀 조건을 만족하는 다음 픽셀은 하나 이상이 존재(72,73)할 수 있으므로, 이러한 복수의 픽셀에 대해 각 픽셀의 에너지값(72,73)과 이전 프레임에서 구한 심의 에너지값(78)을 비교하여 가장 유사한 값을 구한다.In the step of obtaining the energy value of the pixel, at least one next pixel that satisfies the pixel condition with respect to the currently selected coordinate may exist (72,73), and thus, the energy value (72,73) of each pixel for the plurality of pixels. ) Is compared with the
즉, 심 후보를 구성하는 픽셀의 조건을 만족하는 상기 복수의 픽셀 중 이전 프레임에서 대응되는 픽셀의 에너지값과 최소 차이를 갖는 픽셀(73,74,75,76)이 해당 케이스(즉, 심의 시작 좌표에 따라 구분할 수 있는 경우의 수 중 하나)에서의 심 후보의 좌표로 확정되어 버퍼에 저장된다. 동일 라인에서 픽셀이 하나씩 선택되므로 이러한 과정을 통해, 하나의 시작 좌표에 대해 단일의 심 후보(77)를 추출할 수 있다. That is, among the plurality of pixels that satisfy the condition of the pixels constituting the shim candidate, the
물론, 픽셀 에너지값의 최소 차이가 동일한 경우 다른 조건을 부가하여 하나의 픽셀을 선택함으로써 단일의 심 후보를 추출할 수 있는 것은 당연하다. 상기 이전 프레임에서 대응되는 픽셀의 에너지값은 오른쪽에 도시하였다.Of course, when the minimum difference of pixel energy values is the same, it is natural that a single shim candidate can be extracted by selecting one pixel by adding different conditions. The energy value of the corresponding pixel in the previous frame is shown on the right.
이와 같은 과정을 기 설정된 소정 개수(심 후보를 선정하기 위한 시작 좌표의 개수)만큼 반복 수행하여 하나 이상의 심 후보를 추출한다.
This process is repeated as many as a predetermined number (number of start coordinates for selecting the seam candidate) to extract one or more seam candidates.
도 8은 본 발명의 실시 예에 따른 심 추출의 예시도로서, 상기 현재 프레임에서 각각의 시작 좌표에 따라 구분되는 하나 이상의 심 후보에서 최종적으로 이전프레임의 심과 대응되는 현재 프레임의 심을 구하는 단계를 도시한 것이다.8 is an exemplary diagram of seam extraction according to an exemplary embodiment of the present invention, wherein a step of obtaining a seam of a current frame corresponding to a seam of a previous frame is finally obtained from one or more seam candidates classified according to respective start coordinates in the current frame. It is shown.
도 7에서 설명한 단계를 통해 심의 시작 좌표에 따라 구분되는 하나 이상의 심 후보를 추출하였다. 이후, 상기 추출한 심 후보들 중 이전 프레임의 대응되는 심의 픽셀 에너지값의 누적값(84)과 상기 추출한 심 후보의 픽셀 에너지값의 누적값(81,82,83)을 비교하여 최소 차이의 누적값을 갖는 심 후보(83)를 상기 이전 프레임의 심에 대응되는 현재 프레임의 심으로 선별한다.At least one shim candidate classified according to the start coordinates of the shim was extracted through the steps described with reference to FIG. 7. Then, the
본 예에서는 복수의 경우 중 3가지 경우의 예를 들어 심을 선택하는 과정을 예시하였다. 각 시작 좌표의 위치에 따라 선택된 심 후보에 대해, 해당 심 후보 픽셀의 에너지값을 누적하여 이를 이전 프레임의 대응되는 심의 픽셀 에너지값의 누적값과 비교하여 차이가 가장 작은 경우를 현재 프레임에서의 심으로 결정한다. 결정된 심은 다음 프레임에서의 연산을 위해 해당 심의 순서에 맞추어 버퍼에 저장한다(85). 또한, 이러한 과정을 이전 프레임에서 저장된 심의 개수만큼 반복적으로 수행하여 현재 프레임에서 영상의 크기 조절에 필요한 복수의 심을 획득한다.
In this example, a process of selecting a shim, for example, of three cases among a plurality of cases is illustrated. For the seam candidate selected according to the position of each start coordinate, the energy value of the corresponding seam candidate pixel is accumulated and compared with the cumulative value of the pixel energy values of the corresponding seam of the previous frame to find the case where the difference is the smallest. Decide on The determined shims are stored in the buffer in the order of the corresponding shims for operation in the next frame (85). In addition, this process is repeated as many times as the number of shims stored in the previous frame to obtain a plurality of shims necessary to adjust the size of the image in the current frame.
도 9는 본 발명의 실시 예에 따른 프레임 크기 조절의 예시도로서, 도 5 내지 도 8의 과정에서 현재 프레임의 심을 추출하는 과정을 전체 심의 개수만큼 반복하여 현재 프레임에서 크기 조절에 필요한 복수의 심을 추출한 후, 이를 이용하여 현재 프레임의 크기를 조절하는 것을 도시한 것이다.FIG. 9 is an exemplary view of adjusting a frame size according to an embodiment of the present invention. In the process of FIGS. 5 to 8, the process of extracting a seam of a current frame is repeated as many as the number of seams to adjust a plurality of seams required for size adjustment in the current frame. After extraction, it shows how to adjust the size of the current frame using this.
심을 추출하는 과정에서 심의 순서를 저장하므로, 영상의 크기를 줄일 때는 심을 추출한 순서별로 해당 좌표를 삭제한다. 반면, 영상을 크기를 늘릴 경우에는 심을 추출한 순서별로 해당 좌표에 값을 넣어준다. 이때, 넣어주는 값은 해당 좌표 인근에 해당하는 픽셀 에너지값의 평균값을 이용하는 것이 바람직하다.Since the order of shims is stored in the process of extracting seams, the corresponding coordinates are deleted for each order of seam extraction when the image size is reduced. On the other hand, when increasing the size of the image, values are put in the corresponding coordinates in the order of extracting the seams. In this case, it is preferable to use an average value of pixel energy values corresponding to the coordinates.
본 실시 예에서는 저장한 심의 관련 정보를 이용하여 심 맵(Seam Map)을 생성하고 이를 이용하여 영상의 크기를 조절한다. 심 맵은 원본 영상크기와 동일하고, 해당 심의 좌표에 심의 번호(또는 순서)가 저장된 데이터이다. In this embodiment, a seam map is generated using the stored seam related information, and the size of the image is adjusted using the seam map. The seam map is the same as the original image size and is data in which the seam number (or order) is stored in the coordinates of the seam.
먼저 도 9b와 같이 영상의 크기를 축소하는 경우, 심 맵을 탐색하여 심의 순서대로 영상의 픽셀을 제거하고, 이웃 픽셀을 연결한다. 영상을 하나의 심만큼을 축소한 뒤에는 좌표의 동기화를 맞추기 위하여 심 맵도 하나의 심 만큼 축소한다. First, as shown in FIG. 9B, when the size of an image is reduced, the seam map is searched to remove pixels of the image in order of seams, and neighboring pixels are connected. After the image is reduced by one seam, the seam map is also reduced by one seam to keep the coordinates synchronized.
반면 도 9c와 같이 영상의 크기를 확대하는 경우, 심의 순서대로 영상의 픽셀을 오른쪽으로 한 칸씩 이동시키고, 공간에는 이웃한 픽셀 에너지값의 평균을 채워넣는다. 또한, 하나의 심 만큼을 확대한 뒤에는 좌표의 동기화를 맞추기 위하여 심 맵도 확대한다. 이러한 과정을 반복함으로써 최종 영상을 구하게 된다.
On the other hand, when the size of the image is enlarged as shown in FIG. 9C, pixels of the image are moved one space to the right in the order of shims, and the average of the neighboring pixel energy values is filled in the space. In addition, after one seam is enlarged, the seam map is also enlarged to synchronize the coordinates. By repeating this process, the final image is obtained.
도 10은 본 발명의 실시 예에 따른 프레임 크기 조절의 순서도로서, 상기 도 9에서 설명한 영상 크기 조절 단계에서 심 맵을 이용하여 영상의 크기를 조절하는 순서를 도시한 것이다.FIG. 10 is a flowchart illustrating frame size adjustment according to an embodiment of the present invention, and illustrates a procedure of adjusting an image size using a shim map in the image size adjusting step described with reference to FIG. 9.
심 맵이 생성되지 않은 경우(S161), 상기 영상에 대응되는 심 맵을 생성(S162)하고 영상의 좌표와의 동기화를 위해, 상기 영상의 크기 조절(S163)시 복제되거나 또는 제거되는 픽셀에 대응하여 상기 심 맵의 픽셀을 삽입하거나 또는 삭제한다(S164).If a seam map is not generated (S161), a seam map corresponding to the image is generated (S162) and corresponds to a pixel that is duplicated or removed during the size adjustment (S163) of the image for synchronization with the coordinates of the image. By inserting or deleting the pixel of the seam map (S164).
이와 같은 방식을 이용하면, 동영상의 크기 조절시 복제되거나 제거되는 영상의 픽셀에 따라 이에 대응하는 심 맵의 좌표를 삽입하거나 삭제하는 것으로 동영상과 심 맵의 좌표를 동기화할 수 있어, 동영상의 크기 조절 연산을 용이하게 수행할 수 있다.
Using this method, the coordinates of the video and the seam map can be synchronized by inserting or deleting the coordinates of the seam map corresponding to the pixels of the image to be copied or removed when the video is resized. The operation can be performed easily.
도 11은 본 발명의 실시 예에 따른 동영상 크기 조절 장치의 구성도로서, 상기 동영상 크기 조절 장치는 동영상의 입출력을 담당하는 영상 입출력부(110), 현재 프레임의 장면 전환 여부를 검출하는 장면 전환 검출부(120), 현재 프레임이 장면 전환 프레임이 아니면 이전 프레임에서 추출한 심의 관련 정보를 이용하여 이에 대응하는 현재 프레임의 심을 추출하고, 현재 프레임이 장면 전환 프레임이면 이전 프레임에서 추출한 심의 관련 정보를 이용하지 않고 현재 프레임의 심을 추출하는 심 추출부(140), 상기 추출한 현재 프레임의 심의 관련 정보를 저장하는 심 정보 저장부(130), 상기 추출한 심을 이용하여 현재 프레임의 크기를 조절하는 리사이징부(150) 및 상기 각 부를 제어하는 제어부(160)를 포함한다.11 is a configuration diagram of a video size adjusting apparatus according to an embodiment of the present invention, wherein the video size adjusting apparatus includes an image input /
상기 심 추출부(140)는 이전 프레임에서 추출한 심의 순서대로 이에 대응하는 심을 기 추출한 심을 제외한 상태로 추출하는 것을 상기 심의 순서의 개수만큼 반복한다.The
이처럼, 장면 전환이 일어나지 않은 경우 이전 프레임에서 추출한 심의 관련 정보를 이용하여 현재 프레임의 심을 추출하여, 에너지 분포가 유사한 동일 장면에서의 연속 프레임에 대해 해당 장면의 전체 프레임의 정보 없이 현재 프레임의 심을 추출할 수 있으므로, 실시간 스트리밍 형태로 제공되는 동영상에도 적용할 수 있다.
As such, when no scene transition occurs, the seam of the current frame is extracted by using the seam-related information extracted from the previous frame, and the seam of the current frame is extracted without information of the entire frame of the scene for successive frames in the same scene having similar energy distributions. It can also be applied to videos provided in the form of real-time streaming.
도 12는 본 발명의 실시 예에 따른 심 추출부의 구성도로서, 상기 심 추출부(140)는 이전 프레임의 심의 관련 정보를 이용하는 심 정보 이용부(141), 상기 관련 정보를 이용하여 시작 좌표에 따라 구분되는 하나 이상의 심 후보를 선정하는 심 후보 선정부(142), 상기 하나 이상의 심 후보에서 현재 프레임의 심을 선별하는 심 선별부(143)를 포함한다.12 is a block diagram of a seam extractor according to an exemplary embodiment of the present invention, wherein the
상기 심 후보 선정부(142)는 심 후보의 추출시 각 픽셀의 공간적 연결성 및 이전 프레임의 심과의 시간적 연결성을 고려하여 추출하며, 상기 심 선별부(143)는 이러한 심 후보들 중 이전 프레임의 심과 에너지값 차이가 가장 작은 심을 현재 프레임의 심으로 선별한다.
The
이상에서는 본 발명에 따른 바람직한 실시 예들에 대하여 도시하고 또한 설명하였다. 그러나 본 발명은 상술한 실시 예에 한정되지 아니하며, 특허 청구의 범위에서 첨부하는 본 발명의 요지를 벗어남이 없이 당해 발명이 속하는 기술 분야에서 통상의 지식을 가진 자라면 누구든지 다양한 변형 실시가 가능할 것이다.
The foregoing embodiments and advantages are merely exemplary and are not to be construed as limiting the present invention. However, the present invention is not limited to the above-described embodiments, and various changes and modifications may be made by those skilled in the art without departing from the scope of the present invention. .
100: 동영상 크기 조절 장치 110: 영상 입출력부
120: 장면 전환 검출부 130: 심 정보 저장부
140: 심 추출부 141: 심 정보 이용부
142: 심 후보 선정부 143: 심 선별부
150: 리사이징부 160: 제어부100: video resize device 110: video input and output unit
120: scene change detection unit 130: shim information storage unit
140: shim extracting unit 141: shim information using unit
142: Sim candidate selection unit 143: Sim selection unit
150: resizing unit 160: control unit
Claims (12)
a) 현재 프레임의 장면 전환 여부를 검출하는 단계;
b) 상기 a) 단계에서 현재 프레임이 장면 전환 프레임이 아니면 이전 프레임에서 추출한 심(Seam)의 관련 정보를 이용하여 이에 대응하는 현재 프레임의 심을 추출하는 단계;
c) 상기 b) 단계에서 추출한 현재 프레임의 심의 관련 정보를 저장하는 단계; 및
d) 상기 b) 단계에서 추출한 심을 이용하여 현재 프레임의 크기를 조절하는 단계를 포함하는 내용 기반의 동영상 크기 조절 방법.
In the content-based video resizing method carried out in the device that receives the video and adjusts the size of the video,
a) detecting whether a scene of the current frame is changed;
b) extracting a seam of a current frame corresponding to the seam using information related to a seam extracted from a previous frame if the current frame is not a scene change frame in step a);
c) storing the shim related information of the current frame extracted in step b); And
and d) adjusting the size of the current frame using the seams extracted in step b).
상기 b) 단계는 상기 a) 단계에서 현재 프레임이 장면 전환 프레임이면 이전 프레임에서 추출한 심의 관련 정보를 이용하지 않고 현재 프레임의 심을 추출하는 단계를 더 포함하는 내용 기반의 동영상 크기 조절 방법.
The method of claim 1,
And b) extracting a seam of the current frame without using seam-related information extracted from the previous frame if the current frame is a scene change frame in step a).
상기 c) 단계는 현재 프레임에서 추출한 심의 순서를 저장하며,
상기 b) 단계는 이전 프레임에서 추출한 심의 순서대로 이에 대응하는 심을 기 추출한 심을 제외한 상태로 추출하는 것을 상기 이전 프레임에서 추출한 심의 순서의 개수만큼 반복하는 것을 특징으로 하는 내용 기반의 동영상 크기 조절 방법.
The method of claim 1,
Step c) stores the order of seams extracted from the current frame,
The step b) is the content-based video resizing method characterized in that it is repeated in the order of the seams extracted from the previous frame to extract the number of seams extracted from the previous frame as the number of the order of seams extracted from the previous frame.
상기 c) 단계는 현재 프레임에서 추출한 심에 포함되는 픽셀의 좌표를 저장하며,
상기 b) 단계는 상기 대응되는 이전 프레임에서 추출한 심의 시작 픽셀의 좌표를 기준으로 동일 라인의 소정 범위 내 좌표를 시작 픽셀의 좌표로 하는 심을 추출하는 것을 특징으로 하는 내용 기반의 동영상 크기 조절 방법.
The method of claim 3, wherein
Step c) stores the coordinates of the pixels included in the seam extracted from the current frame,
And b) extracting a seam having a coordinate within a predetermined range of the same line as the start pixel coordinates based on the coordinates of the start pixel of the seam extracted from the corresponding previous frame.
e) 상기 현재 프레임의 심을 추출하기 위해 상기 소정 범위 내 좌표 중 하나를 시작 픽셀의 좌표로 하는 심 후보를 하나 이상 선별하는 단계를 더 포함하는 내용 기반의 동영상 크기 조절 방법.
The method of claim 4, wherein b)
and e) selecting at least one shim candidate having one of the coordinates within the predetermined range as a start pixel coordinate to extract the shim of the current frame.
상기 심 후보를 구성하는 픽셀은 인접 라인의 픽셀과 인접하며, 상기 대응되는 이전 프레임의 심의 동일 라인에서 대응되는 픽셀의 좌표와 그 좌표가 인접하거나 동일한 것을 픽셀 조건으로 갖는 것을 특징으로 하는 내용 기반의 동영상 크기 조절 방법.
The method of claim 5, wherein in step e)
Pixels constituting the shim candidate are adjacent to pixels of an adjacent line, and have a pixel condition that the coordinates of the corresponding pixel in the same line of the shim of the corresponding previous frame and the coordinates are adjacent or identical to each other. How to resize your video.
상기 c) 단계는 현재 프레임에서 추출한 심에 포함되는 픽셀의 에너지값을 저장하며,
상기 e) 단계는 상기 픽셀 조건을 만족하는 픽셀들의 에너지값을 계산하여, 이와 상기 대응되는 이전 프레임의 심의 동일 라인에서 상기 픽셀과 대응되는 픽셀의 에너지값과 최소 차이를 갖는 픽셀들을 상기 심 후보를 구성하는 픽셀로 하여 상기 심 후보로 선별하는 것을 특징으로 하는 내용 기반의 동영상 크기 조절 방법.
The method according to claim 6,
Step c) stores the energy value of the pixel included in the seam extracted from the current frame,
In step e), the energy values of the pixels satisfying the pixel condition are calculated, and the seam candidates having the minimum difference with the energy value of the pixel corresponding to the pixel in the same line of the seam of the previous frame corresponding thereto are determined. Content-based video resizing method characterized in that it is selected as the candidate for the seam as a pixel constituting.
상기 c) 단계는 현재 프레임에서 추출한 심에 포함되는 픽셀의 에너지값의 누적값을 저장하며,
상기 b) 단계는 상기 하나 이상의 심 후보 중 픽셀의 에너지값의 누적값이 상기 대응되는 이전 프레임의 심의 픽셀의 에너지값의 누적값과 최소 차이를 갖는 심 후보를 상기 이전 프레임의 심에 대응되는 현재 프레임의 심으로 추출하는 것을 특징으로 하는 내용 기반의 동영상 크기 조절 방법.
8. The method of claim 7,
Step c) stores the cumulative value of the energy values of the pixels included in the seam extracted from the current frame,
In step b), a seam candidate having a minimum difference between an energy value of a pixel of the corresponding previous frame and an energy value of the pixel of the corresponding previous frame is presently corresponding to the seam of the previous frame. Content-based video resizing method characterized in that the extraction to the seam of the frame.
상기 심 후보를 구성하는 픽셀은 인접 라인의 픽셀과 소정 범위 이내이며, 상기 대응되는 이전 프레임의 심의 동일 라인에서 대응되는 픽셀의 좌표와 그 좌표가 소정 범위 이내인 것을 픽셀 조건으로 갖는 것을 특징으로 하는 내용 기반의 동영상 크기 조절 방법.
The method of claim 5, wherein in step e)
The pixel constituting the shim candidate is within a predetermined range with the pixels of the adjacent line, and the pixel condition is that the coordinates of the corresponding pixel in the same line of the shim of the corresponding previous frame and the coordinates are within the predetermined range. How to resize content based videos.
상기 동영상에 대응되는 심 맵을 생성하는 단계; 및
좌표와의 동기화를 위해, 상기 동영상의 크기 조절시 복제되거나 또는 제거되는 픽셀에 대응하는 상기 심 맵의 픽셀을 삽입하거나 또는 삭제하는 단계를 더 포함하는 내용 기반의 동영상 크기 조절 방법.
The method of claim 1, wherein step d)
Generating a shim map corresponding to the video; And
And inserting or deleting a pixel of the seam map corresponding to a pixel that is duplicated or removed when resizing the video for synchronization with coordinates.
현재 프레임의 장면 전환 여부를 검출하는 장면 전환 검출부;
현재 프레임이 장면 전환 프레임이 아니면 이전 프레임에서 추출한 심의 관련 정보를 이용하여 이에 대응하는 현재 프레임의 심을 추출하고, 현재 프레임이 장면 전환 프레임이면 이전 프레임에서 추출한 심의 관련 정보를 이용하지 않고 현재 프레임의 심을 추출하는 심 추출부;
상기 추출한 현재 프레임의 심의 관련 정보를 저장하는 심 정보 저장부; 및 상기 추출한 심을 이용하여 현재 프레임의 크기를 조절하는 리사이징부를 포함하는 내용 기반의 동영상 크기 조절 장치.
In the device that receives a video and adjusts the size of the video based on the content,
A scene change detector detecting whether a scene of the current frame is changed;
If the current frame is not a transition frame, the seam of the current frame corresponding to the seam extracted from the previous frame is extracted. If the current frame is a transition frame, the seam of the current frame is extracted without using the seam information of the previous frame. Extracting seam extracting unit;
A shim information storage unit for storing shim related information of the extracted current frame; And a resizing unit configured to adjust a size of a current frame by using the extracted shim.
상기 심 정보 저장부는 상기 현재 프레임에서 추출한 심의 순서를 저장하며,
상기 심 추출부는 이전 프레임에서 추출한 심의 순서대로 이에 대응하는 심을 기 추출한 심을 제외한 상태로 추출하는 것을 상기 이전 프레임에서 추출한 심의 순서의 개수만큼 반복하는 것을 특징으로 하는 내용 기반의 동영상 크기 조절 장치.
12. The method of claim 11,
The shim information storage unit stores an order of shims extracted from the current frame,
And the seam extractor repeats extracting seams corresponding to seams extracted from a previous frame in a state other than seams extracted from the previous frame as many as the number of seams extracted from the previous frame.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020100072363A KR101169786B1 (en) | 2010-07-27 | 2010-07-27 | Video carving method and apparatus thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020100072363A KR101169786B1 (en) | 2010-07-27 | 2010-07-27 | Video carving method and apparatus thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
KR20120010792A KR20120010792A (en) | 2012-02-06 |
KR101169786B1 true KR101169786B1 (en) | 2012-07-30 |
Family
ID=45835221
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1020100072363A KR101169786B1 (en) | 2010-07-27 | 2010-07-27 | Video carving method and apparatus thereof |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR101169786B1 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101603596B1 (en) * | 2015-01-27 | 2016-03-15 | 주식회사 리드텍 | Image processing system for multi vision |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008217765A (en) | 2007-03-06 | 2008-09-18 | Mitsubishi Electric Research Laboratories Inc | Method for retargeting content-aware image |
-
2010
- 2010-07-27 KR KR1020100072363A patent/KR101169786B1/en active IP Right Grant
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008217765A (en) | 2007-03-06 | 2008-09-18 | Mitsubishi Electric Research Laboratories Inc | Method for retargeting content-aware image |
Also Published As
Publication number | Publication date |
---|---|
KR20120010792A (en) | 2012-02-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP7163345B2 (en) | Image correction method and apparatus | |
US11538232B2 (en) | Tracker assisted image capture | |
US9380213B2 (en) | Image composition apparatus and method | |
EP4203476A1 (en) | Video motion estimation method and apparatus, device, computer-readable storage medium and computer program product | |
WO2018119808A1 (en) | Stereo video generation method based on 3d convolutional neural network | |
CN107624243B (en) | Real-time hyper-lapse video creation through frame selection | |
JP4453768B2 (en) | Information processing apparatus and method, and program | |
US9525821B2 (en) | Video stabilization | |
JP2008021225A (en) | Image processing device, method and program | |
CN107636728B (en) | Method and apparatus for determining a depth map for an image | |
CN102918861A (en) | Stereoscopic intensity adjustment device, stereoscopic intensity adjustment method, program, integrated circuit, and recording medium | |
US7024040B1 (en) | Image processing apparatus and method, and storage medium | |
CN110996183B (en) | Video abstract generation method, device, terminal and storage medium | |
KR101169786B1 (en) | Video carving method and apparatus thereof | |
EP3043315B1 (en) | Method and apparatus for generating superpixels for multi-view images | |
KR102443630B1 (en) | Method And Apparatus for Retargeting Video | |
KR20110047814A (en) | Apparatus and method for dividing moving picture data in moving picture system | |
KR102245349B1 (en) | Method and apparatus for extracting color scheme from video | |
US9135711B2 (en) | Video segmentation apparatus and method for controlling the same | |
JP5421939B2 (en) | Color correction apparatus, color correction method, and color correction program | |
KR101167644B1 (en) | Seam carving method having improved response speed and apparatus thereof | |
Shih et al. | Ghost shadow removal in multi-layered video inpaintinga | |
JP2002245051A (en) | Device and method for retrieving moving image, program for making computer execute the method and recording medium having the program recorded thereon | |
JP2008022442A (en) | Image processing apparatus and method, and program | |
JP2825863B2 (en) | Moving object detection device |
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 | ||
GRNT | Written decision to grant | ||
FPAY | Annual fee payment |
Payment date: 20150702 Year of fee payment: 4 |
|
FPAY | Annual fee payment |
Payment date: 20160701 Year of fee payment: 5 |
|
FPAY | Annual fee payment |
Payment date: 20170706 Year of fee payment: 6 |
|
FPAY | Annual fee payment |
Payment date: 20180820 Year of fee payment: 7 |
|
FPAY | Annual fee payment |
Payment date: 20190610 Year of fee payment: 8 |