KR20230043958A - Image grouping method and apparatus during 3D reconstruction, electronic device and computer readable storage medium - Google Patents

Image grouping method and apparatus during 3D reconstruction, electronic device and computer readable storage medium Download PDF

Info

Publication number
KR20230043958A
KR20230043958A KR1020237006660A KR20237006660A KR20230043958A KR 20230043958 A KR20230043958 A KR 20230043958A KR 1020237006660 A KR1020237006660 A KR 1020237006660A KR 20237006660 A KR20237006660 A KR 20237006660A KR 20230043958 A KR20230043958 A KR 20230043958A
Authority
KR
South Korea
Prior art keywords
image
group
modularity
maximum
groups
Prior art date
Application number
KR1020237006660A
Other languages
Korean (ko)
Inventor
리양 저우
한 순
요우지 펭
한칭 지앙
구오펭 장
Original Assignee
저지앙 센스타임 테크놀로지 디벨롭먼트 컴퍼니 리미티드
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 저지앙 센스타임 테크놀로지 디벨롭먼트 컴퍼니 리미티드 filed Critical 저지앙 센스타임 테크놀로지 디벨롭먼트 컴퍼니 리미티드
Publication of KR20230043958A publication Critical patent/KR20230043958A/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • G06T17/005Tree description, e.g. octree, quadtree
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/50Image enhancement or restoration by the use of more than one image, e.g. averaging, subtraction

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Graphics (AREA)
  • Geometry (AREA)
  • Software Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Processing Or Creating Images (AREA)
  • Image Analysis (AREA)

Abstract

본 발명은 3 차원 재구성 중 이미지 그루핑 방법 및 장치, 전자 기기 및 컴퓨터 판독 가능한 저장매체를 제안한다. 상기 방법은 그루핑될 이미지 집합 중 각 이미지를 각각 하나의 이미지 그룹으로 하여, 상기 그루핑될 이미지 집합에 대응하는 모듈성을 계산하는 단계; 상기 그루핑될 이미지 집합에 포함된 복수 개의 이미지 그룹을 둘씩 조합한다고 가정할 때 각 조합에 대응하는 모듈성의 증분을 각각 계산하여 증분 집합을 획득하는 단계; 상기 증분 집합 중 최대 증분을 확정하고 상기 최대 증분에 대응하는 두 개의 이미지 그룹을 합병하여 합병 이미지 그룹을 획득하는 단계를, 상기 그루핑될 이미지 집합에 유일한 이미지 그룹이 포함될 때까지, 반복적으로 수행하는 단계; 및 상기 그루핑될 이미지 집합에 유일한 이미지 그룹이 포함되는 경우, 기록된 매회의 반복에서, 업데이트된 모듈성 중 최대 모듈성을 확정하고, 상기 최대 모듈성에 대응하는 이미지 조합 방식을 상기 그루핑될 이미지 집합에 대한 이미지 그루핑 결과로 확정하는 단계를 포함한다.The present invention proposes an image grouping method and apparatus, an electronic device, and a computer readable storage medium during 3D reconstruction. The method includes the steps of calculating modularity corresponding to the image set to be grouped by setting each image of the image set to be grouped as one image group; obtaining an incremental set by calculating an increment of modularity corresponding to each combination, assuming that a plurality of image groups included in the image set to be grouped are combined by two; Determining the maximum increment of the incremental set and merging two image groups corresponding to the maximum increment to obtain a merged image group, repeatedly performing until the image set to be grouped includes a unique image group. ; and when a unique image group is included in the set of images to be grouped, a maximum modularity among the updated modularities is determined in each recorded iteration, and an image combination method corresponding to the maximum modularity is selected as an image for the set of images to be grouped. It includes the step of confirming as a grouping result.

Description

3 차원 재구성 중 이미지 그루핑 방법 및 장치, 전자 기기 및 컴퓨터 판독 가능한 저장매체Image grouping method and apparatus during 3D reconstruction, electronic device and computer readable storage medium

관련 출원의 상호 참조CROSS REFERENCES OF RELATED APPLICATIONS

본 발명은 출원번호가 202010852560.5이고 출원일자가 2020년 08월 21일인 중국 특허 출원을 기반으로 제출하며, 해당 중국 특허 출원의 우선권을 주장하며, 해당 중국 특허 출원의 전부 내용을 본 발명에 인용하여 참조로 한다.The present invention is submitted based on a Chinese patent application with application number 202010852560.5 and an application date of August 21, 2020, claiming priority to the Chinese patent application, and citing all contents of the Chinese patent application in the present invention by reference. do.

컴퓨터 비전 기술분야에서, 운동 복구 구조(Structure from motion, SfM)는 통상적으로 사용되는 3 차원 재구성 기술이다. 해당 기술은 장면에 대응하는 이미지 시퀀스를 분석하여 각 프레임의 장면 이미지에 대응하는 카메라 포즈를 확정할 수 있다. 상술한 카메라 포즈를 확정한 후, 해당 기술은 연속된 몇몇 프레임의 장면 이미지에 대응하는 카메라 포즈를 기반으로 카메라의 운동 궤적을 확정하고, 상술한 운동 궤적을 기반으로 상술한 장면에 대해 3 차원 재구성을 수행할 수 있다. In the field of computer vision technology, Structure from Motion (SfM) is a commonly used 3D reconstruction technique. The technology may determine a camera pose corresponding to a scene image of each frame by analyzing an image sequence corresponding to a scene. After determining the above-mentioned camera pose, the technology determines the motion trajectory of the camera based on the camera pose corresponding to the scene image of several consecutive frames, and 3D reconstruction of the above-mentioned scene based on the above-described motion trajectory can be performed.

실제 상황에서, 한편으로, 상술한 SfM의 알고리즘은 매우 복잡하므로, 규모가 큰 장면에 대해 3 차원 재구성을 수행할 때, 매우 긴 시간을 소모하게 되며, 3 차원 재구성 효율이 높지 않다. 다른 한편으로, 규모가 큰 장면에 대해 3 차원 재구성을 수행하는데 소모되는 계산 자원이 엄청나므로 극단적인 상황에서 3 차원 재구성을 구현하지 못할 수 있다. In a real situation, on the one hand, the algorithm of the above-described SfM is very complicated, so when performing 3D reconstruction for a large-scale scene, it takes a very long time and the 3D reconstruction efficiency is not high. On the other hand, since computational resources consumed in performing 3D reconstruction on a large-scale scene are enormous, 3D reconstruction may not be implemented in extreme situations.

상술한 문제를 해결하기 위해, 관련 기술에서는 규모가 큰 장면에 대해 3 차원 재구성을 수행하는 경우, 일반적으로 먼저 상술한 규모가 큰 장면에 대응하는 이미지 시퀀스를 몇몇 그룹의 이미지 시퀀스로 분할한 후, SfM 알고리즘을 통해 각 그룹의 이미지 시퀀스에 대해 3 차원 재구성을 수행한다. 각 그룹의 이미지 시퀀스에 대해 3 차원 재구성을 각각 수행하여 각 그룹에 대응하는 재구성 모델을 획득한 후, 각 그룹에 대응하는 재구성 모델을 융합하여 상술한 규모가 큰 장면에 대응하는 최종 재구성 모델을 획득한다.In order to solve the above problem, in the related art, when performing 3D reconstruction on a large-scale scene, generally first, an image sequence corresponding to the above-mentioned large-scale scene is divided into several groups of image sequences, 3D reconstruction is performed on the image sequence of each group through the SfM algorithm. 3D reconstruction is performed on each group of image sequences to obtain a reconstruction model corresponding to each group, and then a final reconstruction model corresponding to the large-scale scene is obtained by fusing the reconstruction models corresponding to each group. do.

상술한 규모가 큰 장면에 대해 3 차원 재구성을 수행하는 과정에서, 각 그룹의 재구성 모델 효과가 최종 재구성 모델의 강건성에 영향을 미칠 수 있음을 알 수 있다. 그러나, 관련 기술에서 이미지 그루핑을 수행할 때 주로 정규화 분할(Normalized Cut) 알고리즘을 통해 이미지를 클러스터링 및 그루핑한다. 이러한 그루핑 방법은 분할의 균일성을 보장할 수 있지만, 분할하여 획득된 이미지 그룹의 내부 연결성이 약하여 이미지 그루핑의 정확도가 낮아지며, 이에 따라 이미지 그루핑을 기반으로 3 차원 재구성을 수행하는 강건성이 낮아진다.In the process of performing the 3D reconstruction on the above-described large-scale scene, it can be seen that the effect of the reconstruction model of each group may affect the robustness of the final reconstruction model. However, when image grouping is performed in the related art, images are clustered and grouped mainly through a normalized cut algorithm. Although this grouping method can ensure uniformity of segmentation, the accuracy of image grouping is lowered due to weak internal connectivity of image groups obtained by segmentation, and thus the robustness of performing 3D reconstruction based on image grouping is lowered.

본 발명의 실시예는 이미지 그루핑의 정확도 및 이미지 그루핑 기반 3 차원 재구성의 강건성을 향상시킬 수 있는 3 차원 재구성에서의 이미지 그루핑 방법 및 장치, 전자 기기 및 컴퓨터 판독 가능한 저장매체를 제안한다.Embodiments of the present invention propose an image grouping method and apparatus, an electronic device, and a computer readable storage medium in 3D reconstruction that can improve the accuracy of image grouping and the robustness of 3D reconstruction based on image grouping.

본 발명의 실시예는 3 차원 재구성 중 이미지 그루핑 방법을 개시하며, 상기 방법은,An embodiment of the present invention discloses an image grouping method during 3D reconstruction, the method comprising:

그루핑될 이미지 집합 중 각 이미지를 각각 하나의 이미지 그룹으로 하여, 상기 그루핑될 이미지 집합에 대응하는 모듈성을 계산하는 단계; Calculating modularity corresponding to the image set to be grouped by taking each image among the image sets to be grouped as one image group;

상기 그루핑될 이미지 집합에 포함된 복수 개의 이미지 그룹을 둘씩 조합한다고 가정할 때 각 조합에 대응하는 모듈성의 증분을 각각 계산하여 증분 집합을 얻는 단계;obtaining an incremental set by calculating an increment of modularity corresponding to each combination, assuming that a plurality of image groups included in the image set to be grouped are combined by two;

상기 증분 집합 중 최대 증분을 확정하고 상기 최대 증분에 대응하는 두 개의 이미지 그룹을 합병하여 합병 이미지 그룹을 획득하며, 상기 그루핑될 이미지 집합에 대응하는 모듈성 및 상기 증분 집합을 업데이트하는 단계를, 상기 그루핑될 이미지 집합에 유일한 이미지 그룹이 포함될 때까지 반복적으로 수행하는 단계; 및determining a maximum increment in the incremental set, merging two image groups corresponding to the maximum increment to obtain a merged image group, and updating the modularity corresponding to the image set to be grouped and the incremental set; performing iteratively until a unique image group is included in the to-be-image set; and

상기 그루핑될 이미지 집합에 유일한 이미지 그룹이 포함되는 경우, 기록된 매회의 반복에서, 업데이트된 모듈성 중 최대 모듈성을 확정하고, 상기 최대 모듈성에 대응하는 이미지 조합 방식을 상기 그루핑될 이미지 집합에 대한 이미지 그루핑 결과로 확정하는 단계를 포함한다.When a unique image group is included in the set of images to be grouped, the maximum modularity among the updated modularities is determined in each recorded iteration, and an image combination method corresponding to the maximum modularity is selected as image grouping for the set of images to be grouped. It includes the step of confirming the result.

예시된 일 실시예에서, 상기 최대 모듈성에 대응하는 이미지 조합 방식을 상기 그루핑될 이미지 집합에 대한 이미지 그루핑 결과로 확정하는 단계는, In the illustrated embodiment, the step of determining the image combination method corresponding to the maximum modularity as an image grouping result for the image set to be grouped,

상기 최대 모듈성이 사전 설정된 임계치에 도달하였는지 여부를 확정하는 단계; determining whether the maximum modularity has reached a preset threshold;

상기 최대 모듈성이 상기 사전 설정된 임계치에 도달한 경우, 상기 최대 모듈성에 대응하는 이미지 조합 방식을 상기 그루핑될 이미지 집합에 대한 이미지 그루핑 결과로 확정하는 단계; 및determining an image combination method corresponding to the maximum modularity as an image grouping result for the image set to be grouped, when the maximum modularity reaches the preset threshold; and

상기 최대 모듈성이 상기 사전 설정된 임계치에 도달하지 않은 경우, 상기 그루핑될 이미지 집합에 포함된 각 이미지를 독립된 이미지 그룹으로 하는 단계를 포함한다. and making each image included in the image set to be grouped into an independent image group when the maximum modularity does not reach the preset threshold.

예시된 일 실시예에서, 상기 그루핑될 이미지 집합에 포함된 복수 개의 이미지 그룹을 둘씩 조합하는 단계는, In one illustrated embodiment, the step of combining a plurality of image groups included in the set of images to be grouped by two,

상기 복수 개의 이미지 그룹 중, 연결관계가 구비된 이미지 그룹을 둘씩 조합하고, 연결관계가 구비된 이미지 그룹의 그룹 식별자 간의 대응관계를 기록하는 단계를 포함하고,Combining two image groups having a connection relationship among the plurality of image groups, and recording a correspondence between group identifiers of the image groups having a connection relationship;

연결관계가 구비된 두 개의 이미지 그룹은, 상기 두 개의 이미지 그룹 중 제1 이미지 그룹과 제2 이미지 그룹 중 이미지 간의 유사도가 사전 설정된 유사도 임계치에 도달한 것을 가리킨다. The two image groups having a connection relationship indicate that a similarity between images of a first image group and a second image group of the two image groups reaches a preset similarity threshold.

예시된 일 실시예에서, 상기 증분 집합은 조합하는 것으로 가정된 두 개의 이미지 그룹의 그룹 식별자와, 상기 두 개의 이미지 그룹을 합병하는 것으로 가정하고 계산하여 획득된 상기 증분 간의 대응관계를 포함하며; In an illustrated embodiment, the incremental set includes a correspondence between a group identifier of two image groups assumed to be combined and the incremental obtained by calculating and assuming merging the two image groups;

상기 증분 집합을 업데이트하는 단계는, Updating the incremental set comprises:

기록된 연결관계가 구비된 이미지 그룹의 그룹 식별자 간의 대응관계를 검색하여, 상기 최대 증분에 대응하는 두 개의 이미지 그룹 중 어느 한 이미지 그룹과 연결관계가 구비된 다른 이미지 그룹을 확정하는 단계; Searching for a correspondence between group identifiers of image groups having a recorded connection relationship, and determining another image group having a connection relationship with one of the two image groups corresponding to the maximum increment;

상기 다른 이미지 그룹을 각각 상기 두 개의 이미지와 합병하는 것으로 가정하고 획득된 상기 증분을 확정하고, 확정된 상기 증분을 더하여 획득된 결과를, 합병 이미지 그룹을 상기 다른 이미지 그룹과 합병하는 것으로 가정한 후의 상기 모듈성의 증분으로 하는 단계; 및After assuming that the different image groups are merged with the two images respectively, the obtained increment is determined, and the result obtained by adding the determined increment is assumed to merge the merged image group with the other image group. incrementing the modularity; and

상기 합병 이미지 그룹, 상기 다른 이미지 그룹 각각의 그룹 식별자와, 양자를 합병하는 것으로 가정하고 획득된 상기 모듈의 증분 간의 대응관계를, 상기 증분 집합에 기록하는 단계를 포함한다.and recording a correspondence between a group identifier of each of the merged image group and the other image group and the increment of the module obtained assuming that both are merged, in the increment set.

예시된 일 실시예에서, 상기 방법은,In one illustrated embodiment, the method comprises:

매회의 반복 과정에서, 상기 증분 집합을 업데이트한 후, 상기 합병 이미지 그룹의 그룹 식별자와 상기 다른 이미지 그룹의 그룹 식별자 간의 대응관계를 기록하는 단계를 더 포함한다. In each iteration, after updating the incremental set, the step of recording a correspondence between the group identifier of the merged image group and the group identifier of the other image group is further included.

예시된 일 실시예에서, 상기 방법은,In one illustrated embodiment, the method comprises:

매회의 반복 과정에서, 합병하여 획득된 합병 이미지 그룹, 및 상기 합병 이미지 그룹의 그룹 식별자와 합병된 상기 두 개의 이미지 그룹의 그룹 식별자 간의 대응관계를 기록하는 단계를 더 포함한다.In each repetition process, the step of recording the merged image group obtained by merging and the correspondence between the group identifier of the merged image group and the group identifier of the two merged image groups is further included.

예시된 일 실시예에서, 상기 합병 이미지 그룹은 상기 합병 이미지 그룹을 생성하는 반복에서 업데이트된 모듈성에 대응하고; 상기 이미지 그룹의 그룹 식별자는 상기 이미지 그룹에 포함된 각 이미지를 지시하는 대응하는 이미지 식별자에 대응하며; In one illustrated embodiment, the merge image group corresponds to an updated modularity in an iteration of creating the merge image group; a group identifier of the image group corresponds to a corresponding image identifier indicating each image included in the image group;

상기 기록된 매회의 반복에서, 업데이트된 모듈성 중 최대 모듈성을 확정하고, 상기 최대 모듈성에 대응하는 이미지 조합 방식을 상기 그루핑될 이미지 집합에 대한 이미지 그루핑 결과로 확정하는 단계는, In each repetition of the recording, the step of determining the maximum modularity among the updated modularities and determining the image combination method corresponding to the maximum modularity as the image grouping result for the image set to be grouped,

마지막 반복에서 기록된 합병 이미지 그룹으로부터 시작하여, 반복 발생 순서에 따라, 매회의 반복에서 기록된 합병 이미지 그룹에 대해 역순으로, Starting from the group of merged images recorded in the last iteration, and in reverse order for the group of merged images recorded in each iteration, according to the order of occurrence of the iterations,

이미지 조합 방식을 확인하기 위한 식별자 집합에 상기 합병 이미지 그룹의 그룹 식별자가 포함되는지 여부를 확정하고, 상기 식별자 집합에 상기 합병 이미지 그룹의 그룹 식별자가 포함되지 않는 경우, 상기 합병 이미지 그룹의 그룹 식별자를 상기 식별자 집합에 기입하는 단계; It is determined whether the group identifier of the merged image group is included in the identifier set for checking the image combination method, and if the identifier set does not include the group identifier of the merged image group, the group identifier of the merged image group is determined. writing to the set of identifiers;

상기 합병 이미지 그룹에 대응하는 업데이트된 모듈성이 기록된 매회의 반복에서 업데이트된 모듈성 중 최대 모듈성인지 여부를 확정하는 단계; 및determining whether an updated modularity corresponding to the merged image group is a maximum modularity among updated modularities in each recorded iteration; and

상기 합병 이미지 그룹에 대응하는 업데이트된 모듈성이 기록된 매회의 반복에서 업데이트된 모듈성 중 최대 모듈성인 경우, 상기 식별자 집합에 포함된 각 그룹 식별자에 대응하는 이미지 식별자가 지시하는 이미지를 하나의 이미지 조합으로 하고, 획득된 각 이미지 조합을 상기 그루핑될 이미지 집합에 대한 이미지 그루핑 결과로 확정하는 단계를 수행한다.If the updated modularity corresponding to the merged image group is the maximum modularity among the updated modularity in each recording iteration, the image indicated by the image identifier corresponding to each group identifier included in the identifier set is converted into one image combination. and determining each obtained image combination as an image grouping result for the set of images to be grouped.

예시된 일 실시예에서, 상기 방법은,In one illustrated embodiment, the method comprises:

상기 합병 이미지 그룹에 대응하는 업데이트된 모듈성이 기록된 매회의 반복에서 업데이트된 모듈성 중 최대 모듈성이 아닌 경우, 상기 식별자 집합에 기록된 상기 합병 이미지 그룹의 그룹 식별자를, 상기 합병 이미지 그룹에 대응하는 합병 전 두 개의 이미지 그룹의 그룹 식별자로 교체하는 단계를 더 포함한다.When the updated modularity corresponding to the merged image group is not the largest modularity among the updated modularities in each recording iteration, a group identifier of the merged image group recorded in the identifier set is selected as the merged image group corresponding to the merged image group. and replacing with the group identifiers of the previous two image groups.

예시된 일 실시예에서, 상기 기록된 합병 이미지 그룹에 대응하는 업데이트된 모듈성이 매회의 반복에서 업데이트된 모듈성 중 최대 모듈성인지 여부를 확정하는 단계는, In the illustrated embodiment, the step of determining whether the updated modularity corresponding to the recorded merged image group is the maximum modularity among the updated modularities in each repetition,

이번 반복에서 업데이트된 모듈성이 이번 반복에 대응하는 이전번 반복에서 업데이트된 모듈성에 도달하였는지 여부를 확정하는 단계; determining whether the modularity updated in this iteration has reached the modularity updated in the previous iteration corresponding to this iteration;

도달한 경우, 이번 반복에서 업데이트된 상기 모듈성을 상기 최대 모듈성으로 확정하는 단계를 포함한다.if reached, determining the modularity updated in this iteration as the maximum modularity.

예시된 일 실시예에서, 상기 복수 개의 이미지 그룹을 둘씩 조합한다고 가정할 때 각 조합에 대응하는 모듈성의 증분을 각각 계산하여 증분 집합을 획득하는 단계는,In one illustrated embodiment, assuming that the plurality of image groups are combined in twos, obtaining an incremental set by calculating each increment of modularity corresponding to each combination comprises:

조합하는 것으로 가정하고 계산하여 획득된 각 상기 증분에 대해, For each of the above increments obtained by calculating and assuming a combination,

조합하는 것으로 가정하는 것은 조합하는 것으로 가정된 두 개의 이미지 그룹 각각에 대한 것이고, 이에 대응하는 이진 트리를 확정하고, 상기 증분, 및 상기 조합하는 것으로 가정된 두 개의 이미지의 그룹 식별자를 상기 확정된 이진 트리에 기입하는 단계를 수행하는 단계를 포함하고,Assume combining is for each group of two images hypothesized to combine, determine a binary tree corresponding thereto, and set the increment, and the group identifier of the two images hypothesized to combine, to the determined binary tree. performing the step of writing to the tree;

상기 이진 트리의 루트 노드에는 상기 이진 트리에 기록된 모든 증분 중 최대 증분 및 상기 최대 증분에 대응하는 그룹 식별자가 기록된다.At the root node of the binary tree, the maximum increment among all increments recorded in the binary tree and a group identifier corresponding to the maximum increment are recorded.

예시된 일 실시예에서, 상기 증분 집합에 포함된 최대 증분을 확정하는 단계는, In one illustrated embodiment, ascertaining the maximum increment included in the set of increments comprises:

각 이미지 그룹에 대응하는 상기 이진 트리의 루트 노드 포인터를 최대 증분을 확정하기 위한 최대 힙에 푸시하는 단계; pushing a root node pointer of the binary tree corresponding to each image group into a maximum heap to determine a maximum increment;

상기 최대 힙의 루트 노드에 기록된 포인터를 확정하는 단계; 및determining a pointer recorded in a root node of the maximum heap; and

상기 기록된 포인터가 지시하는 노드에 기록된 증분을 상기 증분 집합에 포함된 최대 증분으로 확정하는 단계를 포함한다. and determining the increment recorded at the node indicated by the recorded pointer as the maximum increment included in the increment set.

예시된 일 실시예에서, 상기 방법은,In one illustrated embodiment, the method comprises:

획득된 각 이미지 그룹에서, 포함된 이미지 수가 제1 사전 설정된 개수 임계치보다 작은 이미지 그룹을 확정하고, 확정된 이미지 그룹을 융합될 이미지 그룹으로 확정하는 단계 - 상기 제1 사전 설정된 임계치는 각 그룹 중 최소 이미지 수를 지시함 - ; In each acquired image group, determining an image group in which the number of included images is less than a first preset number threshold, and determining the determined image group as an image group to be merged, wherein the first preset threshold is the minimum of each group - Indicates the number of images;

상기 각 이미지 그룹 중 상기 융합될 이미지 그룹을 제외한 나머지 그룹을 나머지 그룹으로 확정하는 단계; determining remaining groups other than the image group to be merged among the image groups as the remaining groups;

상기 융합될 그룹 중 각 두 개의 이미지 그룹 간의 연결 가중치를 계산하고 연결 가중치 집합을 구성하는 단계 - 상기 연결 가중치는 두 개의 이미지 그룹 간에 매칭되는 이미지 수를 지시함 - ; 및calculating a connection weight between each two image groups among the to-be-fused groups and constructing a connection weight set, wherein the connection weight indicates the number of images matched between the two image groups; and

상기 연결 가중치 집합에 따라, 상기 융합될 이미지 그룹을 융합하는 단계를 더 포함한다.A step of fusing the to-be-fused image groups according to the set of connection weights is further included.

예시된 일 실시예에서, 상기 연결 가중치 집합에 따라, 상기 융합될 이미지 그룹을 융합하는 단계는,In one illustrated embodiment, the fusing the image group to be fused according to the set of connection weights comprises:

상기 연결 가중치 집합에 연결 가중치가 포함되지 않을 때까지, Until the connection weight is not included in the connection weight set,

상기 연결 가중치 집합 중 최대 연결 가중치를 확정하는 단계; determining a maximum connection weight among the set of connection weights;

상기 최대 연결 가중치에 대응하는 두 개의 이미지 그룹 중에서, 개수가 큰 하나의 이미지 그룹 중 이미지 수가 제2 사전 설정된 개수 임계치에 도달하였는지 여부를 확정하는 단계 - 상기 제2 사전 설정된 개수 임계치는 각 이미지 그룹 중 최대 이미지 수를 지시함 - ; determining whether or not the number of images in one of the two image groups corresponding to the maximum concatenation weight reaches a second preset number threshold, wherein the second preset number threshold is set in each image group; Indicates the maximum number of images - ;

상기 제2 사전 설정된 개수 임계치에 도달한 경우, 이번 반복을 종료하는 단계;terminating this iteration if the second preset number threshold is reached;

상기 제2 사전 설정된 개수 임계치에 도달하지 않은 경우, 상기 두 개의 이미지 그룹을 합병하여 합병 이미지 그룹을 획득하고 상기 연결 가중치 집합을 업데이트하는 단계; 및merging the two image groups to obtain a merged image group and updating the concatenation weight set when the second preset number threshold is not reached; and

상기 연결 가중치 집합에 연결 가중치가 포함되지 않는 경우, 상기 융합될 그룹에 포함된 이미지 그룹 및 상기 나머지 그룹 중 이미지 그룹을, 상기 그루핑될 이미지 집합에 대한 최종 이미지 그룹으로 하는 단계를 반복적으로 수행하는 단계를 포함한다. When the connection weight set does not include the connection weight, repeatedly performing the step of setting an image group included in the group to be merged and an image group among the remaining groups as a final image group for the image set to be grouped. includes

예시된 일 실시예에서, 상기 융합될 그룹 중 각 두 개의 이미지 그룹 간의 연결 가중치를 계산하고 연결 가중치 집합을 구성하는 단계는, In one illustrated embodiment, the step of calculating connection weights between each two image groups among the to-be-fused groups and configuring a connection weight set,

상기 융합될 그룹 중 각 이미지 그룹에 대해, 상기 각 이미지 그룹에 일대일로 대응하는 이진 트리를 생성하는 단계; 및generating a binary tree corresponding to each image group on a one-to-one basis for each image group among the to-be-fused groups; and

상기 융합될 그룹 중 각 두 개의 이미지 그룹 간의 연결 가중치를 계산하고, 상기 연결 가중치, 및 상기 두 개의 이미지 그룹의 그룹 식별자를 상기 이진 트리의 노드에 기록하는 단계 - 상기 이진 트리의 루트 노드에는 각 이미지 그룹에 대응하는 각 연결 가중치 중 최대 연결 가중치, 및 상기 최대 연결 가중치에 대응하는 그룹 식별자가 기록됨 - 를 포함한다. Calculating a connection weight between each of two image groups among the groups to be fused, and recording the connection weight and a group identifier of the two image groups in a node of the binary tree - each image in the root node of the binary tree Among the connection weights corresponding to the group, a maximum connection weight and a group identifier corresponding to the maximum connection weight are recorded.

예시된 일 실시예에서, 상기 연결 가중치 집합 중 최대 연결 가중치를 확정하는 단계는,In one illustrated embodiment, the step of determining the maximum connection weight of the connection weight set,

상기 각 이미지 그룹에 대응하는 이진 트리의 루트 노드 포인터를 상기 최대 연결 가중치를 도출하기 위한 최대 힙에 푸시하는 단계; 및pushing a root node pointer of a binary tree corresponding to each image group to a maximum heap for deriving the maximum connection weight; and

상기 최대 힙의 루트 노드에 기록된 포인터를 판독하고, 상기 기록된 포인터가 지시하는 이진 트리 노드에 기록된 연결 가중치를 상기 최대 연결 가중치로 확정하는 단계를 포함한다. and reading a pointer recorded in a root node of the maximum heap, and determining a connection weight recorded in a binary tree node indicated by the recorded pointer as the maximum connection weight.

예시된 일 실시예에서, 상기 연결 가중치 집합 중 최대 연결 가중치를 확정한 후, 상기 방법은,In one illustrated embodiment, after determining the maximum connection weight of the set of connection weights, the method:

상기 최대 연결 가중치에 대응하는 두 개의 이미지 그룹 중 어느 하나의 이미지 그룹에 대응하는 이진 트리가 널(null)인지 여부를 확정하는 단계; determining whether a binary tree corresponding to one of the two image groups corresponding to the maximum connection weight is null;

널이 아닌 경우, 계속하여 후속 단계를 수행하는 단계; 및if not null, continuing with subsequent steps; and

널인 경우, 현재 반복을 종료하는 단계를 더 포함한다.If null, further comprising terminating the current iteration.

예시된 일 실시예에서, 상기 연결 가중치 집합을 업데이트하는 단계는,In one illustrated embodiment, updating the set of connection weights comprises:

합병된 상기 두 개의 이미지 그룹 각각에 대응하는 이진 트리를 삭제하는 단계; deleting a binary tree corresponding to each of the two merged image groups;

상기 합병 이미지 그룹과 상기 융합될 그룹 중 다른 그룹 간의 연결 가중치를 계산하는 단계; calculating a connection weight between the merged image group and another group among the groups to be merged;

산출된 상기 연결 가중치, 및 상기 합병 이미지 그룹과 상기 다른 그룹의 그룹 식별자를 상기 다른 그룹에 대응하는 이진 트리에 기입하는 단계; 및writing the calculated connection weight and group identifiers of the merged image group and the other group into a binary tree corresponding to the other group; and

상기 다른 그룹에 대응하는 이진 트리에서, 상기 다른 그룹과, 합병된 상기 두 개의 이미지 그룹 간의 연결 가중치를 기록한 노드를 삭제하는 단계를 포함한다.and deleting a node recording a connection weight between the other group and the merged two image groups from the binary tree corresponding to the other group.

본 발명의 실시예는 3 차원 재구성 중 이미지 그루핑 방법을 더 제안하며, 상기 방법은,An embodiment of the present invention further proposes an image grouping method during 3D reconstruction, the method comprising:

그루핑될 이미지 집합 중 각 이미지를 각각 하나의 이미지 그룹으로 할 때, 상기 그루핑될 이미지 집합에 대응하는 모듈성을 계산하는 단계;Calculating modularity corresponding to the set of images to be grouped when each image among the set of images to be grouped is regarded as one image group;

상기 그루핑될 이미지 집합에 포함된 복수 개의 이미지 그룹을 둘씩 조합할 때 각 조합에 대응하는 모듈성의 증분을 각각 계산하여 증분 집합을 획득하는 단계;obtaining an incremental set by calculating an increment of modularity corresponding to each combination when combining a plurality of image groups included in the image set to be grouped by two;

상기 증분 집합에 포함된 최대 증분을 확정하고, 상기 최대 증분이 0에 도달하였는지 여부를 더 확정하며, 상기 최대 증분이 0에 도달한 경우, 상기 최대 증분에 대응하는 기록된 두 개의 이미지 그룹을 합병하여 합병 이미지 그룹을 획득하고 상기 증분 집합을 업데이트하는 단계를, 상기 그루핑될 이미지 집합에 유일한 이미지 그룹이 포함될 때까지, 반복적으로 수행하는 단계; Determine the maximum increment included in the set of increments, further determine whether the maximum increment reaches 0, and merge the two image groups recorded corresponding to the maximum increment if the maximum increment reaches 0. obtaining a merged image group and updating the incremental set repeatedly until a unique image group is included in the to-be-grouped image set;

매회의 반복에서, 상기 최대 증분이 0에 도달하지 않은 경우, 이상의 반복 단계를 종료하고, 이번 반복의 이전번 반복에서 합병된 이미지 조합 방식을 상기 그루핑될 이미지 집합에 대한 최종 이미지 그루핑 결과로 하는 단계; 및In each iteration, when the maximum increment does not reach 0, terminating the above iterative step, and making the image combination method merged in the previous iteration of this iteration the final image grouping result for the image set to be grouped. ; and

상기 그루핑될 이미지 집합이 유일한 이미지 그룹을 포함하는 경우, 상기 그루핑될 이미지 집합에 포함된 각 이미지를 하나의 이미지 그룹으로 분할하는 단계를 포함한다.and dividing each image included in the image set to be grouped into one image group when the set of images to be grouped includes a unique image group.

본 발명의 실시예는 3 차원 재구성 중 이미지 그루핑 장치를 더 제출하며, 상기 장치는,An embodiment of the present invention further provides an image grouping device during three-dimensional reconstruction, the device comprising:

그루핑될 이미지 집합 중 각 이미지를 각각 하나의 이미지 그룹으로 하여, 상기 그루핑될 이미지 집합에 대응하는 모듈성을 계산하도록 구성되는 제1 계산부;a first calculation unit configured to calculate modularity corresponding to the image set to be grouped by taking each image among the image sets to be grouped as one image group;

상기 그루핑될 이미지 집합에 포함된 복수 개의 이미지 그룹을 둘씩 조합한다고 가정할 때 각 조합에 대응하는 모듈성의 증분을 각각 계산하여 증분 집합을 획득하도록 구성되는 제1 생성부;a first generation unit configured to obtain an incremental set by calculating an increment of modularity corresponding to each combination, assuming that a plurality of image groups included in the image set to be grouped are combined in pairs;

상기 증분 집합 중 최대 증분을 확정하고 상기 최대 증분에 대응하는 두 개의 이미지 그룹을 합병하여 합병 이미지 그룹을 획득하며 상기 그루핑될 이미지 집합에 대응하는 모듈성 및 상기 증분 집합을 업데이트하는 단계를, 상기 그루핑될 이미지 집합에 유일한 이미지 그룹이 포함될 때까지 반복적으로 수행하도록 구성되는 제1 합병부;determining a maximum increment in the incremental set, merging two image groups corresponding to the maximum increment to obtain a merged image group, and updating the modularity corresponding to the image set to be grouped and the incremental set; a first merging unit configured to perform iteratively until a unique image group is included in the image set;

상기 그루핑될 이미지 집합에 유일한 이미지 그룹이 포함되는 경우, 기록된 매회의 반복에서, 업데이트된 모듈성 중 최대 모듈성을 확정하고, 상기 최대 모듈성에 대응하는 이미지 조합 방식을 상기 그루핑될 이미지 집합에 대한 이미지 그루핑 결과로 확정하도록 구성되는 제1 그룹 확정부를 포함한다.When a unique image group is included in the set of images to be grouped, the maximum modularity among the updated modularities is determined in each recorded iteration, and an image combination method corresponding to the maximum modularity is selected as image grouping for the set of images to be grouped. and a first group determination unit configured to determine a result.

예시된 일 실시예에서, 상기 제1 그룹 확정부는 또한, In one illustrated embodiment, the first group determination unit also,

상기 최대 모듈성이 사전 설정된 임계치에 도달하였는지 여부를 확정하고;determine whether the maximum modularity has reached a preset threshold;

상기 최대 모듈성이 상기 사전 설정된 임계치에 도달한 경우, 상기 최대 모듈성에 대응하는 이미지 조합 방식을 상기 그루핑될 이미지 집합에 대한 이미지 그루핑 결과로 확정하며;when the maximum modularity reaches the preset threshold, determining an image combining method corresponding to the maximum modularity as an image grouping result for the image set to be grouped;

상기 최대 모듈성이 상기 사전 설정된 임계치에 도달하지 않은 경우, 상기 그루핑될 이미지 집합에 포함된 각 이미지를 독립된 이미지 그룹으로 하도록 구성된다.When the maximum modularity does not reach the preset threshold, each image included in the set of images to be grouped is configured to be an independent image group.

예시된 일 실시예에서, 상기 제1 생성부는 또한,In one illustrated embodiment, the first generation unit also,

상기 복수 개의 이미지 그룹 중, 연결관계가 구비된 이미지 그룹을 둘씩 조합하고, 연결관계가 구비된 이미지 그룹의 그룹 식별자 간의 대응관계를 기록하도록 구성되고,Among the plurality of image groups, image groups having a connection relationship are combined by two, and a correspondence relationship between group identifiers of the image groups having a connection relationship is recorded.

연결관계가 구비된 두 개의 이미지 그룹은, 상기 두 개의 이미지 그룹 중 제1 이미지 그룹과 제2 이미지 그룹 중 이미지 간의 유사도가 사전 설정된 유사도 임계치에 도달한 것을 가리킨다.The two image groups having a connection relationship indicate that a similarity between images of a first image group and a second image group of the two image groups reaches a preset similarity threshold.

예시된 일 실시예에서, 상기 증분 집합은 조합하는 것으로 가정된 두 개의 이미지 그룹의 그룹 식별자와, 상기 두 개의 이미지 그룹을 합병하는 것으로 가정하고 계산하여 획득된 상기 증분 간의 대응관계를 포함하며;In an illustrated embodiment, the incremental set includes a correspondence between a group identifier of two image groups assumed to be combined and the incremental obtained by calculating and assuming merging the two image groups;

상기 제1 합병부는 또한,The first merger unit also,

기록된 연결관계가 구비된 이미지 그룹의 그룹 식별자 간의 대응관계를 검색하여, 상기 최대 증분에 대응하는 두 개의 이미지 그룹 중 어느 한 이미지 그룹과 연결관계가 구비된 다른 이미지 그룹을 확정하고; Searching for a correspondence between group identifiers of image groups having a recorded connection relationship, determining another image group having a connection relationship with one of the two image groups corresponding to the maximum increment;

상기 다른 이미지 그룹을 각각 상기 두 개의 이미지와 합병하는 것으로 가정하고 획득된 상기 증분을 확정하고, 확정된 상기 증분을 더하여 획득된 결과를, 합병 이미지 그룹을 상기 다른 이미지 그룹과 합병하는 것으로 가정한 후 상기 모듈성의 증분으로 하며;Assuming that the different image groups are merged with the two images respectively, and the obtained increment is determined, and the result obtained by adding the determined increment is assumed, the merged image group is assumed to be merged with the other image group, and then as an increment of the modularity;

상기 합병 이미지 그룹, 상기 다른 이미지 그룹 각각의 그룹 식별자와, 양자를 합병하는 것으로 가정하고 획득된 상기 모듈의 증분 간의 대응관계를, 상기 증분 집합에 기록하도록 구성된다.and record a correspondence between a group identifier of each of the merged image group and the other image group, and the increment of the module obtained assuming that both are merged, in the increment set.

예시된 일 실시예에서, 상기 장치는,In one illustrated embodiment, the device,

매회의 반복 과정에서, 상기 증분 집합을 업데이트한 후, 상기 합병 이미지 그룹의 그룹 식별자와 상기 다른 이미지 그룹의 그룹 식별자 간의 대응관계를 기록하도록 구성되는 제1 기록부를 더 포함한다.and a first recording unit, configured to record a correspondence between the group identifier of the merged image group and the group identifier of the other image group after updating the incremental set in each iteration process.

예시된 일 실시예에서, 상기 장치는,In one illustrated embodiment, the device,

매회의 반복 과정에서, 합병하여 획득된 합병 이미지 그룹, 및 상기 합병 이미지 그룹의 그룹 식별자와 합병된 상기 두 개의 이미지 그룹의 그룹 식별자 간의 대응관계를 기록하도록 구성되는 제2 기록부를 더 포함한다.A second recording unit configured to record a merged image group obtained by merging and a correspondence between a group identifier of the merged image group and a group identifier of the merged two image groups in each iteration process.

예시된 일 실시예에서, 상기 합병 이미지 그룹은 상기 합병 이미지 그룹을 생성하는 반복에서 업데이트된 모듈성에 대응하고; 상기 이미지 그룹의 그룹 식별자는 상기 이미지 그룹에 포함된 각 이미지를 지시하는 대응하는 이미지 식별자에 대응하며;In one illustrated embodiment, the merge image group corresponds to an updated modularity in an iteration of creating the merge image group; a group identifier of the image group corresponds to a corresponding image identifier indicating each image included in the image group;

상기 제1 그룹 확정부는 또한,The first group determination unit also,

마지막 반복에서 기록된 합병 이미지 그룹으로부터 시작하여, 반복 발생 순서에 따라, 매회의 반복에서 기록된 합병 이미지 그룹에 대해 역순으로,Starting from the group of merged images recorded in the last iteration, and in reverse order for the group of merged images recorded in each iteration, according to the order of occurrence of the iterations,

이미지 조합 방식을 확인하기 위한 식별자 집합에 상기 합병 이미지 그룹의 그룹 식별자가 포함되는지 여부를 확정하고, 상기 식별자 집합에 상기 합병 이미지 그룹의 그룹 식별자가 포함되지 않는 경우, 상기 합병 이미지 그룹의 그룹 식별자를 상기 식별자 집합에 기입하는 단계;It is determined whether the group identifier of the merged image group is included in the identifier set for checking the image combination method, and if the identifier set does not include the group identifier of the merged image group, the group identifier of the merged image group is determined. writing to the set of identifiers;

상기 합병 이미지 그룹에 대응하는 업데이트된 모듈성이 기록된 매회의 반복에서 업데이트된 모듈성 중 최대 모듈성인지 여부를 확정하는 단계; 및determining whether an updated modularity corresponding to the merged image group is a maximum modularity among updated modularities in each recorded iteration; and

상기 합병 이미지 그룹에 대응하는 업데이트된 모듈성이 기록된 매회의 반복에서 업데이트된 모듈성 중 최대 모듈성인 경우, 상기 식별자 집합에 포함된 각 그룹 식별자에 대응하는 이미지 식별자가 지시하는 이미지를 하나의 이미지 조합으로 하고, 획득된 각 이미지 조합을 상기 그루핑될 이미지 집합에 대한 이미지 그루핑 결과로 확정하는 단계를 수행하도록 구성된다.If the updated modularity corresponding to the merged image group is the maximum modularity among the updated modularity in each recording iteration, the image indicated by the image identifier corresponding to each group identifier included in the identifier set is converted into one image combination. and determining each obtained image combination as an image grouping result for the set of images to be grouped.

예시된 일 실시예에서, 상기 장치는,In one illustrated embodiment, the device,

상기 합병 이미지 그룹에 대응하는 업데이트된 모듈성이 기록된 매회의 반복에서 업데이트된 모듈성 중 최대 모듈성이 아닌 경우, 상기 식별자 집합에 기록된 상기 합병 이미지 그룹의 그룹 식별자를, 상기 합병 이미지 그룹에 대응하는 합병 전 두 개의 이미지 그룹의 그룹 식별자로 교체하도록 구성되는 교체부를 더 포함한다.When the updated modularity corresponding to the merged image group is not the largest modularity among the updated modularities in each recording iteration, a group identifier of the merged image group recorded in the identifier set is selected as the merged image group corresponding to the merged image group. and a replacement unit configured to replace the group identifiers of the previous two image groups.

예시된 일 실시예에서, 상기 교체부는 또한,In one illustrated embodiment, the replacement unit also,

이번 반복에서 업데이트된 모듈성이 이번 반복에 대응하는 이전번 반복에서 업데이트된 모듈성에 도달하였는지 여부를 확정하고;determine whether the modularity updated in this iteration has reached the modularity updated in the previous iteration corresponding to this iteration;

도달한 경우, 이번 반복에서 업데이트된 상기 모듈성을 상기 최대 모듈성으로 확정하도록 구성된다.If reached, it is configured to determine the modularity updated in this iteration as the maximum modularity.

예시된 일 실시예에서, 상기 제1 생성부는,In one illustrated embodiment, the first generating unit,

조합하는 것으로 가정하고 계산하여 획득된 각 상기 증분에 대해,For each of the above increments obtained by calculating and assuming a combination,

조합하는 것으로 가정하는 것은 조합하는 것으로 가정된 두 개의 이미지 그룹 각각에 대한 것이고, 이에 대응하는 이진 트리를 확정하고, 상기 증분, 및 상기 조합하는 것으로 가정된 두 개의 이미지의 그룹 식별자를 상기 확정된 이진 트리에 기입하는 단계를 수행하도록 구성되고,Assume combining is for each group of two images hypothesized to combine, determine a binary tree corresponding thereto, and set the increment, and the group identifier of the two images hypothesized to combine, to the determined binary tree. configured to perform the step of writing to the tree;

상기 이진 트리의 루트 노드에는 상기 이진 트리에 기록된 모든 증분 중 최대 증분 및 상기 최대 증분에 대응하는 그룹 식별자가 기록된다.At the root node of the binary tree, the maximum increment among all increments recorded in the binary tree and a group identifier corresponding to the maximum increment are recorded.

예시된 일 실시예에서, 상기 제1 생성부는 또한,In one illustrated embodiment, the first generation unit also,

각 이미지 그룹에 대응하는 상기 이진 트리의 루트 노드 포인터를 최대 증분을 확정하기 위한 최대 힙에 푸시하고;push the root node pointer of the binary tree corresponding to each image group to the maximum heap to determine the maximum increment;

상기 최대 힙의 루트 노드에 기록된 포인터를 확정하며;determine a pointer recorded in a root node of the maximum heap;

상기 기록된 포인터가 지시하는 노드에 기록된 증분을 상기 증분 집합에 포함된 최대 증분으로 확정하도록 구성된다.and determine the increment recorded at the node pointed by the recorded pointer as the largest increment included in the set of increments.

예시된 일 실시예에서, 상기 장치는,In one illustrated embodiment, the device,

획득된 각 이미지 그룹에서, 포함된 이미지 수가 제1 사전 설정된 개수 임계치보다 작은 이미지 그룹을 확정하고, 확정된 이미지 그룹을 융합될 이미지 그룹으로 확정하도록 구성되는 융합될 이미지 그룹 확정부 - 상기 제1 사전 설정된 임계치는 각 그룹 중 최소 이미지 수를 지시함 - ; an image group to be merged determining unit, configured to determine, in each acquired image group, an image group whose number of included images is smaller than a first preset number threshold, and determine the determined image group as an image group to be merged - the first dictionary The set threshold indicates the minimum number of images in each group;

상기 각 이미지 그룹 중 상기 융합될 이미지 그룹을 제외한 나머지 그룹을 나머지 그룹으로 확정하도록 구성되는 나머지 그룹 확정부;a remaining group determining unit configured to determine remaining groups other than the to-be-fused image group among the image groups as remaining groups;

상기 융합될 그룹 중 각 두 개의 이미지 그룹 간의 연결 가중치를 계산하고 연결 가중치 집합을 구성하도록 구성되는 연결 가중치 계산부 - 상기 연결 가중치는 두 개의 이미지 그룹 간에 매칭되는 이미지 수를 지시함 - ; 및a connection weight calculation unit configured to calculate a connection weight between each two image groups among the groups to be fused and configure a connection weight set, wherein the connection weight indicates the number of images matched between the two image groups; and

상기 연결 가중치 집합에 따라, 상기 융합될 이미지 그룹을 융합하도록 구성되는 그룹 융합부를 더 포함한다.and a group fusion unit configured to fuse the to-be-fused image groups according to the set of connection weights.

예시된 일 실시예에서, 상기 그룹 융합부는 또한,In one illustrated embodiment, the group fusion unit also,

상기 연결 가중치 집합에 연결 가중치가 포함되지 않을 때까지,Until the connection weight is not included in the connection weight set,

상기 연결 가중치 집합 중 최대 연결 가중치를 확정하는 단계;determining a maximum connection weight among the set of connection weights;

상기 최대 연결 가중치에 대응하는 두 개의 이미지 그룹 중에서, 개수가 큰 하나의 이미지 그룹 중 이미지 수가 제2 사전 설정된 개수 임계치에 도달하였는지 여부를 확정하는 단계 - 상기 제2 사전 설정된 개수 임계치는 각 이미지 그룹 중 최대 이미지 수를 지시함 - ;determining whether or not the number of images in one of the two image groups corresponding to the maximum concatenation weight reaches a second preset number threshold, wherein the second preset number threshold is set in each image group; Indicates the maximum number of images - ;

상기 제2 사전 설정된 개수 임계치에 도달한 경우, 이번 반복을 종료하는 단계;terminating this iteration if the second preset number threshold is reached;

상기 제2 사전 설정된 개수 임계치에 도달하지 않은 경우, 상기 두 개의 이미지 그룹을 합병하여 합병 이미지 그룹을 획득하고 상기 연결 가중치 집합을 업데이트하는 단계; 및merging the two image groups to obtain a merged image group and updating the concatenation weight set when the second preset number threshold is not reached; and

상기 연결 가중치 집합에 연결 가중치가 포함되지 않는 경우, 상기 융합될 그룹에 포함된 이미지 그룹 및 상기 나머지 그룹 중 이미지 그룹을, 상기 그루핑될 이미지 집합에 대한 최종 이미지 그룹으로 하는 단계를 반복적으로 수행하도록 구성된다.When the connection weight set does not include the connection weight, the image group included in the group to be merged and the image group among the remaining groups are configured to repeatedly perform the step of making the final image group for the image set to be grouped. do.

예시된 일 실시예에서, 상기 연결 가중치 계산부는 또한,In one illustrated embodiment, the connection weight calculation unit also,

상기 융합될 그룹 중 각 이미지 그룹에 대해, 상기 각 이미지 그룹에 일대일로 대응하는 이진 트리를 생성하고;for each image group of the to-be-fused group, a binary tree corresponding to each image group on a one-to-one basis is generated;

상기 융합될 그룹 중 각 두 개의 이미지 그룹 간의 연결 가중치를 계산하고, 상기 연결 가중치, 및 상기 두 개의 이미지 그룹의 그룹 식별자를 상기 이진 트리의 노드에 기록하도록 구성되며, 상기 이진 트리의 루트 노드에는 각 이미지 그룹에 대응하는 각 연결 가중치 중 최대 연결 가중치, 및 상기 최대 연결 가중치에 대응하는 그룹 식별자가 기록된다.Calculate a connection weight between each two image groups of the group to be fused, and record the connection weight and a group identifier of the two image groups in a node of the binary tree, wherein each root node of the binary tree Among the linkage weights corresponding to the image group, a maximum linkage weight and a group identifier corresponding to the maximum linkage weight are recorded.

예시된 일 실시예에서, 상기 그룹 융합부는 또한,In one illustrated embodiment, the group fusion unit also,

상기 각 이미지 그룹에 대응하는 이진 트리의 루트 노드 포인터를 상기 최대 연결 가중치를 도출하기 위한 최대 힙에 푸시하고;push a root node pointer of the binary tree corresponding to each image group to a maximum heap for deriving the maximum connection weight;

상기 최대 힙의 루트 노드에 기록된 포인터를 판독하고, 상기 기록된 포인터가 지시하는 이진 트리 노드에 기록된 연결 가중치를 상기 최대 연결 가중치로 확정하도록 구성된다.Read a pointer recorded in a root node of the maximum heap, and determine a connection weight recorded in a binary tree node indicated by the recorded pointer as the maximum connection weight.

예시된 일 실시예에서, 상기 장치는,In one illustrated embodiment, the device,

상기 최대 연결 가중치에 대응하는 두 개의 이미지 그룹 중 어느 하나의 이미지 그룹에 대응하는 이진 트리가 널(null)인지 여부를 확정하고,Determine whether a binary tree corresponding to one of the two image groups corresponding to the maximum connection weight is null,

널이 아닌 경우, 계속하여 후속 단계를 수행하고,If not null, continue with subsequent steps;

널인 경우, 현재 반복을 종료하도록 구성되는 데이터 확정부를 더 포함한다.If null, further comprising a data determination unit, configured to end the current iteration.

예시된 일 실시예에서, 상기 그룹 융합부는 또한,In one illustrated embodiment, the group fusion unit also,

합병된 상기 두 개의 이미지 그룹 각각에 대응하는 이진 트리를 삭제하고;delete a binary tree corresponding to each of the two merged image groups;

상기 합병 이미지 그룹과 상기 융합될 그룹 중 다른 그룹 간의 연결 가중치를 계산하고;calculate connection weights between the merged image group and other groups among the groups to be merged;

산출된 상기 연결 가중치, 및 상기 합병 이미지 그룹과 상기 다른 그룹의 그룹 식별자를 상기 다른 그룹에 대응하는 이진 트리에 기입하며;writing the calculated connection weight and group identifiers of the merged image group and the other group into a binary tree corresponding to the other group;

상기 다른 그룹에 대응하는 이진 트리에서, 상기 다른 그룹과, 합병된 상기 두 개의 이미지 그룹 간의 연결 가중치를 기록한 노드를 삭제하도록 구성된다.A node recording a connection weight between the other group and the merged two image groups is deleted from the binary tree corresponding to the other group.

본 발명의 실시예는 3 차원 재구성 중 이미지 그루핑 장치를 제안하며, 상기 장치는,An embodiment of the present invention proposes an image grouping device during 3D reconstruction, the device comprising:

그루핑될 이미지 집합 중 각 이미지를 각각 하나의 이미지 그룹으로 할 때, 상기 그루핑될 이미지 집합에 대응하는 모듈성을 계산하도록 구성되는 제2 계산부; a second calculation unit configured to calculate modularity corresponding to the image set to be grouped when each image among the image sets to be grouped is regarded as one image group;

상기 그루핑될 이미지 집합에 포함된 복수 개의 이미지 그룹을 둘씩 조합할 때 각 조합에 대응하는 모듈성의 증분을 각각 계산하여 증분 집합을 얻도록 구성되는 제2 생성부; a second generation unit configured to obtain an incremental set by calculating an increment of modularity corresponding to each combination when combining the plurality of image groups included in the image set to be grouped by two;

상기 증분 집합에 포함된 최대 증분을 확정하고, 상기 최대 증분이 0에 도달하였는지 여부를 더 확정하며, 상기 최대 증분이 0에 도달한 경우, 상기 최대 증분에 대응하는 기록된 두 개의 이미지 그룹을 합병하여 합병 이미지 그룹을 획득하고, 상기 증분 집합을 업데이트하는 단계를, 상기 그루핑될 이미지 집합에 유일한 이미지 그룹이 포함될 때까지, 반복적으로 수행하도록 구성되는 제2 합병부; 및Determine the maximum increment included in the set of increments, further determine whether the maximum increment reaches 0, and merge the two image groups recorded corresponding to the maximum increment if the maximum increment reaches 0. a second merging unit, configured to repeatedly perform the step of obtaining a merged image group and updating the incremental set until a unique image group is included in the to-be-grouped image set; and

매회의 반복에서, 상기 최대 증분이 0에 도달하지 않은 경우, 이상의 반복 단계를 종료하고, 이번 반복의 이전번 반복에서 합병된 이미지 조합 방식을 상기 그루핑될 이미지 집합에 대한 최종 이미지 그루핑 결과로 하고;In each iteration, if the maximum increment does not reach 0, the above iteration steps are terminated, and the image combination method merged in the previous iteration of this iteration is taken as the final image grouping result for the image set to be grouped;

상기 그루핑될 이미지 집합이 유일한 이미지 그룹을 포함하는 경우, 상기 그루핑될 이미지 집합에 포함된 각 이미지를 하나의 이미지 그룹으로 분할하도록 구성되는 제2 그룹 확정부를 포함한다.and a second group determination unit configured to divide each image included in the image set to be grouped into one image group when the set of images to be grouped includes a unique image group.

본 발명의 실시예는 전자 기기를 제안하며, 상기 기기는,An embodiment of the present invention proposes an electronic device, the device comprising:

프로세서; 및processor; and

상기 프로세서가 실행 가능한 명령을 저장하는 메모리를 포함하되,A memory for storing instructions executable by the processor,

상기 프로세서는 상기 메모리에 저장된 실행 가능한 명령을 호출하여, 상술한 어느 한 실시예의 3 차원 재구성 중 이미지 그루핑 방법을 구현하도록 구성된다.The processor is configured to invoke an executable instruction stored in the memory to implement the image grouping method during 3D reconstruction of any one of the above-described embodiments.

본 발명의 실시예는 상술한 어느 한 실시예의 3 차원 재구성 중 이미지 그루핑 방법을 수행하기 위한 컴퓨터 프로그램이 저장된 컴퓨터 판독 가능한 저장매체를 제출한다.An embodiment of the present invention submits a computer readable storage medium storing a computer program for performing the image grouping method during 3D reconstruction of any one of the above embodiments.

본 발명의 실시예는 컴퓨터 판독 가능한 코드가 포함된 컴퓨터 프로그램을 더 제공하며, 상기 컴퓨터 판독 가능한 코드는 전자 기기에서 실행되는 경우, 상기 전자 기기의 프로세서에 의해 실행되면 상술한 어느 한 실시예의 3 차원 재구성 중 이미지 그루핑 방법을 구현한다.Embodiments of the present invention further provide a computer program including computer readable code, and when the computer readable code is executed in an electronic device, when executed by a processor of the electronic device, the 3D image of any one of the embodiments described above is executed. Implement an image grouping method during reconstruction.

상술한 방안에서, 한편으로, 상기 방법은 매회의 반복 단계에서 최대 모듈성의 증분에 대응하는 두 개의 이미지 그룹을 합병하여, 매번 합병 후 이미지의 조합 방식이 이번 합병에서 이룰 수 있는 최적 조합 방식이도록 보장한다. In the above scheme, on the one hand, the method merges the two image groups corresponding to the increment of the maximum modularity in each iteration step, ensuring that the image combination method after each merge is the optimal combination method that can be achieved in this merger. do.

다른 한편으로, 합병하여 하나의 이미지 그룹만 남은 경우, 상기 방법은 기록된 매회의 반복에서 업데이트된 모듈성을 추적하여, 상기 모듈성 중 최대 모듈성을 확정하고 상기 최대 모듈성에 대응하는 이미지 조합 방식을 상기 그루핑될 이미지 집합에 대한 이미지 그루핑 결과로 확정할 수 있으므로, 이미지 그룹을 합병하는 과정에서 나타난 최적 이미지 조합 방식을 상기 그루핑될 이미지 집합에 대한 이미지 그루핑 결과로 확정할 수 있도록 보장할 수 있다. 그룹의 분할을 통해 각 그룹 내부의 이미지 간의 연결관계가 비교적 강하고 각 그룹 내부의 이미지와 다른 그룹의 이미지 간의 연결관계가 비교적 약하여, 이미지 그루핑의 정확도를 향상시킴으로써, 이미지 그루핑을 기반으로 3 차원 재구성을 수행하는 강건성을 향상시킨다.On the other hand, if only one image group remains after merging, the method tracks the updated modularity in each recorded iteration, determines the maximum modularity among the modularities, and determines the image combination method corresponding to the maximum modularity for the grouping. Since the result of image grouping for the set of images to be grouped can be determined, it is possible to ensure that the optimal image combination method shown in the process of merging image groups can be determined as the result of grouping the image for the set of images to be grouped. Through the division of groups, the connection between the images in each group is relatively strong and the connection between the images inside each group and the images in other groups is relatively weak, thereby improving the accuracy of image grouping, thereby enabling 3D reconstruction based on image grouping. improve performance robustness.

이해해야 할 것은, 이상의 일반적인 설명과 후술되는 세부 설명은 다만 예시적이고 해석적인 것이지 본 발명을 한정하려는 것은 아니다.It should be understood that the above general description and the detailed description that follows are illustrative and interpretative only and are not intended to limit the invention.

본 발명의 실시예에 따른 하나 또는 복수 개의 실시예 또는 관련 기술 중 기술적 방안을 더 명확하게 설명하기 위해, 이하 실시예 또는 관련 기술의 설명에 사용될 첨부 도면에 대해 간단히 소개한다. 이하 설명 중 첨부 도면이 다만 본 발명의 하나 또는 복수 개의 상황에서 기재된 일부 실시예임은 본 분야의 통상의 기술자에게 있어서 자명한 것이며 창조성 노동을 하지 않고 이러한 첨부 도면에 따라 다른 첨부 도면을 획득할 수도 있다.
도 1은 본 발명의 실시예에 예시된 네트워크 커뮤니티의 분할 예시도이다.
도 2는 본 발명의 실시예에 예시된 3 차원 재구성 중 이미지 그루핑 방법의 방법 흐름도이다.
도 3은 본 발명의 실시예에 예시된 이미지 그루핑 장면의 예시도이다.
도 4는 본 발명의 실시예에 예시된 증분 집합의 예시도이다.
도 5는 본 발명의 실시예에 예시된 평형 이진 트리의 예시도이다.
도 6은 본 발명의 실시예에 예시된 이미지 그루핑 합병의 예시도이다.
도 7은 본 발명의 실시예에 예시된 증분 집합 업데이트 방법의 방법 흐름도이다.
도 8은 본 발명의 실시예에 예시된 이미지 그루핑 합병의 예시도이다.
도 9는 본 발명의 실시예에 예시된 3 차원 재구성 중 이미지 그루핑 방법의 방법 흐름도이다.
도 10은 본 발명의 실시예에 예시된 3 차원 재구성 중 이미지 그루핑 방법을 실제 장면에 응용한 흐름의 예시도이다.
도 11은 본 발명의 실시예에 의해 예시된 3 차원 재구성 중 이미지 그루핑 장치의 구성도이다.
도 12는 본 발명의 실시예에 의해 예시된 3 차원 재구성 중 이미지 그루핑 장치의 구성도이다.
도 13은 본 발명의 실시예에 의해 예시된 전자 기기의 하드웨어 구성도이다.
BRIEF DESCRIPTION OF THE DRAWINGS To more clearly describe technical solutions among one or more embodiments or related technologies according to an embodiment of the present invention, the following briefly introduces the accompanying drawings used in the description of the embodiments or related technologies. It is obvious to those skilled in the art that the accompanying drawings in the following description are only some embodiments described in one or a plurality of situations of the present invention, and other accompanying drawings may be obtained according to these accompanying drawings without creative labor. .
1 is an exemplary division diagram of a network community exemplified in an embodiment of the present invention.
2 is a method flow chart of an image grouping method during 3D reconstruction exemplified in an embodiment of the present invention;
3 is an exemplary view of an image grouping scene exemplified in an embodiment of the present invention.
4 is an exemplary diagram of an incremental set illustrated in an embodiment of the present invention.
5 is an exemplary diagram of a balanced binary tree illustrated in an embodiment of the present invention.
6 is an exemplary diagram of image grouping merging exemplified in an embodiment of the present invention.
7 is a method flowchart of an incremental set updating method illustrated in an embodiment of the present invention;
8 is an exemplary diagram of image grouping merging exemplified in an embodiment of the present invention.
9 is a method flowchart of an image grouping method during 3D reconstruction exemplified in an embodiment of the present invention.
10 is an exemplary flow diagram of applying an image grouping method during 3D reconstruction exemplified in an embodiment of the present invention to an actual scene.
11 is a configuration diagram of an image grouping apparatus during 3D reconstruction exemplified by an embodiment of the present invention.
12 is a block diagram of an image grouping apparatus during 3D reconstruction exemplified by an embodiment of the present invention.
13 is a hardware configuration diagram of an electronic device exemplified by an embodiment of the present invention.

본 기술분야의 기술자가 본 발명에 따른 하나 또는 복수 개의 상황에서의 기술적 방안을 더 잘 이해하도록, 이하 본 발명에 따른 하나 또는 복수 개의 상황에서의 첨부 도면을 결합하여 본 발명에 따른 하나 또는 복수 개의 상황에서의 기술적 방안을 명확하고 완전하게 설명한다. 설명된 실시예가 본 발명의 일부 실시예일 뿐이고 전부 실시예가 아님은 자명하다. 본 발명에 따른 하나 또는 복수 개의 실시예를 기반으로, 본 분야의 통상의 기술자가 창조성 노동 없이 획득한 모든 다른 실시예는 모두 본 발명의 보호 범위에 속해야 한다.In order for those skilled in the art to better understand the technical solutions in one or more situations according to the present invention, the accompanying drawings in one or more situations according to the present invention are combined with Clearly and completely describe the technical options in the situation. It is obvious that the described embodiments are only some embodiments of the present invention, but not all embodiments. Based on one or more embodiments according to the present invention, all other embodiments obtained by a person skilled in the art without creative labor shall all fall within the protection scope of the present invention.

대규모 3 차원 재구성 기술은 문화재 보호, 위치 결정 및 항법, 장면 로밍, 증강 현실, 산업 측정 등 분야에서 광범위한 응용 전망을 가지고 있으며, 대규모 장면을 효과적으로 재구성할 방법은 3 차원 비전 분야의 중요한 연구 주제이다. 장면의 규모와 재구성 알고리즘의 복잡도로 인해, 대규모 장면을 재구성하는데 며칠이 걸리는 경우가 많으며, 계산 자원에도 큰 문제가 된다.Large-scale 3D reconstruction technology has broad application prospects in the fields of cultural heritage protection, positioning and navigation, scene roaming, augmented reality, industrial measurement, etc., and how to effectively reconstruct large-scale scenes is an important research topic in the field of 3D vision. Due to the size of the scene and the complexity of the reconstruction algorithm, it often takes several days to reconstruct a large scene, and computational resources are also a big problem.

현재의 3 차원 재구성 시스템은 소규모의 장면만 처리할 수 있거나, 8 만 제곱 미터의 실내 장면과 같은 큰 장면에서 처리 시간이 너무 긴 바, 현재 제일 좋은 SfM 시스템은 40 시간 넘어 처리해야 하므로 3 차원 재구성이 효율적이지 않다. 상술한 문제를 해결하기 위해, 일부 시스템은 병렬 최적화 기술 또는 분산형 계산 방식을 통해 재구성 효율을 향상시키고 있다. 이러한 방식은 계산 정확도를 희생하고, 확장성이 좋지 못하며, 장면이 더 커짐에 따라 시간 소모가 세제곱으로 증가된다. 다른 일부 시스템은 장면을 그루핑하고, 각 그룹의 장면의 데이터를 독립된 서버에 놓고 모델 재구성 처리를 수행한 후, 재구성된 모델을 융합한다. 그러나, 이러한 방식은 이미지 그루핑을 수행할 때 주로 정규화 분할(Normalized Cut) 알고리즘을 통해 이미지를 클러스터링 및 그루핑한다. 정규화 분할의 그루핑 방법은 분할의 균일성만 보장할 수 있고, 분할하여 획득된 이미지 그룹의 내부 연결성을 보장할 수 없어, 이미지 그루핑의 정확도가 낮아지며, 따라서 이미지 그루핑을 기반으로 3 차원 재구성을 수행하는 로버스트가 낮아진다.Current 3D reconstruction systems can only process small-scale scenes, or the processing time is too long for large scenes, such as indoor scenes of 80,000 square meters, so the current best SfM systems need to process over 40 hours. this is not efficient In order to solve the above problems, some systems improve reconstruction efficiency through parallel optimization techniques or distributed computation methods. This approach sacrifices computational accuracy, does not scale well, and the time consumption increases exponentially as the scene gets larger. Some other systems group scenes, put the data of each group of scenes on an independent server, perform model reconstruction processing, and then fuse the reconstructed models. However, this method mainly clusters and groups images through a normalized cut algorithm when performing image grouping. The grouping method of normalized segmentation can only guarantee the uniformity of segmentation and cannot guarantee the internal connectivity of image groups obtained by segmentation, resulting in low accuracy of image grouping, and therefore a rover that performs 3D reconstruction based on image grouping str is lowered

본 발명의 실시예는 3 차원 재구성 중 이미지 그루핑 방법을 제안하고자 하며, 해당 방법을 통해 확정된 각 그룹 내 이미지 간의 연결관계는 비교적 강하고, 다른 그룹 내부의 이미지와의 연결관계는 비교적 약하여, 이미지 그루핑의 정확도를 향상시키고, 나아가 이미지 그루핑을 기반으로 3 차원 재구성을 수행하는 로버스트를 향상시킨다. 본 발명에서 제출되는 이미지 그루핑 방법은 3 차원 모델링, 증강 현실, 이미지 처리, 사진, 게임, 애니메이션, 영화 및 텔레비전, 전자 상거래, 교육, 부동산, 가정 장식 등과 같은 장면에 적용될 수 있으며, 구체적으로 실제 상황에 따라 선택할 수 있으며, 본 발명의 실시예는 한정하지 않는다. An embodiment of the present invention is to propose an image grouping method during 3D reconstruction, and the connection relationship between images in each group determined through the method is relatively strong, and the connection relationship with images in other groups is relatively weak, so image grouping It improves the accuracy of , and further improves the robustness of performing 3D reconstruction based on image grouping. The image grouping method presented in the present invention can be applied to scenes such as 3D modeling, augmented reality, image processing, photography, games, animation, film and television, e-commerce, education, real estate, home decoration, etc., specifically in real situations It can be selected according to, and the embodiment of the present invention is not limited.

본 발명의 실시예에서 제출되는 방법은 먼저 각 이미지를 각각 독립적인 그룹으로 구성하고, 이때 상기 그루핑될 이미지 집합에 대응하는 모듈성을 확정한다. 다음, 각 회의 합병 이후 상기 모듈성의 증분이 제일 큰 합병 원칙에 따라, 상기 이미지 그룹에 포함된 이미지 그룹을 합병하고, 각 회의 합병 이후, 상기 그루핑될 이미지 집합에 대응하는 모듈성을 기록한다. The method presented in the embodiment of the present invention first configures each image into an independent group, and at this time, the modularity corresponding to the set of images to be grouped is determined. Next, according to the merging principle in which the modularity increment is the largest after each merger, the image groups included in the image groups are merged, and after each merger, the modularity corresponding to the set of images to be grouped is recorded.

상기 그루핑될 이미지에 하나의 이미지 그룹만 포함되는 경우, 각 회의 합병 과정에서 기록된 모듈성 중 최대 모듈성을 찾고, 상기 최대 모듈성에 대응하는 이미지 조합 방식을 상기 그루핑될 이미지 집합에 대한 이미지 그루핑 결과로 확정한다.When the images to be grouped include only one image group, the maximum modularity among the modularities recorded in each meeting merging process is found, and the image combination method corresponding to the maximum modularity is determined as the image grouping result for the image set to be grouped. do.

상술한 방안으로부터 알 수 있다시피, 한편으로, 상기 방법은 매회의 반복 단계에서 최대 모듈성의 증분에 대응하는 두 개의 이미지 그룹을 합병하여, 매회의 합병 이후 이미지의 조합 방식이 이번 합병에서 이룰 수 있는 최적 조합 방식이도록 보장한다.As can be seen from the above scheme, on the one hand, the method merges the two image groups corresponding to the increment of the maximum modularity in each iteration step, so that the image combination method after each merger can be achieved in this merger. Ensure that this is the optimal combination.

다른 한편으로, 합병하여 하나의 이미지 그룹만 남은 경우, 상기 방법은 기록된 매회의 반복에서 업데이트된 모듈성을 추적하여, 상기 모듈성 중 최대 모듈성을 확정하고, 상기 최대 모듈성에 대응하는 이미지 조합 방식을 상기 그루핑될 이미지 집합에 대한 이미지 그루핑 결과로 확정할 수 있으므로, 이미지 그룹을 합병하는 과정에서 나타난 최적 이미지 조합 방식을 상기 그루핑될 이미지 집합에 대한 이미지 그루핑 결과로 확정할 수 있도록 보장할 수 있다. 그룹의 분할을 통해 각 그룹 내부의 이미지 간의 연결관계가 상대적으로 강하고 각 그룹 내부의 이미지와 다른 그룹의 이미지 간의 연결관계가 상대적으로 약하여, 이미지 그루핑의 정확도를 향상시킴으로써, 이미지 그루핑을 기반으로 3 차원 재구성을 수행하는 로버스트를 향상시킨다.On the other hand, if only one image group remains after merging, the method tracks the updated modularity in each recorded iteration, determines the maximum modularity among the modularities, and recalls the image combination method corresponding to the maximum modularity. Since the image grouping result for the image set to be grouped can be determined, it is possible to ensure that the optimal image combination method shown in the process of merging image groups can be determined as the image grouping result for the image set to be grouped. Through the segmentation of groups, the connection between the images in each group is relatively strong and the connection between the images inside each group and the images in other groups is relatively weak, thereby improving the accuracy of image grouping. Improve the robustness of performing reconstructions.

본 발명에 기재된 실시예를 설명하기 전에, 출원인은 먼저 상기 모듈성, 상기 모듈성의 증분, 및 모듈성과 모듈성의 증분의 계산 공식을 상세히 소개한다. Before describing the embodiments described in the present invention, the applicant first introduces the modularity, the increment of the modularity, and the calculation formula of the modularity and the increment of the modularity in detail.

상기 모듈성은 모듈성 메트릭이라고도 불리우며, 이는 네트워크 커뮤니티 분할 표준을 측정하는 방법이다. 모듈성이 높을수록, 상기 네트워크에 대한 분할 결과가 더욱 합리함을 설명한다. 즉, 모듈성이 높을 수록, 현재 네트워크 중 각 커뮤니티 내부의 노드 간의 연결관계가 상대적으로 강하고 다른 커뮤니티 내부의 노드와의 연결관계가 상대적으로 약한 것을 설명한다. The modularity is also called the modularity metric, which is a method of measuring the network community segmentation standard. It is explained that the higher the modularity, the more rational the partitioning result for the network. That is, the higher the modularity, the stronger the connection between nodes within each community in the current network and the weaker the connection between nodes within other communities.

상기 모듈성의 계산 공식은 아래와 같다. The formula for calculating the modularity is as follows.

Figure pct00001
공식 (1)
Figure pct00001
Formula (1)

여기서, 설명할 것은, 상기 공식 (1)의 도출 과정은 Newman의 Finding and evaluating community structure in networks 중의 관련 기재 내용을 참조할 수 있다. Here, to be explained, the derivation process of Formula (1) can refer to Newman's related descriptions in Finding and evaluating community structure in networks.

이하, 첨부도면을 결부하여 상기 공식 (1)에 포함된 각 요소가 나타내는 의미를 설명한다. Hereinafter, the meaning of each element included in the formula (1) will be described with reference to the accompanying drawings.

도 1을 참조하면, 도 1은 본 발명의 실시예에 예시된 네트워크 커뮤니티의 분할 예시도이다.Referring to FIG. 1 , FIG. 1 is a diagram illustrating a division of a network community exemplified in an embodiment of the present invention.

도 1에 도시된 바와 같이, 노드 1-7은 하나의 네트워크를 구성한다. 노드 1, 2, 3, 4는 인접하는 노드 간에 서로 연결되고(다시 말하면, 노드 1, 2, 3, 4는 인접하는 노드 간에 변이 연결됨), 노드 5, 6, 7은 인접하는 노드 간에 서로 연결되고(다시 말하면, 노드 5, 6, 7은 인접하는 노드 간에 변이 연결됨), 노드 4와 노드 5는 서로 연결된다(다시 말하면, 노드 4, 5 간에 변이 연결됨).As shown in Figure 1, nodes 1-7 constitute one network. Nodes 1, 2, 3, and 4 are connected to each other between adjacent nodes (in other words, nodes 1, 2, 3, and 4 are connected to each other between adjacent nodes), and nodes 5, 6, and 7 are connected to each other between adjacent nodes. (In other words, nodes 5, 6, and 7 have edges connected between adjacent nodes), and nodes 4 and 5 are connected to each other (ie, nodes 4 and 5 have edges connected).

상기 공식 (1)에서, 상기 Q는 상기 네트워크의 현재 커뮤니티 분할 상황에 대응하는 모듈성을 나타낸다. In the above formula (1), the Q represents the modularity corresponding to the current community division situation of the network.

여기서, 상기 n은 상기 네트워크가 n 개의 커뮤니티로 분할되었음을 나타낸다. 예를 들어, 도 1을 참조한다. 도 1에 도시된 네트워크에 포함된 노드 1, 2, 3, 4를 하나의 커뮤니티로 하고, 노드 5, 6, 7을 하나의 커뮤니티로 하는 경우, 상기 네트워크는 두 개의 커뮤니티로 분할된다. 이때, 상기 n은 2이다. 노드 1-7 각각을 독립적으로 하나의 커뮤니티로 하는 경우, 상기 네트워크는 7 개의 커뮤니티로 분할된다. 이때, 상기 n은 7이다.Here, n indicates that the network is divided into n communities. For example, see FIG. 1 . When nodes 1, 2, 3, and 4 included in the network shown in FIG. 1 are regarded as one community and nodes 5, 6, and 7 are regarded as one community, the network is divided into two communities. At this time, n is 2. When each of nodes 1-7 is independently regarded as one community, the network is divided into 7 communities. At this time, n is 7.

상기 i는 상기 n 개 커뮤니티 중 커뮤니티 i를 나타낸다. The i represents community i among the n communities.

상기

Figure pct00002
는 상기 커뮤니티 i 내부에 포함된 각 변에 대응하는 부가 가중 인자의 합과, 상기 네트워크에 포함된 모든 변에 대응하는 부가 가중 인자의 합의 비율을 나타낸다. remind
Figure pct00002
represents a ratio between the sum of additional weighting factors corresponding to each edge included in the community i and the sum of additional weighting factors corresponding to all edges included in the network.

여기서, 상기 변은 두 개의 노드 간에 연결관계가 존재하는지 여부를 나타낼 수 있다. 예를 들어, 상기 노드 v 및 노드 w가 각각 두 개의 이미지를 나타내면, 상기 노드 v와 w 간에 연결관계가 존재하는지 여부를 확정할 때, v와 w 간의 유사도를 계산할 수 있다. 상기 노드 v와 w 간의 유사도가 사전 설정된 유사도 임계치에 도달한 경우, 상기 노드 v와 w 간에 연결관계가 존재한고 간주할 수 있고, v와 w 사이에 두 개의 변이 존재한다고 간주할 수도 있다. 이때, 상기 v와 w는 해당 두 변의 두 개의 종점이다. Here, the side may indicate whether a connection relationship exists between two nodes. For example, if the node v and the node w represent two images, a similarity between v and w may be calculated when determining whether or not there is a connection relationship between the nodes v and w. When the similarity between the nodes v and w reaches a preset similarity threshold, it may be considered that a connection relationship exists between the nodes v and w, and it may be considered that two sides exist between v and w. At this time, the v and w are the two end points of the corresponding two sides.

상기 부가 가중 인자는 상기 두 개의 노드 간의 연결관계를 정량적으로 나타낼 수 있다. 예를 들어, 상기 노드 v와 w 사이에 변이 존재하는 경우, v와 w 간의 이미지 특징 포인트의 매칭수를 상기 v와 w 사이의 변의 부가 가중 인자로 매핑할 수 있다. 상기 부가 가중 인자가 클수록, 상기 노드 v와 상기 노드 w 간의 연결관계가 더욱 강한 것을 설명한다. The additional weighting factor may quantitatively represent a connection relationship between the two nodes. For example, when an edge exists between the nodes v and w, the matching number of image feature points between v and w may be mapped as an additional weighting factor of the edge between v and w. It is explained that the connection relationship between the node v and the node w is stronger as the additional weighting factor increases.

통상의 기술자는 모듈성을 더 정확하게 계산하기 위해, 실제 응용에서, 모듈성을 계산할 때, 변에 대응하는 부가 가중 인자를 고려해야 하는 것을 용이하게 이해할 수 있다. 그러나, 실시예를 편리하게 설명하기 위해, 본 발명에서 상기 부가 가중 인자의 값을 1로 설정한다. 상술한 상황에서, 모듈성을 계산하는 경우, 상기 커뮤니티 i 내부에 포함된 변의 개수와 상기 네트워크에 포함된 변의 개수의 비율을 계산하여, 상기

Figure pct00003
를 계산할 수 있다. 공식 (2)에 나타낸 바와 같으며,
Figure pct00004
공식 (2)이다. 여기서, 상기
Figure pct00005
는 커뮤니티 i 내부에 포함된 변의 개수를 가리키고, 상기 m은 상기 네트워크에 포함된 변의 개수를 가리킨다. A person skilled in the art can easily understand that in practical applications, additional weighting factors corresponding to sides should be taken into account when calculating modularity, in order to calculate modularity more accurately. However, in order to conveniently describe the embodiment, the value of the additional weighting factor is set to 1 in the present invention. In the above situation, when modularity is calculated, the ratio of the number of edges included in the community i to the number of edges included in the network is calculated,
Figure pct00003
can be calculated. As shown in formula (2),
Figure pct00004
This is formula (2). here, above
Figure pct00005
denotes the number of edges included in community i, and m denotes the number of edges included in the network.

예를 들어, 도 1을 계속하여 참조한다. 상기 네트워크가 커뮤니티 1 및 커뮤니티 2인 두 개의 커뮤니티(커뮤니티 1은 노드 1, 2, 3, 4로 구성되고, 커뮤니티 2는 노드 5, 6, 7로 구성됨)로 분할되었다고 가정한다. 이때, 상기 커뮤니티 1에 포함된 변의 개수는 6이다. 상기 커뮤니티 2에 포함된 변의 개수는 3이다. 상기 네트워크에 포함된 변의 개수는 10이다. i 가 1인 경우, 상기 공식 (2)에 따라 상기

Figure pct00006
가 0.6인 것을 얻을 수 있다. i 가 2인 경우, 상기
Figure pct00007
는 0.3이다. For example, continued reference is made to FIG. 1 . Assume that the network is divided into two communities, Community 1 and Community 2 (Community 1 is composed of nodes 1, 2, 3, and 4, and Community 2 is composed of nodes 5, 6, and 7). At this time, the number of sides included in community 1 is 6. The number of sides included in Community 2 is 3. The number of edges included in the network is 10. When i is 1, according to formula (2) above
Figure pct00006
It can be obtained that is 0.6. When i is 2, the above
Figure pct00007
is 0.3.

계속하여 상기 공식 (1)을 소개한다. Continuing, the above formula (1) is introduced.

상기 공식 (1) 중

Figure pct00008
은, 커뮤니티 i 내에 포함된 각 노드의 진입 차수의 합과, 상기 네트워크에 포함된 변의 개수의 2 배의 비율을 가리킨다.
Figure pct00009
는 아래와 같이 공식 (3)으로 계산할 수 있다. In formula (1) above
Figure pct00008
denotes the ratio of the sum of the entry degrees of each node included in community i to twice the number of edges included in the network.
Figure pct00009
can be calculated by Formula (3) as follows.

Figure pct00010
공식 (3). 여기서, 상기
Figure pct00011
는 상기 커뮤니티 i 에 포함된 각 노드의 진입 차수의 합을 나타내고, 상기 m은 상기 네트워크에 포함된 변의 개수를 가리킨다.
Figure pct00010
Formula (3). here, above
Figure pct00011
denotes the sum of entry degrees of each node included in the community i, and m denotes the number of edges included in the network.

상기 노드의 진입 차수는 상기 노드를 변으로 하는 종점의 개수를 지시한다. 예를 들어, 도 1을 계속하여 참조한다. 도 1 중 노드 4에는 4 개의 변이 연결되어 있으므로, 노드 4를 변으로 하는 종점의 개수는 4이고, 이때 노드 4의 진입 차수가 4인 것을 확정할 수 있다. 반면, 노드 5에는 3 개의 변이 연결되어 있으므로, 노드 5의 진입 차수는 3이다.The entry degree of the node indicates the number of end points having the node as an edge. For example, continued reference is made to FIG. 1 . Since four edges are connected to node 4 in FIG. 1 , the number of end points having node 4 as an edge is 4, and at this time, it can be determined that the entry degree of node 4 is 4. On the other hand, since three edges are connected to node 5, the entry degree of node 5 is 3.

도 1을 계속하여 참조하면, 상기 네트워크가 커뮤니티 1 및 커뮤니티 2인 두 개의 커뮤니티(커뮤니티 1은 노드 1, 2, 3, 4로 구성되고, 커뮤니티 2는 노드 5, 6, 7로 구성됨)로 분할되었다고 가정한다. 이때, 커뮤니티 1에 포함된 각 노드의 진입 차수의 합은 13이다. 커뮤니티 2에 포함된 각 노드의 진입 차수의 합은 7이다. 상기 네트워크에 포함된 변의 개수의 두 배는 20이다. i 가 1인 경우, 상기

Figure pct00012
는 0.65이다. i 가 2인 경우, 상기
Figure pct00013
는 0.35이다.With continued reference to FIG. 1, the network is divided into two communities, Community 1 and Community 2 (Community 1 is composed of Nodes 1, 2, 3, and 4, and Community 2 is composed of Nodes 5, 6, and 7). Assume it has been At this time, the sum of the entry degrees of each node included in Community 1 is 13. The sum of the in-degrees of each node included in Community 2 is 7. Twice the number of edges included in the network is 20. When i is 1, the above
Figure pct00012
is 0.65. When i is 2, the above
Figure pct00013
is 0.35.

이어서, 계속하여 모듈성의 증분

Figure pct00014
을 소개한다. Then, on and on, incremental modularity
Figure pct00014
Introduce

모듈성의 증분은, 네트워크에 포함된 두 개의 커뮤니티를 하나의 커뮤니티로 합병한 후, 상기 네트워크에 대응하는 모듈성과 합병 전 상기 네트워크에 대응하는 모듈성의 차이값을 가리킨다. The increment of modularity refers to a difference between modularity corresponding to the network after merging two communities included in the network into one community and modularity corresponding to the network before merging.

이때, 통상의 기술자가 이해할 수 있는 것은, 상기 증분이 정수인 경우, 상기 증분이 클수록, 합병 후 상기 네트워크에 대응하는 모듈성이 커진 값이 더 큰 것을 설명하며, 즉 이번 합병은 가치가 더 있음을 설명한다. 상기 증분이 음수인 경우, 상기 증분이 클수록, 합병 후 상기 네트워크에 대응하는 모듈성이 감소된 값이 더 작은 것을 설명하며, 즉 이번 합병의 부정적인 영향이 더 작음을 설명한다. 따라서, 현재 합병 후 상기 네트워크의 모듈성이 증가하는지 아니면 감소하는지를 확정할 수 없는 경우, 네트워크에 포함된 커뮤니티를 합병할 때, 상기 네트워크에서 모든 가능한 두 개의 커뮤니티의 조합 방식에서 상기 증분을 제일 크게할 수 있는 합병 조합으로 합병함으로써, 합병 후, 상기 네트워크의 모듈성이 제일 많이 커지거나 제일 적게 감소하도록 보장할 수 있다. At this time, a person skilled in the art can understand that, when the increment is an integer, the larger the increment, the greater the value of the modularity corresponding to the network after the merger, that is, the greater the value of this merger. do. When the increment is a negative number, the larger the increment, the smaller the reduced value of the modularity corresponding to the network after the merger, that is, the smaller the negative impact of this merger. Therefore, if it is not possible to determine whether the modularity of the network increases or decreases after the current merger, when merging the communities included in the network, the increment can be made the largest in the combination of all possible two communities in the network. By merging into an existing merging combination, it is possible to ensure that the modularity of the network increases the most or decreases the least after the merger.

예를 들어, 도 1을 계속하여 참조하며, 상기 네트워크 중 노드 1 내지 상기 노드 7이 각각 하나의 커뮤니티로 분할되었다고 가정한다. 이때, 상기 네트워크에 대응하는 모듈성은

Figure pct00015
로 표시할 수 있다.For example, with continuing reference to FIG. 1, it is assumed that nodes 1 to 7 of the network are each divided into one community. At this time, the modularity corresponding to the network is
Figure pct00015
can be displayed as

상술한 상황에서, 상기 네트워크 중 임의의 두 개의 커뮤니티를 하나의 커뮤니티로 합병하는 경우, 상기 네트워크에 대응하는 모듈성은

Figure pct00016
로 표시할 수 있고, 상기 모듈성의 증분의 표현식은
Figure pct00017
이다.In the above situation, when merging any two communities of the network into one community, the modularity corresponding to the network is
Figure pct00016
, where the expression for the increment of modularity is
Figure pct00017
am.

이하, 모듈성의 증분

Figure pct00018
공식의 도출 과정을 소개한다.Hereinafter, the increment of modularity
Figure pct00018
The derivation process of the formula is introduced.

상기 네트워크가 현재 n 개의 커뮤니티를 포함하고 상기 네트워크가 커뮤니티 i 및 커뮤니티 j를 포함한다고 가정하면, 공식 (1)에 따라, 현재 네트워크에 대응하는 모듈성이

Figure pct00019
인 것을 알 수 있다.Assuming that the network currently includes n communities and that the network includes community i and community j, according to Formula (1), the modularity corresponding to the current network is
Figure pct00019
It can be seen that

상기 네트워크에 포함된 커뮤니티 i 및 커뮤니티 j를 합병하는 것으로 가정하고 커뮤니티 p를 획득한다. It is assumed that community i and community j included in the network are merged, and community p is acquired.

공식 (2)에 따라,

Figure pct00020
을 획득할 수 있다. 여기서,
Figure pct00021
는 각각 커뮤니티 i 및 커뮤니티 j에 포함된 변의 개수를 나타낸다. 상기
Figure pct00022
는 커뮤니티 i에 포함된 각 노드와, 커뮤니티 j에 포함된 각 노드 간에 연결된 변의 개수를 나타낸다. 상기 m은 상기 네트워크에 포함된 변의 개수를 가리킨다. According to formula (2),
Figure pct00020
can be obtained. here,
Figure pct00021
denotes the number of edges included in community i and community j, respectively. remind
Figure pct00022
represents the number of edges connected between each node included in community i and each node included in community j. The m indicates the number of edges included in the network.

공식 (3)에 따라,

Figure pct00023
이다. 여기서, 상기
Figure pct00024
는 각각 상기 커뮤니티 i, 커뮤니티 j에 포함된 각 노드의 진입 차수의 합을 나타내고, 상기 m은 상기 네트워크에 포함된 변의 개수를 가리킨다.According to formula (3),
Figure pct00023
am. here, above
Figure pct00024
denotes the sum of entry degrees of each node included in community i and community j, respectively, and m denotes the number of edges included in the network.

공식 (1)에 따라, 현재 네트워크에 대응하는 모듈성은,According to formula (1), the modularity corresponding to the current network is,

Figure pct00025
이다.
Figure pct00025
am.

상기 모듈성 증분의 표현식에 따라, 커뮤니티 i와 커뮤니티 j를 합병한 후, 상기 네트워크에 대응하는 모듈성의 증분은

Figure pct00026
이다.According to the expression of the modularity increment, after merging community i and community j, the increment of modularity corresponding to the network is
Figure pct00026
am.

Figure pct00027
으로 커뮤니티 i에 포함된 각 노드와 커뮤니티 j에 포함된 각 노드 사이에 연결된 변의 개수와, 상기 그루핑될 이미지에 포함된 각 이미지 사이에 연결된 변의 개수의 2 배 비율, 즉
Figure pct00028
를 가리키는 것으로 가정하면,
Figure pct00029
공식 (4)이다.
Figure pct00027
, the double ratio of the number of edges connected between each node included in community i and each node included in community j and the number of edges connected between each image included in the image to be grouped, i.e.
Figure pct00028
Assuming it points to
Figure pct00029
This is formula (4).

이에 따라, 커뮤니티 i와 커뮤니티 j를 합병하면, 상기 네트워크에 대응하는 모듈의 증분이

Figure pct00030
인 것을 도출할 수 있다. 여기서,
Figure pct00031
커뮤니티 i에 포함된 각 노드와 커뮤니티 j에 포함된 각 노드 사이에 연결된 변의 개수와, 상기 그루핑될 이미지에 포함된 각 이미지 사이에 연결된 변의 개수의 2 배 비율을 가리킨다.
Figure pct00032
는 각각 커뮤니티 i, 커뮤니티 j 내에 포함된 각 노드의 진입 차수의 합과, 상기 네트워크에 포함된 변의 개수의 2 배의 비율을 가리킨다. Accordingly, when community i and community j are merged, the increment of the module corresponding to the network
Figure pct00030
which can be derived. here,
Figure pct00031
It indicates a ratio of 2 times the number of edges connected between each node included in community i and each node included in community j and the number of edges connected between each image included in the image to be grouped.
Figure pct00032
denotes a ratio of the sum of the entry degrees of each node included in community i and community j, respectively, to twice the number of edges included in the network.

상술한 상황에서, 커뮤니티 i와 커뮤니티 j를 합병하여 획득된 커뮤니티 p를, 다른 커뮤니티 q와 합병하는 것으로 가정한 후 상기 네트워크에 대응하는 모듈성의 증분을 계산해야 하면, In the above situation, if it is assumed that a community p obtained by merging communities i and j is merged with another community q, then an increment of modularity corresponding to the network needs to be calculated:

상기 공식 (4)에 따라, 상기 모듈성의 증분

Figure pct00033
을 산출할 수 있다. According to formula (4) above, the increment of the modularity
Figure pct00033
can be calculated.

상기 공식으로부터 유도하면

Figure pct00034
공식 (5)임을 알 수 있다.Deriving from the above formula
Figure pct00034
It can be seen that Formula (5) is

지금까지 모듈성, 모듈성의 증분 및 관련 계산 공식을 소개했다. 이하부터, 본 발명의 실시예를 소개한다. So far, we have introduced modularity, increment of modularity, and related calculation formulas. Hereinafter, embodiments of the present invention will be introduced.

본 발명에 따른 일부 실시예에서, 도 2를 참조하면, 도 2는 본 발명의 실시예에 예시된 3 차원 재구성 중 이미지 그루핑 방법의 방법 흐름도이다.In some embodiments according to the present invention, referring to FIG. 2 , FIG. 2 is a method flow chart of a method for image grouping during 3D reconstruction illustrated in an embodiment of the present invention.

도 2에 도시된 바와 같이, 상기 방법은 아래의 단계를 포함할 수 있다.As shown in FIG. 2 , the method may include the following steps.

S202 단계에 있어서, 그루핑될 이미지 집합 중 각 이미지를 각각 하나의 이미지 그룹으로 하여, 상기 그루핑될 이미지 집합에 대응하는 모듈성을 계산한다. In step S202, each image among the image sets to be grouped is regarded as one image group, and modularity corresponding to the image set to be grouped is calculated.

S204 단계에 있어서, 상기 그루핑될 이미지 집합에 포함된 복수 개의 이미지 그룹을 둘씩 조합하고, 각 조합에 대응하는 모듈성의 증분을 각각 계산하여 증분 집합을 획득한다. In step S204, a plurality of image groups included in the image set to be grouped are combined in pairs, and incremental increments of modularity corresponding to each combination are respectively calculated to obtain an incremental set.

S206 단계에 있어서, 상기 증분 집합 중 최대 증분을 확정하고 상기 최대 증분에 대응하는 두 개의 이미지 그룹을 합병하여 합병 이미지 그룹을 획득하며 상기 그루핑될 이미지 집합에 대응하는 모듈성 및 상기 증분 집합을 업데이트하는 단계를, 상기 그루핑될 이미지 집합에 유일한 이미지 그룹이 포함될 때까지 반복적으로 수행한다. In step S206, determining a maximum increment of the incremental set, merging two image groups corresponding to the maximum increment to obtain a merged image group, and updating the modularity corresponding to the image set to be grouped and the incremental set. is repeatedly performed until a unique image group is included in the set of images to be grouped.

S208 단계에 있어서, 상기 그루핑될 이미지 집합에 유일한 이미지 그룹이 포함되는 경우, 매회의 반복에서, 업데이트된 모듈성 중 최대 모듈성을 확정하고, 상기 최대 모듈성에 대응하는 이미지 조합 방식을 상기 그루핑될 이미지 집합에 대한 이미지 그루핑 결과로 확정한다.In step S208, when the set of images to be grouped includes a unique image group, in each iteration, the maximum modularity among the updated modularities is determined, and an image combination method corresponding to the maximum modularity is assigned to the set of images to be grouped. It is confirmed by the image grouping result for

설명해야 할 것은, 상기 이미지 그루핑 방법은 상술한 방법을 수행할 수 있는 임의의 소프트웨어, 하드웨어 환경에 설치될 수 있다. 예를 들어, 상기 소프트웨어, 하드웨어 환경은 퍼스널 PC, PAD, 서버와 같은 전자 기기일 수 있다. 또는, 상기 소프트웨어, 하드웨어 환경은 가상 시스템 등일 수 있다. 여기서 한정하지 않는다. 이하, 상술한 방법의 실행 주체가 전자 기기(이하, 기기로 약칭함)인 것을 예로 설명한다. It should be explained that the image grouping method can be installed in any software or hardware environment capable of performing the above method. For example, the software and hardware environment may be an electronic device such as a personal PC, PAD, and server. Alternatively, the software and hardware environment may be a virtual system or the like. Not limited here. Hereinafter, an example in which an execution subject of the above-described method is an electronic device (hereinafter, abbreviated as a device) will be described.

일부 실시예에서, 상기 그루핑될 이미지 집합은 3 차원 재구성 장면에서 그루핑될 이미지 시퀀스를 포함할 수 있다. 이해할 수 있는 것은, 모듈성을 계산할 때, 상기 그루핑될 이미지 집합은 하나의 네트워크로 간주될 수 있다. In some embodiments, the set of images to be grouped may include an image sequence to be grouped in a 3D reconstruction scene. Understandably, when calculating modularity, the set of images to be grouped can be considered as a network.

이해할 수 있는 것은, 실제 응용에서, 상기 기기는 상기 그루핑될 이미지 집합과 이에 포함된 이미지 간의 포함관계를 유지할 때, 일반적으로 상기 그루핑될 이미지 집합에 대응하는 하나의 그루핑될 이미지 식별자 집합을 유지한 후, 이미지에 대응하는 이미지 식별자를 상기 그루핑될 이미지 식별자 집합에 기입함으로써, 상기 그루핑될 이미지 집합과 이에 포함된 이미지 간의 포함관계를 유지한다. 상기 이미지 식별자는 상기 이미지에 대응하는 데이터 노드의 노드 식별자일 수 있다. It can be understood that, in practical application, when the device maintains the inclusive relationship between the set of images to be grouped and the images included therein, generally, after maintaining one set of image identifiers corresponding to the set of images to be grouped, By writing an image identifier corresponding to an image into the image identifier set to be grouped, an inclusive relationship between the image set to be grouped and the images included in the set is maintained. The image identifier may be a node identifier of a data node corresponding to the image.

상기 이미지 그룹은 상기 그루핑될 이미지 집합 중 몇몇 이미지로 구성될 수 있다. 이해할 것은, 모듈성을 계산할 때, 상기 이미지 그룹은 상기 네트워크에 대응하는 커뮤니티로 간주될 수 있다. 상기 이미지는 상기 네트워크 중 노드로 간주될 수 있다. The image group may be composed of some images of the set of images to be grouped. It should be understood that when calculating modularity, the group of images can be considered as a community corresponding to the network. The image may be regarded as a node of the network.

이해할 것은, 실제 응용에서, 상기 기기는 상기 그루핑될 이미지 집합과 이에 포함된 이미지 그룹 간의 포함관계를 유지할 때, 일반적으로 상기 그루핑될 이미지 집합에 대응하는 하나의 이미지 그룹 식별자 집합을 유지한 후, 포함된 이미지 그룹의 그룹 식별자를 상기 이미지 그룹 식별자 집합에 기입함으로써, 상기 그루핑될 이미지 집합과 이에 포함된 이미지 그룹 간의 포함관계를 유지한다. 상기 그룹 식별자는 상기 이미지 그룹에 대응하는 데이터 노드의 노드 식별자일 수 있다.It should be understood that, in practical application, when the device maintains an inclusive relationship between the set of images to be grouped and the image groups included therein, generally, after maintaining one set of image group identifiers corresponding to the set of images to be grouped, By writing a group identifier of an image group into the image group identifier set, an inclusion relationship between the image set to be grouped and the image groups included therein is maintained. The group identifier may be a node identifier of a data node corresponding to the image group.

이때, 한편으로, 상기 그루핑될 이미지 집합에 포함된 이미지 그룹을 확정해야 하면, 먼저 상기 이미지 그룹 식별자 집합에 포함된 각 그룹 식별자를 판독한 후, 상기 각 그룹 식별자에 대응하는 이미지 그룹을 상기 그루핑될 이미지 집합에 포함된 이미지 그룹으로 출력할 수 있다. At this time, on the other hand, if it is necessary to determine the image group included in the set of images to be grouped, first read each group identifier included in the set of image group identifiers, and then select the image group corresponding to each group identifier to be grouped. You can output as a group of images included in an image set.

다른 한편으로, 상기 그루핑될 이미지 집합에 포함된 임의의 두 개의 이미지 그룹에 대해 합병 조작을 수행하는 경우, 상기 이미지 그룹 식별자 집합에서 합병된 두 개의 이미지 그룹의 그룹 식별자를 삭제하고, 상기 합병 조작에 의해 생성된 합병 이미지 그룹의 그룹 식별자를 상기 이미지 그룹 식별자 집합에 기입하여, 상기 합병 조작을 완료할 수 있다. On the other hand, when performing a merging operation on any two image groups included in the set of images to be grouped, the group identifiers of the two merged image groups are deleted from the set of image group identifiers, and the merging operation The group identifier of the merged image group generated by the image group identifier may be written into the image group identifier set to complete the merge operation.

상기 기기는 상기 이미지 그룹과 이에 포함된 이미지 간의 포함관계를 유지할 때, 일반적으로 상기 이미지 그룹의 식별자와 이미지 그룹에 포함된 이미지에 대응하는 이미지 식별자 간의 대응관계를 유지할 수 있다. 예를 들어, 상기 기기는 상기 이미지 그룹에 대해 하나의 데이터 노드를 생성하고, 상기 이미지 그룹의 그룹 식별자를 상기 데이터 노드의 노드 식별자(노드 인덱스)로 할 수 있다. 다음, 상기 기기는 상기 이미지 그룹에 포함된 이미지에 대응하는 이미지 식별자를 상기 데이터 노드에 기입하여, 상기 이미지 그룹과 이에 포함된 이미지 간의 포함관계를 유지할 수 있다. When maintaining an inclusion relationship between the image group and images included in the image group, the device may generally maintain a correspondence relationship between an identifier of the image group and an image identifier corresponding to an image included in the image group. For example, the device may create one data node for the image group, and set a group identifier of the image group as a node identifier (node index) of the data node. Next, the device may write an image identifier corresponding to an image included in the image group to the data node to maintain an inclusion relationship between the image group and the images included in the image group.

일부 실시예에서, 상기 이미지 조합 방식은 매회의 반복에서 합병 단계를 한번 완료한 후, 상기 그루핑될 이미지 집합에 포함된 각 이미지의 조합 방식을 포함할 수 있다. In some embodiments, the image combination method may include a method of combining each image included in the set of images to be grouped after completing the merging step once in each iteration.

실제 응용에서, 일반적으로 각 이미지 그룹에 대응하는 그룹 식별자, 및 이미지에 대응하는 이미지 식별자를 정의할 수 있다. 다음, 각 그룹 식별자와 각 이미지에 대응하는 이미지 식별자 간의 대응관계를 기록하여 상기 이미지 조합 방식을 기록할 수 있다. In practical applications, it is generally possible to define a group identifier corresponding to each image group, and an image identifier corresponding to an image. Next, the image combination method may be recorded by recording a correspondence between each group identifier and an image identifier corresponding to each image.

예를 들어, 상기 그루핑될 이미지 집합이 10 개의 이미지를 포함하고 각각 이미지 식별자 0-9에 대응한다고 가정한다. 한번의 합병을 완료한 후, 상기 그루핑될 이미지 집합에 포함된 이미지 그룹의 식별자는 a, b, c, d이고, 상기 그룹 식별자 a는 상기 이미지 식별자 0-3에 대응하고, 상기 그룹 식별자 b는 상기 이미지 식별자 4-5에 대응하며, 상기 그룹 식별자 c는 상기 이미지 식별자 6에 대응하고, 상기 그룹 식별자 d는 상기 이미지 식별자 7-9에 대응한다고 가정한다. For example, it is assumed that the set of images to be grouped includes 10 images, each corresponding to image identifiers 0-9. After one-time merging is completed, identifiers of image groups included in the set of images to be grouped are a, b, c, and d, the group identifier a corresponds to the image identifiers 0-3, and the group identifier b It is assumed that the image identifier 4-5 corresponds, the group identifier c corresponds to the image identifier 6, and the group identifier d corresponds to the image identifier 7-9.

상술한 상황에서, 현재 그루핑될 이미지 집합에 포함된 각 이미지 조합 방식을 확정해야 한다고 가정할 때, 현재 그루핑될 이미지 집합에 포함된 그룹 식별자를 확정할 수 있다. 현재 포함된 그룹 식별자를 확정한 후, 상기 그룹 식별자와 상기 이미지 식별자의 대응관계를 검색하면, 현재 상기 그루핑될 이미지 집합에 포함된 이미지 그룹 방식이, 이미지 0-3이 하나의 이미지 그룹, 이미지 4-5가 하나의 이미지 그룹, 이미지 6이 하나의 이미지 그룹, 이미지 7-9가 하나의 이미지 그룹인 것을 확정할 수 있다. In the above situation, when it is assumed that each image combination method included in the current set of images to be grouped must be determined, a group identifier included in the set of images to be currently grouped can be determined. After determining the currently included group identifier, searching for a correspondence between the group identifier and the image identifier, the image group method currently included in the image set to be grouped is: image 0-3 is one image group, image 4 It can be determined that -5 is one image group, image 6 is one image group, and images 7-9 are one image group.

그루핑될 이미지 집합에 대해 이미지 그루핑을 수행할 때, 상기 기기는 그루핑될 이미지 집합 중 각 이미지를 각각 하나의 이미지 그룹으로 하여, 상기 그루핑될 이미지 집합에 대응하는 모듈성을 계산하는 S202 단계를 먼저 수행할 수 있다.When performing image grouping on a set of images to be grouped, the device first performs step S202 of calculating modularity corresponding to the set of images to be grouped by setting each image among the set of images to be grouped as one image group. can

실제 응용에서, 상기 기기는 먼저 상기 그루핑될 이미지 집합 중 각 이미지를 트래버스하고, 각 이미지를 유일한 이미지 식별자와 일대일로 대응시킬 수 있다. 다음, 상기 기기는 각 이미지 식별자에 대해 유일한 하나의 그룹 식별자를 대응시킬 수 있다. 이때, 상기 기기는 상기 각 그룹 식별자와 상기 이미지 식별자의 대응관계를 기록하여 상기 이미지 그룹과 상기 이미지의 대응관계를 기록할 수 있다. In practical application, the device may first traverse each image in the set of images to be grouped, and match each image with a unique image identifier on a one-to-one basis. Next, the device can match a unique group identifier to each image identifier. In this case, the device may record a correspondence between the image group and the image by recording a correspondence between each group identifier and the image identifier.

이해할 것은, 이 단계에서 상기 그루핑될 이미지 집합에 포함된 각 이미지가 각각 독립적으로 그룹을 구성하는 것으로 가정하였으므로, 상기 각 이미지에 대응하는 이미지 식별자는 상기 각 이미지에 대응하는 이미지 그룹의 그룹 식별자로 될 수 있다. It should be understood that in this step, since it is assumed that each image included in the set of images to be grouped independently constitutes a group, the image identifier corresponding to each image becomes the group identifier of the image group corresponding to each image. can

예를 들어, 상기 그루핑될 이미지 집합에는 10 개의 이미지가 포함된다. S202 단계를 구현할 때, 상기 기기는 먼저 이미지 식별자 0-9를 차례로 상기 10 개의 이미지에 일대일로 대응시킬 수 있다. 다음, 상기 기기는 상기 이미지의 개수와 동일한 개수의 데이터 노드(여기서, 상기 데이터 노드는 어레이의 형태로 기록될 수 있음)를 생성하고, 상기 데이터 노드를 상기 10 개의 이미지에 일대일로 대응시킬 수 있다. 그 후, 상기 기기는 상기 각 이미지에 대응하는 이미지 식별자를 각 이미지에 대응하는 데이터 노드의 노드 식별자(노드 인덱스)로 하고, 상기 각 이미지에 대응하는 이미지 식별자를 상기 각 이미지에 대응하는 데이터 노드에 기입할 수 있다. For example, the set of images to be grouped includes 10 images. In implementing step S202, the device may first map image identifiers 0-9 sequentially to the 10 images on a one-to-one basis. Next, the device may generate the same number of data nodes as the number of images (here, the data nodes may be recorded in the form of an array), and correspond the data nodes to the 10 images on a one-to-one basis . Then, the device sets the image identifier corresponding to each image as a node identifier (node index) of a data node corresponding to each image, and assigns an image identifier corresponding to each image to a data node corresponding to each image. can be entered.

이해할 것은, 이때, 상기 각 데이터 노드는 실제로 상기 10 개의 이미지에 일대일로 대응하기도 하고, 10 개의 이미지 그룹에 일대일로 대응하기도 하며, 이때 상기 10 개 이미지 그룹의 그룹 식별자는 0-9이다. It should be understood that, at this time, each data node actually corresponds to the 10 images one-to-one or to the 10-image group one-to-one, and the group identifier of the 10 image groups is 0-9.

도 3을 참조하면, 도 3은 본 발명의 실시예에 예시된 이미지 그루핑 장면의 예시도이다.Referring to FIG. 3 , FIG. 3 is an exemplary view of an image grouping scene according to an embodiment of the present invention.

도 3에 도시된 바와 같이, 예시된 이미지 그룹 장면은 상기 그루핑될 집합에 포함된 10 개의 이미지를 그루핑하는 것이다. 도 3에 도시된 각 데이터 노드 중 노드 식별자(노드 인덱스)는 상기 각 데이터 노드에 대응하는 이미지 그룹의 그룹 식별자이다. 상기 각 데이터 노드에는 상기 각 데이터 노드에 대응하는 이미지 그룹에 포함된 이미지에 대응하는 이미지 식별자가 기록된다. As shown in FIG. 3, the illustrated image group scene is to group 10 images included in the set to be grouped. A node identifier (node index) of each data node shown in FIG. 3 is a group identifier of an image group corresponding to each data node. An image identifier corresponding to an image included in an image group corresponding to each data node is recorded in each data node.

여기서 설명할 것은, 도 3에 도시된 데이터 노드 구성은 다만 예시적이며, 실제 응용에서 다양한 데이터 노드 구성을 포함할 수 있으며, 여기서 한정하지 않는다.What will be described herein is that the data node configuration shown in FIG. 3 is only exemplary, and may include various data node configurations in actual applications, but is not limited thereto.

그루핑될 이미지 집합 중 각 이미지를 각각 하나의 이미지 그룹으로 가정한 후, 상기 기기는 상기 공식 (1)에 따라 현재 이미지 조합 방식에서 상기 네트워크에 대응하는 모듈성

Figure pct00035
을 계산할 수 있다.After assuming each image among the set of images to be grouped as one image group, the device determines the modularity corresponding to the network in the current image combination method according to the above formula (1).
Figure pct00035
can be calculated.

실제 응용에서, 상기 모듈성

Figure pct00036
을 계산하기 전에, 상기 기기는 현재 이미지 조합 방식에서 각 이미지 그룹 간의 연결관계를 먼저 확정할 수 있다.In practical applications, the modularity
Figure pct00036
Before calculating , the device may first determine the connection relationship between each image group in the current image combination method.

여기서, 설명할 것은, 현재 각 이미지 그룹이 하나의 이미지를 포함하므로, 각 이미지 그룹 간의 연결관계를 확정하는 것은 상기 그루핑될 이미지 집합에 포함된 각 이미지 간의 연결관계를 확정하는 것에 해당된다. Here, it will be described that, since each image group currently includes one image, determining the connection relationship between each image group corresponds to determining the connection relationship between the respective images included in the image set to be grouped.

상술한 그루핑될 이미지에 포함된 각 이미지 간의 연결관계를 확정할 때, 상기 그루핑될 이미지에 포함된 각 이미지를 차례로 목표 이미지로 하고, 상기 목표 이미지와 상기 그루핑될 이미지에 포함된 다른 이미지 간의 유사도를 계산할 수 있다. When determining the connection relationship between each image included in the above-described image to be grouped, each image included in the image to be grouped is set as a target image in turn, and the similarity between the target image and other images included in the image to be grouped is determined. can be calculated

상기 목표 이미지와 어느 한 다른 이미지 간의 유사도를 획득한 후, 상기 목표 이미지와 해당 다른 이미지 간의 유사도가 사전 설정된 유사도 임계치(여기서, 상기 사전 설정된 유사도 임계치는 경험에 따라 설정될 수 있음)보다 큰지 여부를 더 확정할 수 있으며, 큰 경우, 상기 목표 이미지와 해당 다른 이미지 사이에 연결관계가 존재하는 것으로 간주하거나, 상기 목표 이미지와 해당 다른 이미지 사이에 변이 연결되는 것으로 간주할 수도 있다. 이때, 상기 목표 이미지와 해당 다른 이미지는 상기 변의 두 종점이다. After obtaining the similarity between the target image and any other image, it is determined whether the similarity between the target image and the other image is greater than a preset similarity threshold (wherein the preset similarity threshold may be set according to experience). It can be further determined, and if it is large, it may be considered that a connection relationship exists between the target image and the corresponding other image, or that the target image and the corresponding other image are connected. At this time, the target image and the corresponding other image are the two end points of the side.

임의의 두 개의 이미지 사이에 변이 존재하는 것으로 확정된 경우, 상기 두 개의 이미지 각각에 대응하는 이미지 그룹의 그룹 식별자의 대응관계를 상기 기기가 유지하는 인접 테이블에 기록할 수 있다. 예를 들어, 상기 도 3에 대응하는 이미지 그루핑 장면에서, 데이터 노드 0-9는 그루핑될 이미지 집합에 포함된 각 이미지 그룹 0-9에 일대일로 대응한다. 이때, 이미지 0과 이미지 1 사이에 변이 존재하는 것으로 확정된 경우, 그룹 식별자 0과 그룹 식별자 1 간의 대응관계를 상기 인접 테이블에 기록할 수 있다. When it is determined that there is a side between any two images, a correspondence relationship between group identifiers of image groups corresponding to each of the two images may be recorded in a contiguous table maintained by the device. For example, in the image grouping scene corresponding to FIG. 3 , data nodes 0 to 9 correspond to each image group 0 to 9 included in an image set to be grouped on a one-to-one basis. In this case, when it is determined that a side exists between image 0 and image 1, a correspondence between group identifier 0 and group identifier 1 may be recorded in the adjacency table.

여기서 설명할 것은, 상술한 인접 테이블을 유지하는 방법에서, 연결관계가 구비된 두 개의 이미지 그룹의 그룹 식별자의 대응관계는 두 번 기록될 수 있으므로, 여기서 중복제거 조작을 수행하여, 상기 인접 테이블에서 연결관계가 구비된 두 개의 이미지 그룹의 그룹 식별자의 대응관계가 한번만 기록되도록 보장할 수 있다. What will be described here is that in the method of maintaining the above-mentioned adjacency table, since the correspondence of group identifiers of two image groups having a connection relationship can be recorded twice, a duplicate removal operation is performed here, and the adjacency table It is possible to ensure that the correspondence of group identifiers of two image groups having a connection relationship is recorded only once.

통상의 기술자가 이해할 것은, 상기 그루핑될 집합에 포함된 각 이미지 간의 연결관계를 확인 완료한 후, 상기 인접 테이블은 현재 연결관계가 구비된 이미지 그룹의 그룹 식별자 간의 모든 대응관계를 기록한다. As will be understood by those skilled in the art, after checking the connection relationship between each image included in the set to be grouped, the adjacency table records all correspondence relationships between group identifiers of image groups having current connection relationships.

이때, 임의의 두 개의 이미지 그룹 간에 연결관계가 구비되는지 여부를 확정해야 하는 경우, 상기 인접 테이블에 상기 두 개의 이미지 그룹의 그룹 식별자의 대응관계가 기록되어 있는지 여부를 검색할 수 있다. 대응관계가 기록되어 있는 경우, 상기 두 개의 이미지 그룹이 연결관계가 구비된 것으로 간주할 수 있다. In this case, when it is necessary to determine whether a connection relationship exists between two arbitrary image groups, it may be searched whether a correspondence relationship between group identifiers of the two image groups is recorded in the adjacency table. If a correspondence relationship is recorded, it can be considered that the two image groups have a connection relationship.

어느 한 이미지 그룹의 진입 차수를 계산해야 하는 경우, 상기 인접 테이블에 기록된 대응관계 중에서 상기 이미지 그룹의 그룹 식별자의 대응관계를 포함하는 개수를 통계할 수 있다.When it is necessary to calculate the entry degree of an image group, the number of correspondences of group identifiers of the image group among correspondences recorded in the adjacency table may be counted.

예를 들어, 이미지 그룹 0의 진입 차수

Figure pct00037
을 계산하는 경우, 먼저 하나의 카운터(초기값은 0)를 설정할 수 있다. 다음, 상기 인접 테이블에 기록된 그룹 식별자 대응관계가 그룹 식별자 0을 포함하는지 여부를 트래버스한다. 상기 그룹 식별자 0의 대응관계가 검색될 때마다, 상기 카운터의 카운트는 1 씩 증가될 수 있다. 상기 인접 테이블의 검색을 완료한 후, 상기 카운터의 카운트를 판독하고, 상기 카운트를 이미지 그룹 0의 진입 차수
Figure pct00038
로 할 수 있다. For example, the in-order of image group 0
Figure pct00037
In the case of calculating , one counter (initial value is 0) can be set first. Next, whether or not the group identifier correspondence relationship recorded in the neighbor table includes the group identifier 0 is traversed. Whenever the correspondence of the group identifier 0 is searched, the count of the counter may be increased by one. After completing the search of the adjacency table, the count of the counter is read, and the count is the entry order of image group 0
Figure pct00038
can be done with

상기 그루핑될 이미지에 포함된 각 이미지 간의 연결관계에 대한 확인을 완료한 경우, 상기 기기는 각 이미지 그룹에 대응하는 진입 차수

Figure pct00039
를 계산할 수 있으며, 상기
Figure pct00040
은 이미지 그룹 i의 진입 차수를 가리킨다.When the confirmation of the connection relationship between each image included in the image to be grouped is completed, the device determines the entry degree corresponding to each image group.
Figure pct00039
can be calculated, and the
Figure pct00040
denotes the entry order of image group i.

각 이미지 그룹의 진입 차수 계산을 완료한 경우, 공식

Figure pct00041
에 따라, 상기 그루핑될 이미지 집합에 포함된 변의 개수를 산출할 수 있다. When you have finished calculating the in-order of each group of images, the formula
Figure pct00041
According to, the number of sides included in the image set to be grouped can be calculated.

다음, 상기 공식 (3)에 따라, 각 이미지 그룹에 대응하는

Figure pct00042
를 산출할 수 있으며, i는 0보다 크고 상기 그루핑될 이미지 집합에 포함된 이미지 수보다 작거나 같은 자연수이다. Next, according to the above formula (3), corresponding to each image group
Figure pct00042
Can be calculated, i is a natural number greater than 0 and less than or equal to the number of images included in the set of images to be grouped.

현재 각 이미지 그룹은 하나의 이미지를 포함하므로, 이때

Figure pct00043
는 0이다.Currently, each image group contains one image, so at this time
Figure pct00043
is 0.

Figure pct00044
Figure pct00045
의 계산이 완료된 경우, 공식 (1)에 따라, 상기 현재 이미지 조합 방식에서 상기 네트워크에 대응하는 모듈성
Figure pct00046
을 계산할 수 있다.
Figure pct00044
and
Figure pct00045
When the calculation of is completed, according to Formula (1), the modularity corresponding to the network in the current image combination method
Figure pct00046
can be calculated.

상기

Figure pct00047
을 산출한 경우, 상기 기기는 상기
Figure pct00048
을 기록할 수 있다. 실제 응용에서, 상기
Figure pct00049
은 임의의 형태로 기록될 수 있다. 예를 들어, 상기
Figure pct00050
은 도 3에 도시된 데이터 노드에 기록되거나, 하나의 어레이를 전문적으로 유지하여 상기
Figure pct00051
을 기록할 수 있다.remind
Figure pct00047
When calculating , the device
Figure pct00048
can be recorded. In practical applications, the
Figure pct00049
can be written in any form. For example, the
Figure pct00050
is written to the data node shown in FIG. 3, or specially maintained one array to
Figure pct00051
can be recorded.

S202 단계의 수행을 완료한 경우, 상기 기기는 상기 그루핑될 이미지 집합에 포함된 복수 개의 이미지 그룹을 둘씩 조합한다고 가정할 때 각 조합에 대응하는 모듈성의 증분을 각각 계산하여 증분 집합을 얻는 S204 단계를 계속하여 수행할 수 있다. When step S202 is completed, assuming that a plurality of image groups included in the image set to be grouped are combined by two, the device calculates increments of modularity corresponding to each combination to obtain an incremental set S204. can continue to do so.

실제 응용에서, 상기 기기는 상기 그루핑될 이미지 집합 중 각 이미지 그룹을 둘씩 조합하고, 획득된 각 조합에 대해, 상기 조합에 대응하는 이미지 그룹을 합병하는 것으로 가정한 후, 상기 모듈성의 증분을 계산하고, 계산하여 획득된 상기 증분을 기반으로 증분 집합을 생성할 수 있다. In actual application, it is assumed that the device combines each image group of the set of images to be grouped two by two, and for each obtained combination, merges the image group corresponding to the combination, then calculates the modularity increment; , a set of increments may be generated based on the increments obtained by calculating .

본 발명의 실시예에서, 상기 모듈성의 증분을 계산할 때, 상기 기기는 상기 그루핑될 이미지 집합에 포함된 임의의 두 개의 이미지 그룹을 먼저 조합한 후, 모든 가능한 조합 결과를 획득할 수 있다. 상기 조합 결과를 획득한 후, 각 조합 결과에 대해, 상기 조합 결과에 대응하는 두 개의 이미지 그룹이 연결관계가 구비되는지 여부를 먼저 확정한다(예를 들어, 상기 인접 테이블에 상기 두 개의 이미지 그룹의 그룹 식별자의 대응관계가 기록되어 있는지를 검색하여, 두 개의 이미지 그룹이 연결관계가 구비되는지 여부를 확정할 수 있다).In an embodiment of the present invention, when calculating the increment of modularity, the device may first combine any two image groups included in the to-be-grouped image set, and then obtain all possible combination results. After obtaining the combination result, for each combination result, it is first determined whether the two image groups corresponding to the combination result have a connection relationship (for example, in the adjacency table, the two image groups It is possible to determine whether a connection relationship between two image groups is provided by searching whether a correspondence relationship between group identifiers is recorded).

이때, 상기 조합 결과에 대응하는 두 개의 이미지 그룹이 연결관계가 구비되면, 연결관계가 구비된 경우, 연결관계가 구비된 상기 두 개의 이미지 그룹 사이의 변의 개수

Figure pct00052
는 1로 확정할 수 있다. 반면, 연결관계가 없는 상기 두 개의 이미지 그룹 사이의 변의 개수
Figure pct00053
는 0으로 확정할 수 있다.At this time, if the two image groups corresponding to the combination result have a connection relationship, if the connection relationship is provided, the number of sides between the two image groups having a connection relationship
Figure pct00052
can be determined as 1. On the other hand, the number of sides between the two image groups without a connection
Figure pct00053
can be set to 0.

상기 두 개의 이미지 그룹 사이의 변의 개수

Figure pct00054
를 확정한 후, 상기 기기는 상기 공식 (4)에 따라, 상기 조합에 대응하는 이미지 그룹을 합병하는 것으로 가정한 후 상기 모듈성의 증분
Figure pct00055
을 계산할 수 있으며, 상기 i, j는 0보다 크거나 같고 9보다 작거나 같은 정수이다.Number of sides between the two image groups
Figure pct00054
After determining , it is assumed that the device merges the image group corresponding to the combination, according to the above formula (4), and then the increment of the modularity.
Figure pct00055
Can be calculated, wherein i and j are integers greater than or equal to 0 and less than or equal to 9.

상기 증분

Figure pct00056
의 계산을 완료한 후, 상기 기기는 계산하여 획득된 상기 증분을 기반으로 증분 집합을 생성하고, 조합하는 것으로 가정된 두 개의 이미지 그룹의 그룹 식별자와, 상기 두 개의 이미지 그룹을 합병한 후, 계산하여 획득된 상기 증분의 대응관계를 기록할 수 있다.above increment
Figure pct00056
After completing the calculation of , the device generates an incremental set based on the incremental obtained by calculating, obtains a group identifier of two image groups assumed to be combined, merges the two image groups, and then calculates It is possible to record the correspondence of the increments obtained by doing so.

실제 응용에서, 상기 기기는 증분과 그룹 식별자 대응관계 테이블을 유지할 수 있으며, 모든 가능한 상기 조합과, 상기 조합에 대응하는 모든 가능한 이미지 그룹을 합병하는 것으로 가정한 후 산출된 상기 증분

Figure pct00057
의 대응관계를 상기 증분과 그룹 식별자 대응관계 테이블에 기록한다.In actual application, the device may maintain a table of correspondence between increments and group identifiers, and the increments calculated after assuming that all possible combinations and all possible image groups corresponding to the combinations are merged.
Figure pct00057
The correspondence of is recorded in the increment and group identifier correspondence table.

이로써, 상술한 이미지 그룹화 방법에 대한 준비 작업은 완료되었다.Thus, the preparation work for the above-described image grouping method has been completed.

다음 반복 단계에 진입한다. 일부 실시예에서, 상기 기기는 S206 단계를 수행하여, 상기 증분 집합에 포함된 상기 최대 증분을 확정하고, 상기 최대 증분에 대응하는 기록된 두 개의 이미지 그룹을 합병하며, 합병 후 상기 모듈성을 업데이트하고, 합병 후 상기 증분 집합을 업데이트하는 단계를, 상기 그루핑될 이미지 집합에 유일한 이미지 그룹이 포함될 때까지, 반복적으로 수행한다. Enter the next iteration step. In some embodiments, the device performs step S206 to determine the maximum increment included in the increment set, merge two groups of recorded images corresponding to the maximum increment, and update the modularity after merging. , the step of updating the incremental set after merging is repeatedly performed until a unique image group is included in the set of images to be grouped.

본 발명의 실시예에서, 상기 증분 집합에 포함된 최대 증분을 확정할 때, 상기 기기는 상기 증분 집합을 검색하여, 모든 증분을 획득할 수 있다. 다음, 상기 기기는 모든 증분을 둘씩 비교하여 상기 증분 집합 중 최대 증분을 확정할 수 있다. In an embodiment of the present invention, when determining the maximum increment included in the increment set, the device may search the increment set to obtain all increments. Next, the device may compare every increment two by two to determine the largest increment of the set of increments.

최대 증분을 확정한 후, 상기 기기는 상기 증분과 그룹 식별자의 대응관계를 검색하여, 상기 최대 증분에 대응하는 두 개의 이미지 그룹을 확정할 수 있다. 상기 두 개의 이미지 그룹을 확정한 후, 상기 기기는 상기 두 개의 이미지 그룹을 합병할 수 있다. After determining the maximum increment, the device may search for a correspondence between the increment and the group identifier, and determine two image groups corresponding to the maximum increment. After determining the two image groups, the device may merge the two image groups.

실제 응용에서, 상기 두 개의 이미지 그룹을 합병할 때, 상기 기기는 두 개의 이미지 그룹을 합병하여 합병 이미지 그룹을 획득할 수 있다. 다음, 상기 기기는 상기 그루핑될 이미지 집합에 대응하는 이미지 그룹 식별자 집합에서 합병된 두 개의 이미지 그룹의 그룹 식별자를 삭제하고, 상기 합병 조작에 의해 생성된 합병 이미지 그룹의 그룹 식별자를 상기 이미지 그룹 식별자 집합에 기입할 수 있다. 이해할 것은, 이때, 상기 이미지 그룹 식별자 집합에는 상기 합병 이미지 그룹의 그룹 식별자, 및 합병되지 않은 다른 이미지 그룹의 그룹 식별자가 포함된다. In practical application, when merging the two image groups, the device may merge the two image groups to obtain a merged image group. Next, the device deletes the group identifiers of the two merged image groups from the image group identifier set corresponding to the image set to be grouped, and assigns the group identifier of the merged image group generated by the merging operation to the image group identifier set. can be entered in It should be understood that, at this time, the image group identifier set includes the group identifier of the merged image group and the group identifier of other non-merged image groups.

예를 들어, 상기 그루핑될 이미지 집합이 그룹 식별자가 0-9인 10 개의 이미지 그룹을 포함하고 상기 최대 증분에 대응하는 상기 두 개의 이미지 그룹의 그룹 식별자가 0 및 1이라고 가정한다. 상기 두 개의 이미지 그룹을 합병한 후 획득된 합병 이미지 그룹의 그룹 식별자는 a이다. 이때, 상기 두 개의 이미지 그룹을 합병한 후, 현재 상기 그루핑될 이미지에 포함된 이미지 그룹은 그룹 a, 및 그룹 2-9를 포함한다. For example, assume that the set of images to be grouped includes 10 image groups with group identifiers 0-9, and the group identifiers of the two image groups corresponding to the maximum increment are 0 and 1. A group identifier of the merged image group obtained after merging the two image groups is a. At this time, after merging the two image groups, the image groups currently included in the image to be grouped include group a and groups 2-9.

상기 합병을 완료한 후, 상기 그루핑될 집합에 포함된 이미지 그룹에 변화가 발생하였으므로, 상기 그루핑될 집합의 상기 모듈성을 업데이트해야 한다. After completing the merging, since a change has occurred in the image group included in the set to be grouped, the modularity of the set to be grouped needs to be updated.

상기 그루핑될 집합의 상기 모듈성을 업데이트할 때, 상기 기기는 상기 기기가 기록한

Figure pct00058
에 이번 합병에 대응하는 최대 증분을 더하여, 업데이트된 상기 모듈성을 획득할 수 있다. When updating the modularity of the set to be grouped, the device records the
Figure pct00058
The updated modularity can be obtained by adding the maximum increment corresponding to this merger to .

현재 모듈성에 대한 업데이트를 완료한 경우, 상기 기기는 상기 각 이미지 그룹이 지시하는 이미지 조합 형태와 상기 모듈성을 관련하여 기록할 수 있다. When updating of the current modularity is completed, the device may record the image combination type indicated by each image group and the modularity.

상기 합병을 완료한 경우, 신규 합병 이미지 그룹을 생성하므로, 증분 집합을 업데이트해야 한다. When the above merging is completed, since a new merged image group is created, the incremental set needs to be updated.

실제 응용에서, 상기 증분 집합을 업데이트하는 경우, 상기 합병 이미지 그룹과, 상기 그루핑될 이미지 집합에 포함된 각 다른 이미지 그룹을 합병하는 것으로 가정할 때 상기 모듈성의 증분을 먼저 계산할 수 있다. In a practical application, when updating the incremental set, the increment of the modularity may be first calculated assuming that the merged image group and each other image group included in the image set to be grouped are merged.

상기 증분을 산출한 후, 상기 기기는 상기 증분을 상기 증분 집합에 기록하고, 합병된 상기 두 개의 이미지 그룹 중 어느 한 이미지 그룹의 그룹 식별자에 대응하는 상기 증분을 삭제할 수 있다. After calculating the increment, the device may record the increment in the increment set, and delete the increment corresponding to the group identifier of any one of the two merged image groups.

상기 증분을 업데이트한 후, 상기 기기는 또한, 상기 합병 이미지 그룹 및 상기 다른 이미지 그룹의 그룹 식별자와, 상기 합병 이미지 그룹과 상기 다른 이미지 그룹을 합병하는 것으로 가정하고 산출된 상기 증분의 대응관계를, 상기 기기에 의해 유지되는 증분과 그룹 식별자의 대응관계 테이블에 기록할 수 있다.After updating the increment, the device further establishes a correspondence between group identifiers of the merged image group and the other image group and the increment calculated assuming that the merged image group and the other image group are merged; It can be recorded in a table of correspondence between increments and group identifiers maintained by the device.

모듈성 및 증분 집합에 대한 업데이트를 완료한 경우, 상기 그루핑될 이미지 집합에 유일한 이미지 그룹이 포함될 때까지, 상기 S206 단계를 반복할 수 있다. When updating of the modularity and incremental sets is completed, the step S206 may be repeated until a unique image group is included in the set of images to be grouped.

상기 그루핑될 이미지 집합에 유일한 이미지 그룹이 포함되는 경우, 상기 기기는 기록된 매회의 반복에서, 업데이트된 모듈성 중 최대 모듈성을 확정하고, 상기 최대 모듈성에 대응하는 이미지 조합 방식을 상기 그루핑될 이미지 집합에 대한 이미지 그루핑 결과로 확정할 수 있다. When a unique image group is included in the set of images to be grouped, the device determines the maximum modularity among the updated modularities in each recorded iteration, and assigns an image combination method corresponding to the maximum modularity to the set of images to be grouped. It can be confirmed as the result of image grouping for

이 단계에서, 상기 최대 모듈성을 확정하는 경우, 상기 기기는 상기 최대 모듈성에 대응하는 해당 반복을 먼저 확정할 수 있다. 다음, 상기 기기는 해당 반복에서 합병 조작을 수행한 후, 상기 이미지 그룹 식별자 집합에 포함된 각 그룹 식별자를 판독하고, 상기 각 그룹에 대응하는 이미지 그룹에 대응하는 이미지 조합 방식을 상기 그루핑될 이미지 집합에 대한 이미지 그루핑 결과로 확정할 수 있다. In this step, when determining the maximum modularity, the device may first determine a corresponding iteration corresponding to the maximum modularity. Next, the device performs a merging operation in the corresponding iteration, reads each group identifier included in the image group identifier set, and determines an image combining method corresponding to an image group corresponding to each group as the set of images to be grouped. It can be determined as an image grouping result for .

상술한 기술적 방안으로부터 알 수 있듯이, 한편으로, 상기 방법은 매회의 반복 단계에서 최대 모듈성의 증분에 대응하는 두 개의 이미지 그룹을 합병하여, 매번 합병 후 이미지의 조합 방식이 이번 합병에서 이룰 수 있는 최적 조합 방식인 것을 보장한다.As can be seen from the above technical solution, on the one hand, the method merges the two image groups corresponding to the increment of the maximum modularity in each iteration step, so that the image combination method after each merge is the optimum that can be achieved in this merger. Assured that it is a combination method.

다른 한편으로, 합병하여 하나의 이미지 그룹만 남은 경우, 상기 방법은 기록된 매회의 반복에서 업데이트된 모듈성을 추적하여, 상기 모듈성 중 최대 모듈성을 확정하고 상기 최대 모듈성에 대응하는 이미지 조합 방식을 상기 그루핑될 이미지 집합에 대한 이미지 그루핑 결과로 확정할 수 있으므로, 이미지 그룹을 합병하는 과정에서 나타난 최적 이미지 조합 방식을 상기 그루핑될 이미지 집합에 대한 이미지 그루핑 결과로 확정할 수 있도록 보장할 수 있다. 그룹의 분할을 통해 각 그룹 내부의 이미지 간의 연결관계가 비교적 강하고 각 그룹 내부의 이미지와 다른 그룹의 이미지 간의 연결관계가 비교적 약하여, 이미지 그루핑의 정확도를 향상시킴으로써, 이미지 그루핑을 기반으로 3 차원 재구성을 수행하는 로버스트를 향상시킨다.On the other hand, if only one image group remains after merging, the method tracks the updated modularity in each recorded iteration, determines the maximum modularity among the modularities, and determines the image combination method corresponding to the maximum modularity for the grouping. Since the result of image grouping for the set of images to be grouped can be determined, it is possible to ensure that the optimal image combination method shown in the process of merging image groups can be determined as the result of grouping the image for the set of images to be grouped. Through the division of groups, the connection between the images in each group is relatively strong and the connection between the images inside each group and the images in other groups is relatively weak, thereby improving the accuracy of image grouping, thereby enabling 3D reconstruction based on image grouping. Improve the robustness you perform.

본 발명에 따른 일부 실시예에서, 이미지 그룹의 안정성을 향상시키기 위해, 상기 최대 모듈성에 대응하는 이미지 조합 방식을 상기 그루핑될 이미지 집합에 대한 이미지 그루핑 결과로 확정하는 단계에서, 상기 최대 모듈성이 사전 설정된 임계치에 도달하였는지 여부를 확정하고, 상기 최대 모듈성이 상기 사전 설정된 임계치에 도달한 경우, 상기 최대 모듈성에 대응하는 이미지 조합 방식을 상기 그루핑될 이미지 집합에 대한 이미지 그루핑 결과로 확정할 수 있다. 여기서 설명할 것은, 상기 사전 설정된 임계치에 도달한 것은 사전 설정된 임계치보다 크거나, 또는 크거나 같은 것을 가리킬 수 있으며, 여기서 실제 상황에 따라 설정할 수 있다. In some embodiments according to the present invention, in the step of determining an image combination method corresponding to the maximum modularity as an image grouping result for the set of images to be grouped, in order to improve the stability of the image group, the maximum modularity is preset. It is determined whether a threshold is reached, and when the maximum modularity reaches the preset threshold, an image combination method corresponding to the maximum modularity may be determined as an image grouping result for the image set to be grouped. What will be described here is that reaching the preset threshold may refer to being greater than or equal to or greater than the preset threshold, which may be set according to actual circumstances.

일부 실시예에서, 상기 사전 설정된 임계치는 개발자에 의해 경험에 따라 설정된, 그루핑 결과의 안정성 평가 표준과 관련된 임계치일 수 있다. 상기 임계치가 높을수록, 그루핑 결과에 대한 안정성 요구가 높은 것을 설명한다. In some embodiments, the preset threshold may be a threshold related to a stability evaluation standard of a grouping result set by a developer according to experience. The higher the threshold value, the higher the stability requirement for grouping results.

따라서, 상기 최대 모듈성이 사전 설정된 임계치에 도달하였는지 여부를 확정하는 경우, 상기 모듈성이 상기 사전 설정된 임계치에 도달한 경우, 현재의 이미지 조합 방식이 사전 설정된 안정성 표준에 도달하였음을 설명하며, 이때 상기 최대 모듈성에 대응하는 이미지 조합 방식을 상기 그루핑될 이미지 집합에 대한 이미지 그루핑 결과로 확정할 수 있다. Therefore, when determining whether the maximum modularity reaches the preset threshold, if the modularity reaches the preset threshold, it is explained that the current image combination method has reached the preset stability criterion; An image combination method corresponding to modularity may be determined as an image grouping result for the image set to be grouped.

상기 모듈성이 상기 사전 설정된 임계치에 도달하지 않은 경우, 이번 그루핑 과정에서, 최대 모듈성에 대응하는 이미지 그루핑 방식이 사전 설정된 안전성 표준에 도달하지 않은 것을 설명하며, 이때 상기 그루핑될 이미지 집합에 포함된 각 이미지를 독립된 이미지 그룹으로 할 수 있다. If the modularity does not reach the preset threshold, in this grouping process, it is explained that the image grouping method corresponding to the maximum modularity does not reach the preset safety standard, and at this time, each image included in the image set to be grouped can be made into an independent image group.

본 발명에 따른 일부 실시예에서, 이미지 그루핑 방법의 연산량을 감소하여 이미지 그루핑 효율을 향상시키기 위해, 상술한 S204-S208 단계는 아래의 과정을 수행하는 것을 통해 구현될 수 있다. In some embodiments according to the present invention, in order to improve image grouping efficiency by reducing the amount of calculation of the image grouping method, the above-described steps S204 to S208 may be implemented by performing the following process.

일부 실시예에서, 상기 기기는 S204 단계를 수행하여, 상기 그루핑될 이미지 집합 중 복수 개의 이미지 그룹을 둘씩 조합하는 경우, 연결관계가 구비된 이미지 그룹을 둘씩 조합할 수 있다. In some embodiments, when performing step S204 to combine a plurality of image groups of the image set to be grouped by two, the device may combine image groups having a connection relationship by two.

다음, 획득된 각 조합에 대해, 상기 조합에 대응하는 이미지 그룹을 합병한 후, 상기 증분

Figure pct00059
을 계산한다(상기
Figure pct00060
를 계산하는 단계는 상술한 상황과 유사함). 설명할 것은, 상술한 상황에서, 연결관계가 없는 두 개의 이미지 그룹을 합병한 후, 상기 모듈성의 증분을 0으로 설정할 수 있다.Next, for each combination obtained, after merging the image group corresponding to the combination, the increment
Figure pct00059
Calculate (above
Figure pct00060
The step of calculating is similar to the situation described above). It should be noted that, in the above situation, after merging two image groups having no connection relationship, the increment of the modularity may be set to zero.

상기 단계를 통해 연결관계가 없는 두 개의 이미지 그룹을 합병한 후 상기 모듈성의 증분을 계산하지 않아도 되므로 상기 증분을 계산하는 연산량이 감소되며 이미지 그루핑 효율을 높일 수 있다는 것을 어렵지 않게 알 수 있다.After merging two image groups having no connection through the above step, it is not necessary to calculate the increment of the modularity, so it is not difficult to see that the amount of calculation for calculating the increment is reduced and the image grouping efficiency can be increased.

상기 증분의 계산을 완료한 경우, 계산하여 획득된 상기 증분을 기반으로 증분 집합을 생성하고, 각 조합된 두 개의 이미지 그룹의 그룹 식별자와, 각 조합된 상기 모듈성의 증분 사이의 대응관계를 기록할 수 있다. When the calculation of the increment is completed, an increment set is generated based on the increment obtained by the calculation, and a correspondence relationship between the group identifier of each combined two image groups and each combined increment of the modularity is recorded. can

본 실시예에서, 상기 증분 집합은 행렬 형태로 저장될 수 있다. 실제 응용에서, 상기 기기는 상기 증분 집합을 생성할 때, 하나의 n*n 행렬을 유지할 수 있다. In this embodiment, the incremental set may be stored in matrix form. In practical application, the device may maintain one n*n matrix when generating the incremental set.

여기서, 상기 n*n 행렬 중 각 요소는 상기 요소의 소속 행과 소속 열에 각각 대응하는 이미지 그룹을 합병하고, 계산하여 획득된 상기 증분을 가리킬 수 있다. 상기 n은 상기 그루핑될 이미지 집합에 포함된 이미지 수이다. 설명할 것은, 연결관계가 구비된 이미지 쌍의 개수는 일반적으로 적으므로, 계산의 편리를 위해, 상기 행렬은 희소 행렬일 수 있다.Here, each element of the n*n matrix may indicate the increment obtained by merging and calculating image groups respectively corresponding to the row and column belonging to the element. The n is the number of images included in the image set to be grouped. It will be explained that since the number of image pairs having a connection relationship is generally small, the matrix may be a sparse matrix for convenience of calculation.

예를 들어, 도 3에 도시된 이미지 그루핑 장면에서, 10*10의 희소 행렬 T를 통해 상기 증분 집합을 기록할 수 있다. 도 4를 참조하면, 도 4는 본 발명의 실시예에 예시된 증분 집합의 예시도이다. 도 4에 도시된 바와 같이, 상기 희소 행렬 T에 포함된 요소

Figure pct00061
는, 상기 요소의 소속 행 및 상기 열에 각각 대응하는 이미지 그룹 i와 이미지 그룹 j를 합병하는 것으로 가정한 후, 계산하여 획득된 상기 증분
Figure pct00062
를 가리키며, 여기서 상기 i, j는 0보다 크거나 같고 9보다 작거나 같은 정수이다. For example, in the image grouping scene shown in FIG. 3, the incremental set may be recorded through a 10*10 sparse matrix T. Referring to Fig. 4, Fig. 4 is an exemplary diagram of an incremental set illustrated in an embodiment of the present invention. As shown in FIG. 4, elements included in the sparse matrix T
Figure pct00061
is the increment obtained by calculating after assuming that image group i and image group j corresponding to the row and column belonging to the element are merged, respectively.
Figure pct00062
, where i and j are integers greater than or equal to 0 and less than or equal to 9.

본 실시예에서, n*n 행렬을 유지하여 상기 증분을 기록하는 경우, 상기 기기는 먼저 각 이미지 그룹에 대해 대응하는 이진 트리(예를 들어, 평형 이진 트리)를 생성할 수 있다. 또한, 증분 집합 중 각 증분을 산출한 경우, 해당 증분을 계산할 때 조합되는 것으로 가정된 두 개의 이미지 그룹을 확정한다. 다음, 상기 기기는 먼저 상기 조합되는 것으로 가정된 두 개의 이미지 그룹 중 제1 이미지 그룹에 대해, 제1 이미지 그룹에 대응하는 이진 트리를 확정하고, 상기 증분, 및 상기 두 개의 이미지 그룹의 그룹 식별자를 제1 이미지 그룹에 대응하는 이진 트리의 노드에 기록하며; 상기 조합되는 것으로 가정된 두 개의 이미지 그룹 중 제2 이미지 그룹에 대해, 제2 이미지 그룹에 대응하는 이진 트리를 확정하고, 상기 증분, 및 상기 두 개의 이미지 그룹의 그룹 식별자를 제2 이미지 그룹에 대응하는 이진 트리의 노드에 기록한다. In this embodiment, when maintaining an n*n matrix to record the increments, the device may first generate a corresponding binary tree (eg, a balanced binary tree) for each group of images. In addition, when each increment of the set of increments is calculated, two image groups assumed to be combined when calculating the increment are determined. Then, for a first image group of the two image groups assumed to be combined, the device first determines a binary tree corresponding to the first image group, and determines the increment and the group identifier of the two image groups. write to the node of the binary tree corresponding to the first image group; For a second image group of the two image groups assumed to be combined, a binary tree corresponding to the second image group is determined, and the increment and the group identifier of the two image groups correspond to the second image group. write to the node of the binary tree that

모든 상기 증분에 대해 기록을 완료한 경우, 각 이미지 그룹에 대응하는 이진 트리의 루트 노드에는 각 이진 트리에 기록된 상기 증분 중 최대 증분 및 상기 최대 증분에 대응하는 그룹 식별자가 기록된다.When recording is completed for all the increments, the largest increment among the increments recorded in each binary tree and the group identifier corresponding to the maximum increment are recorded at the root node of the binary tree corresponding to each image group.

예를 들어, 현재 하나의 증분

Figure pct00063
을 산출하였다고 가정하면, 상기 기기는 현재 조합되는 것으로 가정된 것이 이미지 그룹 i 및 이미지 그룹 j인 것을 확정할 수 있다. 다음, 상기 기기는 이미지 그룹 i 및 이미지 그룹 j에 대응하는 이진 트리를 각각 확정할 수 있다. 상기 이진 트리를 확정한 후, 상기 기기는 상기 증분
Figure pct00064
이 상기 이진 트리의 루트 노드에 기록된 증분보다 큰지 여부를 확정할 수 있으며, 큰 경우, 상기 증분
Figure pct00065
, 및 그룹 식별자 i 및 그룹 식별자 j를 상기 이진 트리의 루트 노드에 기입할 수 있다. For example, currently one increment
Figure pct00063
Assuming that n has been calculated, the device can determine that image group i and image group j are currently assumed to be combined. Next, the device may determine binary trees corresponding to image group i and image group j, respectively. After determining the binary tree, the device increments the
Figure pct00064
is greater than the increment recorded at the root node of the binary tree; if greater, the increment
Figure pct00065
, and group identifier i and group identifier j can be written to the root node of the binary tree.

여기서 설명할 것은, 루트 노드를 제외한 상기 이진 트리의 다른 노드를 유지하는 경우, 임의의 방식에 따라 유지할 수 있으며, 여기서 한정하지 않는다. 물론, 노드 검색의 편리를 위해, 루트 노드를 제외한 상기 이진 트리의 다른 노드를 유지하는 경우, 증분에 대응하는 두 개의 그룹 식별자 중에서, 그룹 식별자 i를 제외한 다른 그룹 식별자의 크기 순서에 따라 유지할 수 있다. What will be described here is that, in the case of maintaining other nodes of the binary tree except for the root node, they can be maintained according to an arbitrary method, but are not limited thereto. Of course, for the convenience of node search, when maintaining other nodes of the binary tree except for the root node, among the two group identifiers corresponding to the increment, other group identifiers other than group identifier i may be maintained according to the size order. .

도 5를 참조하면, 도 5는 본 발명의 실시예에 예시된 평형 이진 트리의 예시도이다. 도 5에 도시된 바와 같이, 상기 평형 이진 트리는 상기 이미지 그룹 i에 대응한다. 상기 평형 이진 트리의 루트 노드에는, 그룹 식별자 i에 대응하는 상기 증분 중 최대 증분

Figure pct00066
, 및 상기 증분
Figure pct00067
을 계산할 때 조합되는 것으로 가정된 두 개의 이미지 그룹의 그룹 식별자 i 및 j가 기록된다.Referring to Figure 5, Figure 5 is an exemplary diagram of a balanced binary tree illustrated in an embodiment of the present invention. As shown in Fig. 5, the balanced binary tree corresponds to the image group i. At the root node of the balanced binary tree, the largest increment among the increments corresponding to the group identifier i
Figure pct00066
, and the increment
Figure pct00067
The group identifiers i and j of the two image groups assumed to be combined when calculating ? are recorded.

설명할 것은, 도 5에 도시된 평형 이진 트리, 및 상기 평형 이진 트리의 노드의 구성은 다만 예시적이다. 실제 응용에서, 상기 평형 이진 트리, 상기 노드의 구성은 실제 상황에 따라 설정될 수 있으며, 여기서 한정하지 않는다. To be explained, the balanced binary tree shown in Fig. 5 and the configuration of nodes of the balanced binary tree are merely exemplary. In actual application, the balanced binary tree and the configuration of the nodes may be set according to actual situations, but are not limited thereto.

각 상기 조합에 대해, 상기 조합에 대응하는 이미지 그룹을 합병하는 것으로 가정하고 계산하여 상기 증분을 계산하며, 계산하여 획득된 각 증분을 상응하는 이진 트리에 기입한 후, 상기 증분 집합의 생성을 완료한다. For each of the combinations, it is assumed that the image group corresponding to the combination is merged, and the increment is calculated, and each increment obtained by the calculation is written into the corresponding binary tree, and then the generation of the increment set is completed. do.

본 실시예에서 상술한 방식으로 증분 집합을 생성하여 적어도 아래와 같은 효과가 있는 것을 어렵지 않게 알 수 있다. In this embodiment, it is not difficult to see that by generating incremental sets in the above-described manner, at least the following effects are obtained.

한편으로, 각 이미지 그룹에 대해 대응하는 이진 트리를 각각 생성하여, 실제로 동일한 증분에 대해, 상기 증분에 대응하는 두 개의 이미지 그룹 각각의 이진 트리에 각각 기록한다. 이때, 각 이미지 그룹 중 두 개의 이미지 그룹을 하나의 합병 이미지 그룹으로 합병한 후, 상기 합병 이미지 그룹에 대응하는 상기 증분을 기록하면, 상기 합병 이미지 그룹에 대해 하나의 신규 이진 트리를 유지할 필요가 없으며, 상기 증분을 상기 합병 이미지 그룹에 대응하는 다른 이미지 그룹의 이진 트리에 기록할 수 있으며, 이에 따라, 합병 이미지 그룹에 대응하는 상기 증분을 기록할 때의 연산량을 감소할 수 있으며, 이미지 그루핑 효율을 더 향상시킬 수 있다. On the one hand, we create a corresponding binary tree for each group of images, respectively, and actually write to the binary tree of each of the two image groups corresponding to the increment, for the same increment. At this time, after merging two image groups of each image group into one merged image group, and then recording the increment corresponding to the merged image group, there is no need to maintain a new binary tree for the merged image group. , The increment can be written to a binary tree of another image group corresponding to the merged image group, thereby reducing the amount of calculation when recording the increment corresponding to the merged image group, and improving image grouping efficiency. can be further improved.

다른 한편으로, 상기 이진 트리의 루트 노드에 기록된 것은 각 이미지 그룹이 상기 증분의 최대치에 대응하는 것이므로, 후속 반복 단계에서 증분 집합의 최대 증분을 확정할 때, 각 이미지 그룹에 대응하는 이진 트리의 루트 노드에 기록된 증분만 비교하면 되므로, 상기 최대 증분을 확정하는 효율을 향상시키고, 이에 따라 이미지 그루핑 효율을 더 향상시킬 수 있다. On the other hand, what is written to the root node of the binary tree is that each image group corresponds to the maximum of the increment, so when determining the maximum increment of the increment set in the subsequent iteration step, the binary tree corresponding to each image group Since only the increment recorded in the root node needs to be compared, the efficiency of determining the maximum increment can be improved, and thus the image grouping efficiency can be further improved.

이로써, 상술한 이미지 그룹화 방법에 대한 준비 작업은 완료되었다.Thus, the preparation work for the above-described image grouping method has been completed.

다음 반복 단계에 진입한다. 일부 실시예에서, 상기 기기는 S206 단계를 수행하여, 상기 증분 집합 중 최대 증분을 확정하고 상기 최대 증분에 대응하는 두 개의 이미지 그룹을 합병하여 합병 이미지 그룹을 획득하며 상기 그루핑될 이미지 집합에 대응하는 모듈성 및 상기 증분 집합을 업데이트하는 단계를, 상기 그루핑될 이미지 집합에 유일한 이미지 그룹이 포함될 때까지 반복적으로 수행할 수 있다. Enter the next iteration step. In some embodiments, the device performs step S206 to determine a maximum increment in the increment set, merge two image groups corresponding to the maximum increment to obtain a merged image group, and Modularity and the step of updating the incremental set may be performed repeatedly until a unique image group is included in the set of images to be grouped.

본 실시예에서, 상기 증분 집합에 포함된 최대 증분을 확정하는 경우, 최대 힙(최대 힙 중 각 부모 노드에 대응하는 값은 모두 왼쪽 및 오른쪽 자식 노드에 대응하는 값보다 크거나 같음)을 사용하여 상기 최대 증분을 도출할 수 있다. In this embodiment, when determining the maximum increment included in the set of increments, use the maximum heap (the values corresponding to each parent node of the maximum heap are all greater than or equal to the values corresponding to the left and right child nodes) The maximum increment can be derived.

예를 들어, 상기 증분 집합에 포함된 최대 증분을 확정할 때, 상기 기기는 각 이진 트리의 루트 노드에 대응하는 포인터를 유지되는 최대 힙에 푸시할 수 있다. 다음, 상기 기기는 상기 최대 힙의 루트 노드에 기록된 포인트를 판독하며, 상기 포인터가 판독되면, 상기 포인터가 지시하는 노드에 기록된 증분을 상기 최대 증분으로 확정할 수 있다. For example, upon ascertaining the maximum increment included in the set of increments, the device may push a pointer corresponding to the root node of each binary tree to the maximum heap maintained. Next, the device reads a point recorded in the root node of the maximum heap, and when the pointer is read, an increment recorded in a node indicated by the pointer may be determined as the maximum increment.

각 부모 노드에 대응하는 값이 모두 왼쪽 및 오른쪽 자식 노드에 대응하는 값보다 크거나 같은 최대 힙의 특성 상, 최대 힙의 루트 노드에 기록된 것은 상기 최대 힙에 유지되는 최대치인 것을 어렵지 않게 알 수 있다. 이로부터 알 수 있듯이, 상기 최대 힙의 루트 노드에 기록된 포인트를 판독하고, 상기 포인터가 읽어지면, 상기 포인터가 지시하는 노드에 기록된 증분을 확정하여, 상기 증분 집합 중 최대 증분을 확정할 수 있다.Due to the nature of the maximum heap, where the values corresponding to each parent node are greater than or equal to the values corresponding to the left and right child nodes, it is not difficult to see that the maximum value recorded in the root node of the maximum heap is the maximum value maintained in the maximum heap. there is. As can be seen from this, the point recorded in the root node of the maximum heap is read, and when the pointer is read, the increment recorded in the node pointed to by the pointer is determined, thereby determining the maximum increment among the set of increments. there is.

상기 증분 집합에 포함된 최대 증분이 확정된 경우, 상기 기기는 먼저 상기 최대 증분에 대응하는 두 개의 이미지 그룹을 확정할 수 있다. When the maximum increment included in the increment set is determined, the device may first determine two image groups corresponding to the maximum increment.

본 실시예에서, 상기 기기는 상기 포인터가 지시하는 노드에 기록된 그룹 식별자를 검색하여 상기 두 개의 이미지 그룹을 확정할 수 있다. In this embodiment, the device may determine the two image groups by searching for a group identifier recorded in a node indicated by the pointer.

예를 들어, 상기 포인터가 지시하는 노드가 상기 도 5에 도시된 이진 트리의 루트 노드라고 가정한다. 계속하여 도 5를 참조하면, 이때, 상기 최대 증분에 대응하는 두 개의 이미지 그룹을 그룹 i 및 그룹 j로 확정할 수 있다. For example, it is assumed that the node indicated by the pointer is the root node of the binary tree shown in FIG. 5 . Continuing to refer to FIG. 5 , at this time, two image groups corresponding to the maximum increment may be determined as group i and group j.

상기 최대 증분에 대응하는 두 개의 이미지 그룹을 확정한 후, 상기 기기는 상기 두 개의 이미지를 합병하며, 합병한 후, 합병 이후 획득된 합병 이미지 그룹, 및 상기 합병 이미지 그룹의 그룹 식별자와 합병된 상기 두 개의 이미지 그룹의 그룹 식별자 간의 대응관계를 기록한다.After determining the two image groups corresponding to the maximum increment, the device merges the two images, and after merging, the merged image group obtained after the merge and the group identifier of the merged image group and the merged image group. Record the correspondence between the group identifiers of the two image groups.

실제 응용에서, 상기 그루핑될 이미지 집합 중 상기 최대 증분에 대응하는 두 개의 이미지 그룹을 합병한 후, 합병하여 생성된 합병 이미지 그룹에 대해 하나의 데이터 노드를 할당할 수 있으며, 상기 데이터 노드의 노드 식별자(노드 인덱스)는 상기 합병 이미지 그룹의 그룹 식별자일 수 있다. In practical applications, after merging two image groups corresponding to the maximum increment among the set of images to be grouped, one data node may be allocated for the merged image group generated by the merge, and the node identifier of the data node (node index) may be a group identifier of the merged image group.

이때, 상기 합병 이미지 그룹의 그룹 식별자와, 상기 두 개의 이미지 그룹을 지시하는 그룹 식별자의 대응관계를 기록할 때, 상기 기기는 상기 대응관계를 상기 이미지 합병 그룹에 대응하는 데이터 노드에 기록할 수 있다. At this time, when recording a correspondence between a group identifier of the merged image group and a group identifier indicating the two image groups, the device may record the correspondence in a data node corresponding to the image merged group. .

예를 들어, 도 3에 도시된 이미지 그룹 장면에서, 최대 증분에 대응하는 확정된 두 개의 이미지 그룹이 0 및 1이라고 가정한다. 이때, 상기 기기는 상기 이미지 그룹 0과 상기 이미지 그룹 1을 합병하여 합병 이미지 그룹을 획득한다. 상기 합병 이미지 그룹을 획득하면, 상기 기기는 상기 합병 이미지 그룹에 대해 대응하는 데이터 노드를 생성하고, 상기 데이터 노드의 노드 식별자(노드 인덱스)를 상기 합병 이미지 그룹의 그룹 식별자로 할 수 있다. 다음, 상기 기기는 그룹 식별자 0과 그룹 식별자 1을 상기 데이터 노드에 기록할 수 있다. For example, in the image group scene shown in FIG. 3, it is assumed that the two image groups determined corresponding to the maximum increment are 0 and 1. At this time, the device merges the image group 0 and the image group 1 to obtain a merged image group. Upon acquiring the merged image group, the device may generate a corresponding data node for the merged image group, and set a node identifier (node index) of the data node as a group identifier of the merged image group. Next, the device may write group identifier 0 and group identifier 1 to the data node.

도 6을 참조하면, 도 6은 본 발명의 실시예에 예시된 이미지 그룹 합병의 예시도이다.Referring to Fig. 6, Fig. 6 is an exemplary view of image group merging according to an embodiment of the present invention.

도 6에 도시된 바와 같이, 이미지 그룹 0과 이미지 그룹 1을 합병 이미지 그룹 a로 합병한다. 데이터 노드 a는 합병 이미지 그룹 a에 대응한다. 상기 데이터 노드 a의 노드 식별자(노드 인덱스)는 상기 합병 이미지 그룹의 그룹 식별자 a이고, 상기 데이터 노드 a에는 그룹 식별자 0, 1이 기록된다. 이해할 것은, 본 실시예에 기재된 방안은 데이터 노드를 통해 합병 이미지 그룹의 그룹 식별자, 및 합병된 두 개의 이미지 그룹의 그룹 식별자를 기록할 수 있으며, 이에 따라 합병 이미지 그룹과, 합병된 두 개의 이미지 그룹 간의 대응관계를 기록한다. As shown in Fig. 6, image group 0 and image group 1 are merged into merged image group a. Data node a corresponds to merged image group a. The node identifier (node index) of the data node a is the group identifier a of the merged image group, and group identifiers 0 and 1 are recorded in the data node a. It should be understood that the scheme described in this embodiment may record the group identifier of the merged image group and the group identifier of the merged two image groups through the data node, and thus the merged image group and the merged two image groups. Record the correspondence between

본 발명에서, 상기 기기는 합병된 두 개의 이미지 그룹 중 각 이미지 그룹에 대해, 대응하는 데이터 노드를 확정하고, 확정된 각 데이터 노드에서 기록된 이미지 식별자 정보를 판독할 수도 있다. 각 데이터 노드에 기록된 이미지 식별자 정보를 획득한 후, 상기 기기는 상기 이미지 식별자 정보를 상기 합병 이미지 그룹에 대응하는 데이터 노드에 기입할 수 있으며, 이에 따라 생성된 합병 이미지 그룹과 포함된 각 이미지 간의 대응관계를 기록한다. In the present invention, the device may, for each image group of the two merged image groups, determine a corresponding data node, and read image identifier information recorded in each determined data node. After obtaining the image identifier information recorded in each data node, the device may write the image identifier information into a data node corresponding to the merged image group, thereby creating a relationship between the merged image group and each included image. Record correspondence.

계속하여 도 6을 참조하면, 도 6에 도시된 합병 이미지 그룹 a에 대응하는 데이터 노드 a에는 이미지 식별자 0, 1이 기록된다. 이때, 노드 a에 기록된 이미지 식별자를 판독하면, 이미지 그룹 a에 이미지 0과 이미지 1이 포함된 것을 확정할 수 있다. Referring continuously to FIG. 6 , image identifiers 0 and 1 are recorded in data node a corresponding to merged image group a shown in FIG. 6 . At this time, if the image identifier recorded in node a is read, it can be determined that image 0 and image 1 are included in image group a.

상기 합병이 완료된 경우, 상기 기기는 상기 그루핑될 이미지 집합에 대응하는 모듈성을 업데이트할 수 있다.When the merging is completed, the device may update the modularity corresponding to the image set to be grouped.

본 실시예에서, 상기 기기는 먼저

Figure pct00068
를 획득한 후, 이번 반복에 대응하는 최대 증분을 더하여, 상기 그루핑될 이미지 집합에 대응하는 모듈성을 획득할 수 있다. 상기 모듈성을 획득한 후, 상기 모듈성을 이번 반복에서 생성된 합병 이미지 그룹에 대응하는 데이터 노드에 기록할 수 있다. 계속하여 도 6을 참조하면, 도 6에 도시된 상기 합병 이미지 그룹에 대응하는 데이터 노드 a에는 이번 반복에서 업데이트된 모듈성
Figure pct00069
이 기록된다.In this embodiment, the device first
Figure pct00068
After obtaining , modularity corresponding to the set of images to be grouped may be obtained by adding the maximum increment corresponding to this iteration. After obtaining the modularity, the modularity can be written to the data node corresponding to the merged image group created in this iteration. Continuing to refer to FIG. 6 , the data node a corresponding to the merged image group shown in FIG. 6 has the updated modularity in this iteration.
Figure pct00069
this is recorded

상기 합병이 완료된 경우, 상기 기기는 상기 증분 집합을 업데이트해야 한다. When the merging is complete, the device needs to update the incremental set.

도 7을 참조하면, 도 7은 본 발명의 실시예에 예시된 증분 집합 업데이트 방법의 방법 흐름도이다.Referring to FIG. 7 , FIG. 7 is a method flowchart of an incremental set updating method illustrated in an embodiment of the present invention.

도 7에 도시된 바와 같이, 상기 증분 집합 업데이트 방법은, 기록된 연결관계가 구비된 이미지 그룹의 그룹 식별자 간의 대응관계를 검색하여, 상기 최대 증분에 대응하는 두 개의 이미지 그룹 중 어느 한 이미지 그룹과 연결관계가 구비된 다른 이미지 그룹을 확정하는 S702 단계; As shown in FIG. 7, the incremental set updating method searches for a correspondence between group identifiers of image groups having a recorded connection relationship, and searches for one image group among two image groups corresponding to the maximum increment. Step S702 of determining another image group having a connection relationship;

상기 다른 이미지 그룹을 각각 상기 두 개의 이미지와 합병하는 것으로 가정하고 획득된 상기 증분을 확정하고, 확정된 상기 증분을 더하여 획득된 결과를, 합병 이미지 그룹을 상기 다른 이미지 그룹과 합병하는 것으로 가정한 후 상기 모듈성의 증분으로 하는 S704 단계;Assuming that the different image groups are merged with the two images respectively, and the obtained increment is determined, and the result obtained by adding the determined increment is assumed, the merged image group is assumed to be merged with the other image group, and then Step S704 of incrementing the modularity;

상기 합병 이미지 그룹, 상기 다른 이미지 그룹 각각의 그룹 식별자와, 양자를 합병하는 것으로 가정하고 획득된 상기 모듈의 증분 간의 대응관계를, 상기 증분 집합에 기록하는 S706 단계를 포함한다. and a step S706 of recording, in the incremental set, a correspondence between group identifiers of the merged image group and the other image groups, respectively, and the increments of the module obtained assuming that they are merged.

본 실시예에서, 상기 기기는 상기 S702 단계를 수행할 때, 상기 기기가 유지하고 있는 인접 테이블에서 상기 두 개의 이미지 그룹 중 어느 한 이미지 그룹의 그룹 식별자를 포함하는 대응관계를 검색하고, 검색된 상기 대응관계에서 상기 다른 이미지 그룹을 확정할 수 있다. In this embodiment, when the device performs the step S702, the device searches for a correspondence including a group identifier of any one of the two image groups in a neighbor table maintained by the device, and the searched correspondence. It is possible to determine the other image group in the relationship.

상기 기기는 상기 다른 이미지 그룹을 하나 확정할 때마다, 상기 S704 단계를 수행할 수 있다. 본 실시예에서, 상기 S704 단계를 수행하는 경우, 상기 기기는 상기 공식 (5)에 따라, 합병 이미지 그룹과 상기 다른 이미지 그룹을 합병하는 것으로 가정한 후, 상기 모듈성의 증분을 계산할 수 있으며, 상기 합병 이미지 그룹은 상기 두 개의 이미지 그룹을 합병하여 획득된 합병 이미지 그룹이다. The device may perform step S704 whenever one of the different image groups is determined. In this embodiment, when performing step S704, the device may calculate the modularity increment after assuming that the merged image group and the other image group are merged according to the above formula (5); A merged image group is a merged image group obtained by merging the two image groups.

예를 들어, 이미지 그룹 0과 이미지 그룹 1이 합병 이미지 그룹 a로 합병된다고 가정한다. 상기 인접 테이블을 기반으로, 이미지 그룹 i와 상기 이미지 그룹 0이 연결관계가 구비되는 것이 검색되었다. 이때, 상기 합병 이미지 그룹 a를 상기 이미지 그룹 i와 합병하는 것으로 가정하고 상기 모듈성의 증분을 계산해야 한다. For example, it is assumed that image group 0 and image group 1 are merged into merged image group a. Based on the adjacency table, it is found that image group i and image group 0 have a connection relationship. At this time, assuming that the merged image group a is merged with the image group i, the increment of the modularity should be calculated.

상기 공식 (5)에 따라,

Figure pct00070
=
Figure pct00071
+
Figure pct00072
인 것을 알 수 있다.According to formula (5) above,
Figure pct00070
=
Figure pct00071
+
Figure pct00072
it can be seen that

한 방식에서,

Figure pct00073
Figure pct00074
는 각각 상기 이미지 그룹 0 및 상기 이미지 그룹 1에 대응하는 이진 트리를 검색하는 방식으로 획득된 것일 수 있다. 통상의 기술자가 알 수 있듯이, 본 실시예에서 연결관계가 없는 이미지 그룹을 합병하여 획득된 상기 증분을 0으로 설정하므로, 상기 다른 이미지 그룹 i와 이미지 그룹 1이 연결관계가 없는 경우, 상기
Figure pct00075
가 기록한 것은 실제 모듈성의 증분이 아니라 0이다. 이때, 정확한
Figure pct00076
를 획득하기 위해, 상기 공식 (3)에 따라 상기
Figure pct00077
를 계산할 수 있다. in one way,
Figure pct00073
and
Figure pct00074
may be obtained by searching binary trees corresponding to image group 0 and image group 1, respectively. As can be appreciated by those skilled in the art, since the increment obtained by merging image groups having no connection relationship in this embodiment is set to 0, when the other image group i and image group 1 have no connection relationship, the
Figure pct00075
What is recorded is a zero, not an increment of actual modularity. At this time, accurate
Figure pct00076
In order to obtain
Figure pct00077
can be calculated.

다른 방식에서,

Figure pct00078
Figure pct00079
는 모두 상기 공식 (4)를 통해 계산될 수 있다. 구체적인 계산 과정은 전술한 내용을 참조할 수 있다.in another way,
Figure pct00078
and
Figure pct00079
can all be calculated through the above formula (4). A detailed calculation process may refer to the above description.

합병 이미지 그룹과 다른 이미지 그룹을 합병하는 것으로 가정하고 상기 모듈의 증분을 산출한 후, 상기 기기는 S706 단계를 계속하여 수행할 수 있다.Assuming that the merged image group and other image groups are merged and after calculating the increment of the module, the device may continue to step S706.

본 실시예에서, 상기 S706 단계를 수행할 때, 상기 다른 이미지 그룹에 대응하는 이진 트리를 먼저 확정하고, 확정된 상기 이진 트리에 상기 증분을 기록할 수 있다. In this embodiment, when performing the step S706, a binary tree corresponding to the other image group may be first determined, and the increment may be recorded in the determined binary tree.

이미지 그룹 0과 이미지 그룹 1이 합병 이미지 그룹 a로 합병된다고 가정한다. 상기 인접 테이블을 기반으로, 이미지 그룹 i와 상기 이미지 그룹 0이 연결관계가 구비된 것이 검색될 수 있다. 상기 합병 이미지 그룹 a를 상기 이미지 그룹 i와 합병하는 것으로 가정하면, 상기 모듈성의 증분은

Figure pct00080
이다.Assume that image group 0 and image group 1 are merged into merged image group a. Based on the adjacency table, it may be searched that image group i and image group 0 have a connection relationship. Assuming to merge the merged image group a with the image group i, the increment of modularity is
Figure pct00080
am.

이때, 상기 기기는 상기 이미지 그룹 i에 대응하는 이진 트리를 먼저 확정할 수 있다. 이진 트리를 확정한 후, 상기

Figure pct00081
를 상기 이진 트리에 삽입할 수 있다. 상기
Figure pct00082
를 상기 이진 트리에 삽입한 후, 상기 이진 트리는 자신이 기록한 증분 중 최대 증분을 다시 확정하고, 상기 최대 증분이 위치한 노드를 상기 이진 트리의 루트 노드에 이동시킬 수 있다. At this time, the device may first determine a binary tree corresponding to the image group i. After confirming the binary tree, the above
Figure pct00081
can be inserted into the binary tree. remind
Figure pct00082
After inserting into the binary tree, the binary tree may re-determine the maximum increment among the increments recorded by itself, and move the node where the maximum increment is located to the root node of the binary tree.

산출된 증분이 기록 완료된 경우, 상기 기기는 또한 상기 두 개의 이미지 그룹 중 어느 한 이미지 그룹의 그룹 식별자에 대응하는 상기 증분을 삭제할 수 있다.When the calculated increment has been recorded, the device may also delete the increment corresponding to the group identifier of any one of the two image groups.

본 실시예에서, 상기 기기는 상기 두 개의 이미지 그룹 각각에 대응하는 이진 트리로부터 루트 노드에 기록된 데이터를 삭제할 수 있다. In this embodiment, the device may delete data recorded at the root node from the binary tree corresponding to each of the two image groups.

각 이미지 그룹에 대응하는 이진 트리를 업데이트한 후, 상기 기기는 다음번 반복을 완료하도록, 현재 각 이미지 그룹에 대응하는 루트 노드 포인트를 상기 최대 힙에 푸시할 수도 있다. After updating the binary tree corresponding to each image group, the device may push the root node point corresponding to each image group to the maximum heap to complete the next iteration.

이로써, 상기 증분 집합에 대한 업데이트가 완료되었다.This completes the update to the incremental set.

본 실시예에서, 매회의 반복에서, 또한 상기 인접 테이블에 이번 반복에서 생성된 합병 이미지 그룹과 상기 다른 이미지 그룹 간의 연결관계를 기록하고, 상기 인접 테이블에서 합병된 두 개의 이미지 그룹 중 어느 한 이미지 그룹의 연결관계를 삭제할 수 있다. In this embodiment, in each iteration, the connection relationship between the merged image group generated in this iteration and the other image group is recorded in the adjacency table, and any image group of the two image groups merged in the adjacency table is recorded. connection can be deleted.

이로써, 반복이 한번 완료되었다. 상기 기기는 상기 그루핑될 이미지 집합에 유일한 이미지 그룹이 포함될 때까지 상기 반복 단계(S206)를 계속하여 수행할 수 있다. This completes the iteration once. The device may continue to perform the repeating step (S206) until a unique image group is included in the set of images to be grouped.

이해할 것은, 매회의 반복에서, 모두 두 개의 이미지 그룹을 합병하여 하나의 합병 이미지 그룹을 획득하므로, 상기 그루핑될 이미지 집합이 최초 N(N은 0보다 큰 자연수) 개 이미지 그룹을 포함하는 것으로 가정하면, N 개의 이미지 그룹을 하나의 이미지 그룹으로 합병하는데 (N-1) 번의 합병 반복이 필요된다. It should be understood that in each iteration, both image groups are merged to obtain one merged image group, so assuming that the image set to be grouped includes the first N (N is a natural number greater than 0) image groups. , it takes (N-1) merging iterations to merge N image groups into one image group.

상술한 상황에서, 상기 반복 단계를 시작하기 전에 값이 1인 하나의 카운터를 설정하고, 반복을 한번 수행할 때마다, 상기 카운터의 값을 1 증가시킬 수 있다. 이때, 상기 기기는 매번 반복 단계를 수행하기 전에, 상기 카운터의 값이 N-1에 도달하였는지 여부를 확정하여, 상기 반복 단계(S206)를 종료할 지 여부를 확정할 수 있다. In the above situation, a counter having a value of 1 may be set before starting the repetition step, and the value of the counter may be increased by 1 each time repetition is performed. At this time, the device may determine whether or not to end the repetition step (S206) by determining whether the value of the counter reaches N-1 before performing the repetition step each time.

상기 그루핑될 이미지 집합이 유일한 이미지 그룹을 포함하는 경우, 상기 기기는 S208 단계를 수행할 수 있다. When the image set to be grouped includes a unique image group, the device may perform step S208.

본 실시예에서, 상기 기기는 마지막 반복에서 기록된 합병 이미지 그룹으로부터 시작하여, 반복 발생 순서에 따라, 매회의 반복에서 기록된 합병 이미지 그룹에 대해 역순으로 아래의 S2082 단계, 즉, In this embodiment, the device starts from the merged image group recorded in the last iteration, and proceeds to step S2082 below in the reverse order for the merged image group recorded in each iteration, according to the order of occurrence of the repetition, i.e.,

이미지 조합 방식을 확인하기 위한 식별자 집합에 상기 합병 이미지 그룹의 그룹 식별자가 포함되는지 여부를 확정하고, 상기 식별자 집합에 상기 합병 이미지 그룹의 그룹 식별자가 포함되지 않는 경우, 이번 반복에서 기록된 합병 이미지 그룹의 그룹 식별자를 상기 식별자 집합에 기입하는 단계;It is determined whether the group identifier of the merged image group is included in the identifier set for checking the image combination method, and if the identifier set does not include the group identifier of the merged image group, the merged image group recorded in this iteration writing a group identifier of the group identifier to the identifier set;

상기 기록된 각 합병 이미지 그룹에 대응하는 업데이트된 모듈성이, 기록된 매회의 반복에서 업데이트된 모듈성 중 최대 모듈성인지 여부를 확정하는 단계;determining whether an updated modularity corresponding to each recorded merged image group is a maximum modularity among updated modularities in each recorded iteration;

상기 합병 이미지 그룹에 대응하는 업데이트된 모듈성이 기록된 매회의 반복에서 업데이트된 모듈성 중 최대 모듈성인 경우, 상기 식별자 집합에 포함된 각 그룹 식별자에 대응하는 이미지 식별자가 지시하는 이미지를 하나의 이미지 조합으로 하고, 획득된 각 이미지 조합을 상기 그루핑될 이미지 집합에 대한 이미지 그루핑 결과로 확정하는 단계를 수행한다.If the updated modularity corresponding to the merged image group is the maximum modularity among the updated modularity in each recording iteration, the image indicated by the image identifier corresponding to each group identifier included in the identifier set is converted into one image combination. and determining each obtained image combination as an image grouping result for the set of images to be grouped.

상기 합병 이미지 그룹에 대응하는 업데이트된 모듈성이 기록된 매회의 반복에서 업데이트된 모듈성 중 최대 모듈성이 아닌 경우, 상기 식별자 집합에 기록된 상기 합병 이미지 그룹의 그룹 식별자를, 상기 합병 이미지 그룹에 대응하는 합병 전 두 개의 이미지 그룹의 그룹 식별자로 교체한다.When the updated modularity corresponding to the merged image group is not the largest modularity among the updated modularities in each recording iteration, a group identifier of the merged image group recorded in the identifier set is selected as the merged image group corresponding to the merged image group. Replace with the group identifier of the previous two image groups.

도 8을 참조하면, 도 8은 본 발명의 실시예에 예시된 이미지 그룹 합병의 예시도이다.Referring to FIG. 8 , FIG. 8 is an exemplary view of image group merging according to an embodiment of the present invention.

도 8에 도시된 노드는 이미지 그룹에 대응하는 데이터 노드이고, 노드 0-9는 그루핑될 집합에 포함된 각 이미지에 일대일로 대응하는 이미지 그룹에 대응하는 데이터 노드이며, 노드 a-i는 매회의 반복에서 생성된 합병 이미지 그룹에 대응하는 데이터 노드이다. 상기 도 8에는 두 개의 이미지 그룹과, 상기 두 개의 이미지 그룹을 합병하여 생성된 합병 이미지 그룹의 대응관계가 도시되었다.Nodes shown in FIG. 8 are data nodes corresponding to image groups, nodes 0-9 are data nodes corresponding to image groups that correspond one-to-one to each image included in the set to be grouped, and nodes a-i in each iteration. This is a data node corresponding to the created merged image group. 8 shows a correspondence between two image groups and a merged image group created by merging the two image groups.

이해할 것은, 각 데이터 노드는 생성시 일반적으로 현재 타임 스템프를 포함하므로, 각 데이터 노드에 포함된 타임 스템프 정보를 확정하면 각 데이터 노드의 생성 순서를 확정할 수 있다. 상기 도 8에서 각 데이터 노드의 인덱스가 각 데이터 노드의 생성 순서를 지시한다고 가정한다. 예를 들어, 노드 a의 생성 시간이 노드 b보다 빠르고, 노드 g의 생성 시간이 노드 i보다 빠르다. It should be understood that each data node generally includes a current time stamp when it is created, so determining the time stamp information included in each data node can determine the order of creation of each data node. In FIG. 8, it is assumed that the index of each data node indicates the order of creation of each data node. For example, the creation time of node a is faster than node b, and the creation time of node g is faster than node i.

상기 기기가 마지막에 기록된 합병 이미지 그룹에 대해 상기 S2082 단계를 수행하는 경우, 이미지 조합 방식을 확인하기 위한 식별자 집합이 초기에 널(null)이므로, 노드 i에 기록된, 노드 i에 대응하는 이미지 그룹의 그룹 식별자를 상기 식별자 집합에 기입할 수 있다. 이때, 상기 식별자 집합은 그룹 식별자 i를 포함한다. When the device performs step S2082 for the merged image group recorded last, since the identifier set for confirming the image combination method is initially null, the image recorded in node i and corresponding to node i A group identifier of a group may be written in the identifier set. At this time, the identifier set includes group identifier i.

다음, 상기 기기는 상기 노드 i에 기록된 모듈성이 기록된 매회의 반복에서 업데이트된 모듈성 중 최대 모듈성인지 여부를 확정할 수 있다. Next, the device may determine whether the modularity recorded in the node i is the maximum modularity among the modularities updated in each recorded iteration.

이하, 상기 노드 i에 기록된 모듈성이 상기 최대 모듈성인지 여부를 확정하는 방법을 소개한다.Hereinafter, a method for determining whether the modularity recorded in the node i is the maximum modularity will be introduced.

통상의 기술자가 이해할 것은, 실제 상황에서, 모듈성이 제일 큰 경우, 그루핑될 이미지 집합에 포함되는 이미지의 조합 방식은 3 가지가 있다. 즉, 방식 1에 있어서, 모든 이미지가 하나의 그룹으로 조합된다. 방식 2에 있어서, 각 이미지가 각자 하나의 그룹이다. 방식 3에 있어서, 몇몇 이미지가 하나의 그룹으로 조합된다. A person skilled in the art will understand that in a real situation, when modularity is the greatest, there are three ways of combining images included in an image set to be grouped. That is, in Method 1, all images are combined into one group. In scheme 2, each image is a group respectively. In scheme 3, several images are combined into one group.

첫 번째 방식에 대해, 실제로 현재 이미지 조합 형식은 합병할 때마다 안정적인 경향이 있어, 대응하는 모듈성은 점점 커지게 되는데, 이때, 모듈성의 변화 추이는 반복할 때마다 단조 증가한다. Regarding the first method, in practice, the current image combination form tends to be stable whenever merged, and the corresponding modularity gradually increases, and at this time, the change trend of modularity monotonically increases with each iteration.

두 번째 방식에 대해, 실제로 현재 이미지 조합 형식은 합병할 때마다 불안정적인 경향이 있어, 대응하는 모듈성은 점점 작아지게 되는데, 이때, 모듈성의 변화 추이는 반복할 때마다 단조 감소한다.Regarding the second method, in practice, the current image combination format tends to be unstable every time it is merged, and the corresponding modularity becomes smaller and smaller.

세 번째 방식에 대해, 실제로 최초 이미지 조합 방식으로부터 시작하여 모듈성이 제일 큰 이미지 조합 방식이 나타나 종료할 때까지, 현재 이미지 조합 형식은 합병할 때마다 안정적인 경향이 있다. 모듈성이 제일 큰 이미지 조합 방식이 나타난 후, 현재 이미지 조합 형식은 합병할 때마다 불안정적인 경향이 있으며, 이때, 모듈성의 변화 추이는 반복할 때마다, 먼저 단조 증가하고 최대치에 도달한 경우, 다시 단조 감소한다. Regarding the third scheme, actually starting from the first image combining scheme until the image combining scheme with the greatest modularity appears and ends, the current image combining scheme tends to be stable every time it is merged. After the image combination method with the greatest modularity appears, the current image combination form tends to be unstable each time it is merged. Decrease.

통상의 기술자가 이해할 것은, 상술한 세 가지 방식에 대해, 마지막 반복으로부터 시작하여, 반복 발생의 순서에 따라, 역순으로, 매회의 반복마다 이번 반복에서 업데이트된 모듈성이 이번 반복에 대응하는 이전번 반복에서 업데이트된 모듈성에 도달하였는지 여부를 확정한다. 상술한 상황에서, 이번 반복에서 업데이트된 모듈성이 이번 반복에 대응하는 이전번 반복에서 업데이트된 모듈성에 도달한 것을 확정한 경우, 이번 반복에서 업데이트된 상기 모듈성이 최대 모듈성인 것을 설명한다. 이때, 상기 매회의 반복에 대해 상기 확정 단계를 수행한 후, 상기 판단 조건을 충족하는 모듈성을 발견하지 못하면, 모듈성 최대치가 상기 매회의 반복 발생 전의 이미지 조합 방식에 대응하는 모듈성인 것을 설명한다. It will be appreciated by those of ordinary skill in the art that for the above three schemes, starting from the last iteration, in reverse order according to the order in which iterations occur, at each iteration the modularity updated in this iteration corresponds to the previous iteration that corresponds to this iteration. It is determined whether updated modularity has been reached in In the above situation, if it is confirmed that the modularity updated in this iteration has reached the modularity updated in the previous iteration corresponding to this iteration, it is described that the modularity updated in this iteration is the maximum modularity. In this case, if modularity that satisfies the determination condition is not found after performing the determining step for each repetition, it will be described that the maximum modularity is the modularity corresponding to the image combination method before each repetition.

따라서, 상기 기기는 상기 노드 i에 기록된 모듈성이 기록된 매회의 반복에서 업데이트된 모듈성 중 최대 모듈성인지 여부를 확정할 때, 상기 노드 i에 기록된 모듈성

Figure pct00083
Figure pct00084
를 상기 노드 h에 기록된 모듈성
Figure pct00085
Figure pct00086
와 비교할 수 있다. 상기
Figure pct00087
Figure pct00088
가 상기
Figure pct00089
Figure pct00090
에 도달한 경우, 상기 노드 i를 상기 최대 모듈성으로 확정한다. Therefore, when the device determines whether the modularity recorded in the node i is the maximum modularity among the modularities updated in each recorded iteration, the modularity recorded in the node i
Figure pct00083
Figure pct00084
Modularity written to the node h
Figure pct00085
Figure pct00086
can be compared with remind
Figure pct00087
Figure pct00088
remind
Figure pct00089
Figure pct00090
is reached, the node i is determined as the maximum modularity.

상기 기기는 상기 노드 i에 기록된 모듈성이 기록된 매회의 반복에서 업데이트된 모듈성 중 최대 모듈성인지 여부를 확정할 때, 상기 노드 i에 기록된 모듈성이, 기록된 매회의 반복에서 업데이트된 모듈성 중 최대 모듈성이면, 이때, 상기 기기는 상기 식별자 집합에 포함된 각 그룹 식별자에 대응하는 이미지 식별자가 지시하는 이미지를 하나의 이미지 조합으로 하고, 획득된 각 이미지 조합을 상기 그루핑될 이미지 집합의 이미지 그루핑 결과로 확정할 수 있다. When the device determines whether the modularity recorded in the node i is the maximum modularity among the modularities updated in each recorded iteration, the modularity recorded in the node i is the largest among the modularities updated in each recorded iteration. If modular, at this time, the device sets an image indicated by an image identifier corresponding to each group identifier included in the identifier set as one image combination, and converts each obtained image combination into an image grouping result of the image set to be grouped. can be confirmed

상기 노드 i에 기록된 모듈성이, 기록된 매회의 반복에서 업데이트된 모듈성 중 최대 모듈성이 아닌 경우, 상기 식별자 집합에 기록된 상기 기록된 합병 이미지 그룹의 그룹 식별자를, 상기 기록된 합병 이미지 그룹의 그룹 식별자에 대응하는, 상기 두 개의 이미지 그룹을 지시하는 그룹 식별자로 교체한다.When the modularity recorded in the node i is not the maximum modularity among the modularities updated in each recorded iteration, a group identifier of the recorded merged image group recorded in the identifier set is selected as a group of the recorded merged image group. Replace with a group identifier indicating the two image groups corresponding to the identifier.

도 8을 계속하여 참조하면, 도 8 중 노드 f에 기록된 모듈성이 최대 모듈성이라고 가정한다. 상술한 상황에서, 노드 i에 대해 상기 S2082 단계를 수행할 때, 상기 기기는 상기 노드 i에 기록된 모듈성이 상기 최대 모듈성이 아닌 것을 확정할 수 있다. 이때, 상기 기기는 상기 식별자 집합 중 그룹 식별자 i를, 이미지 그룹 i로 합병된 두 개의 이미지 그룹의 그룹 식별자 g, h로 교체할 수 있다. 이때, 상기 식별자 집합은 그룹 식별자 g, h를 포함한다.Continuing to refer to FIG. 8, it is assumed that the modularity recorded at node f in FIG. 8 is the maximum modularity. In the above situation, when performing step S2082 for node i, the device may determine that the modularity recorded in node i is not the maximum modularity. In this case, the device may replace group identifier i of the identifier set with group identifiers g and h of two image groups merged into image group i. At this time, the identifier set includes group identifiers g and h.

노드 i에 대해 상술한 단계를 수행한 후, 계속하여 노드 h에 대해 상술한 S2082 단계를 수행할 수 있다. 노드 h에 기록된 모듈성은 상기 최대 모듈성이 아니므로, 상기 기기는 상기 식별자 집합 중 그룹 식별자 h를, 이미지 그룹 h로 합병된 두 개의 이미지 그룹의 그룹 식별자 e, f로 교체할 수 있다. 이때, 상기 식별자 집합은 그룹 식별자 g, e, f를 포함한다.After performing the above-described steps for node i, the above-described step S2082 may be continuously performed for node h. Since the modularity recorded in node h is not the maximum modularity, the device may replace group identifier h in the identifier set with group identifiers e and f of two image groups merged into image group h. At this time, the identifier set includes group identifiers g, e, and f.

노드 h에 대해 상술한 단계를 수행한 후, 계속하여 노드 g에 대해 상술한 S2082 단계를 수행할 수 있다. 노드 g에 기록된 모듈성은 상기 최대 모듈성이 아니므로, 상기 기기는 상기 식별자 집합 중 그룹 식별자 g를, 이미지 그룹 g로 합병된 두 개의 이미지 그룹의 그룹 식별자 c, 4로 교체할 수 있다. 이때, 상기 식별자 집합은 그룹 식별자 c, 4, e, f를 포함한다.After performing the above-described steps for node h, the above-described step S2082 may be continuously performed for node g. Since the modularity recorded in node g is not the maximum modularity, the device may replace group identifier g in the identifier set with group identifiers c and 4 of two image groups merged into image group g. At this time, the identifier set includes group identifiers c, 4, e, and f.

노드 g에 대해 상술한 단계를 수행한 후, 계속하여 노드 f에 대해 상술한 S2082 단계를 수행할 수 있다. 노드 f에 기록된 모듈성은 상기 최대 모듈성이므로, 상기 기기는 상기 그루핑될 이미지 집합의 이미지 그루핑 결과를, 이미지 0-3이 하나의 그룹, 이미지 4가 독립적으로 하나의 그룹, 이미지 5-6이 하나의 그룹, 이미지 7-9가 하나의 그룹인 것으로 확정할 수 있다. After performing the above-described steps for node g, the above-described step S2082 may be continuously performed for node f. Since the modularity recorded at node f is the maximum modularity, the device sets the image grouping result of the set of images to be grouped, image 0-3 as one group, image 4 as one group independently, and images 5-6 as one group. It can be determined that the group of , images 7-9 are one group.

본 실시예에 기재된 방안을 통해 알 수 있듯이, 본 실시예에 기재된 방안은 그루핑될 이미지를 합리하게 그루핑하는 것을 기반으로, 아래와 같은 효과를 얻을 수 있다. As can be seen through the method described in this embodiment, the method described in this embodiment can obtain the following effects based on rationally grouping images to be grouped.

한편으로, 각 이미지 그룹에 대해 대응하는 이진 트리를 각각 생성하여, 실제로 동일한 증분에 대해, 상기 증분에 대응하는 두 개의 이미지 그룹 각각의 이진 트리에 각각 기록한다. 이때, 각 이미지 그룹 중 두 개의 이미지 그룹을 하나의 합병 이미지 그룹으로 합병한 후, 상기 합병 이미지 그룹에 대응하는 상기 증분을 기록하면, 상기 합병 이미지 그룹에 대해 하나의 신규 이진 트리를 유지할 필요가 없으며, 상기 증분을 상기 합병 이미지 그룹에 대응하는 다른 이미지 그룹의 이진 트리에 기록할 수 있으며, 이에 따라, 합병 이미지 그룹에 대응하는 상기 증분을 기록할 때의 연산량을 감소할 수 있으며, 이미지 그루핑 효율을 더 향상시킬 수 있다.On the one hand, we create a corresponding binary tree for each group of images, respectively, and actually write to the binary tree of each of the two image groups corresponding to the increment, for the same increment. At this time, after merging two image groups of each image group into one merged image group, and then recording the increment corresponding to the merged image group, there is no need to maintain a new binary tree for the merged image group. , The increment can be written to a binary tree of another image group corresponding to the merged image group, thereby reducing the amount of calculation when recording the increment corresponding to the merged image group, and improving image grouping efficiency. can be further improved.

다른 한편으로, 상기 이진 트리의 루트 노드에 기록된 것은 각 이미지 그룹이 상기 증분의 최대치에 대응하는 것이므로, 후속 반복 단계에서 증분 집합의 최대 증분을 확정할 때, 각 이미지 그룹에 대응하는 이진 트리의 루트 노드에 기록된 증분만 비교하면 되므로, 상기 최대 증분을 확정하는 효율을 향상시키고, 이에 따라 이미지 그루핑 효율을 더 향상시킬 수 있다.On the other hand, what is written to the root node of the binary tree is that each image group corresponds to the maximum of the increment, so when determining the maximum increment of the increment set in the subsequent iteration step, the binary tree corresponding to each image group Since only the increment recorded in the root node needs to be compared, the efficiency of determining the maximum increment can be improved, and thus the image grouping efficiency can be further improved.

또 다른 한편으로, 상기 이진 트리의 루트 노드 포인트를 최대 힙에 푸시하고, 상기 최대 힙에 의해 최대 증분을 도출하므로, 증분 집합 중에서 최대 증분을 확정하는 효율을 향상시킬 수 있으며, 이미지 그루핑 효율을 더 향상시킬 수 있다. On the other hand, since the root node point of the binary tree is pushed to the maximum heap and the maximum increment is derived by the maximum heap, the efficiency of determining the maximum increment among the set of increments can be improved, and the image grouping efficiency can be further improved. can improve

본 발명에 따른 일부 실시예에서, 그루핑될 이미지 집합 중 이미지를 그루핑한 후, 포함된 이미지 수가 적은 이미지 그룹이 나타날 수 있다. 이때, 포함된 이미지 수가 적은 이미지 그룹에 대해 3 차원 재구성을 수행하면, 이미지 그룹 내부에 포함된 이미지 수가 적어 재구성 결과가 좋지 못하거나 3 차원 재구성을 수행할 수 없는 문제가 발생할 수 있다. In some embodiments according to the present invention, after grouping images from a set of images to be grouped, an image group with a small number of included images may appear. At this time, if 3D reconstruction is performed on an image group with a small number of included images, poor reconstruction results or 3D reconstruction may not be performed because the number of images included in the image group is small.

관련기술에서는 포함된 이미지 수가 최저 임계치보다 적은 몇몇 이미지 그룹을 선택하여 융합하여 융합된 이미지 그룹을 획득함으로써, 획득된 이미지 그룹에 포함된 이미지 수가 많아지게 한다. In a related art, several image groups whose number of included images is less than a minimum threshold are selected and merged to obtain a merged image group, thereby increasing the number of images included in the acquired image group.

그러나, 관련기술에서 이미지 그룹을 융합할 때 융합되는 각 이미지 그룹 간의 연결관계를 감안하지 않으므로, 해당 방법으로 융합하여 획득된 이미지 그룹 내 각 이미지 간의 연결관계는 크게 강하지 않아, 융합하여 획득된 이미지 그룹에 대해 3 차원 재구성을 수행하는 재구성 결과의 로버스트가 좋지 않은 것을 쉽게 발견할 수 있다. However, since the related art does not consider the connection relationship between each image group to be fused when image groups are fused, the connection relationship between each image in the image group obtained by fusion is not very strong, and the image group obtained by fusion is not very strong. It is easy to find that the robustness of the reconstruction result performing 3D reconstruction on .

본 실시예에서 제출된 기술적 방안은 이미지 수가 적은 이미지 그룹을 융합하는 경우, 먼저 연결관계가 제일 강한 두 개의 이미지 그룹을 융합하여, 이미지 수가 적은 이미지 그룹에 대해 융합을 수행하는 동시에, 융합하여 획득된 이미지 그룹 내 각 이미지 간의 연결관계가 비교적 강하여, 융합하여 획득된 이미지 그룹에 대해 3 차원 재구성을 수행하는 재구성 결과의 로버스트가 좋은 것을 보장할 수 있다. In the technical scheme presented in this embodiment, when fusing an image group with a small number of images, first fuses two image groups having the strongest connection relationship, performs fusion on the image group with a small number of images, and simultaneously obtains Since the connection relationship between each image in the image group is relatively strong, it is possible to ensure that a reconstruction result obtained by performing 3D reconstruction on the image group obtained by fusion is robust.

본 실시예의 상세한 단계를 소개하기 전에, 먼저 이미지 그룹 간 연결관계의 강약을 평가하는 지표-연결 가중치를 소개한다. Before introducing the detailed steps of this embodiment, we first introduce the index-linked weights that evaluate the strength of the linking relationship between image groups.

일부 실시예에서, 상기 연결 가중치는 두 개의 이미지 그룹 간의 연결관계를 정량화하기 위한 지표를 포함할 수 있다.In some embodiments, the connection weight may include an index for quantifying a connection relationship between two image groups.

두 개의 이미지 그룹 간의 연결 가중치를 계산하는 경우, 먼저 그 중 한 이미지 그룹(예를 들어, 제1 이미지 그룹)에 포함된 각 이미지와, 다른 한 이미지 그룹(예를 들어, 제2 이미지 그룹)에 포함된 각 이미지 간의 유사도를 계산할 수 있다. 다음, 산출된 각 유사도가 사전 설정된 유사도 임계치에 도달하였는지 여부를 확정하며, 사전 설정된 유사도 임계치에 도달한 유사도에 대응하는 두 개의 이미지를 매칭하는 이미지로 확정한다. 두 개의 이미지 그룹 간에 매칭하는 이미지 수를 통계하고, 상기 이미지 수를 상기 두 개의 이미지 그룹 간의 연결 가중치로 한다. When calculating the connection weight between two image groups, first, each image included in one image group (eg, the first image group) and the other image group (eg, the second image group) The similarity between each included image can be calculated. Next, it is determined whether each calculated similarity reaches a preset similarity threshold, and two images corresponding to similarities reaching the preset similarity threshold are determined as matching images. The number of matching images between the two image groups is counted, and the number of images is used as a connection weight between the two image groups.

이로부터 알 수 있듯이, 상기 연결 가중치는 두 개의 이미지 그룹 간의 연결관계를 정량화할 수 있다.As can be seen from this, the connection weight can quantify the connection relationship between two image groups.

다음, 본 실시예의 상세한 단계를 소개한다. Next, the detailed steps of this embodiment are introduced.

먼저, 상기 기기는 획득된 각 이미지 그룹에서, 포함된 이미지 수가 제1 사전 설정된 개수 임계치보다 작은 이미지 그룹을 확정하고, 확정된 이미지 그룹을 융합될 이미지 그룹으로 확정하며, 상기 제1 사전 설정된 임계치는 각 그룹 중 최소 이미지 수를 지시한다. 다음, 상기 각 이미지 그룹 중 상기 융합될 이미지 그룹을 제외한 다른 그룹을 나머지 그룹으로 확정한다. First, in each image group obtained, the device determines an image group whose number of included images is smaller than a first preset number threshold, and determines the determined image group as an image group to be merged, wherein the first preset threshold is Indicates the minimum number of images in each group. Next, among the image groups, other groups excluding the image group to be merged are determined as the remaining groups.

일부 실시예에서, 상기 제1 사전 설정된 임계치는 각 그룹 중 최소 이미지 수일 수 있다. 상기 최소 이미지 수는 하나의 이미지 그룹에 포함될 수 있는 사전 설정된 최소 이미지 수일 수 있다. In some embodiments, the first preset threshold may be the minimum number of images in each group. The minimum number of images may be a preset minimum number of images that may be included in one image group.

이 단계에서, 상기 기기는 먼저 상기 융합될 이미지 그룹에 하나의 융합될 이미지 그룹 식별자 집합을 할당할 수 있다. 다음, 상기 기기는 각 이미지 그룹에 포함된 이미지 수를 차례로 확정하고, 포함된 이미지 수가 상기 제1 사전 설정된 개수 임계치보다 작은 이미지 그룹의 그룹 식별자를 상기 융합 이미지 그룹 식별자 집합에 넣어, 융합될 이미지 그룹을 확정하는 단계를 완료할 수 있다. In this step, the device may first assign an image group identifier set to be merged to the image group to be merged. Next, the device determines the number of images included in each image group in turn, puts group identifiers of image groups whose number of images is less than the first preset number threshold into the merging image group identifier set, and sets the image groups to be merged. You can complete the step of confirming.

여기서, 나머지 그룹을 확정하는 단계는 융합될 이미지 그룹을 확정하는 단계를 참조할 수 있다. Here, the step of determining the remaining groups may refer to the step of determining image groups to be merged.

융합될 이미지 그룹을 확정한 경우, 상기 기기는 상기 융합될 그룹 중 각 두 개의 이미지 그룹 간의 연결 가중치를 계산하고 연결 가중치 집합을 구성할 수 있으며, 상기 연결 가중치는 두 개의 이미지 그룹 간 매칭하는 이미지 수를 지시한다. When the image group to be merged is determined, the device may calculate a connection weight between each two image groups among the groups to be merged and configure a connection weight set, wherein the connection weight is the number of matching images between the two image groups. instruct

이 단계에서, 상기 기기는 상기 융합될 그룹 중 각 이미지 그룹에 대해, 상기 각 이미지 그룹에 일대일로 대응하는 이진 트리(예를 들어, 평형 이진 트리)를 생성할 수 있다. 다음, 상기 기기는, 상기 융합될 그룹 중 각 두 개의 이미지 그룹 간의 연결 가중치를 계산하고, 상기 연결 가중치, 및 상기 두 개의 이미지 그룹의 그룹 식별자를 상기 이진 트리의 노드에 기록할 수 있으며, 상기 이진 트리의 루트 노드에는 각 이미지 그룹에 대응하는 각 연결 가중치 중 최대 연결 가중치, 및 상기 최대 연결 가중치에 대응하는 그룹 식별자가 기록된다.In this step, the device may generate a binary tree (eg, a balanced binary tree) corresponding to each image group on a one-to-one basis for each image group among the to-be-fused groups. Next, the device may calculate a connection weight between each two image groups of the to-be-fused group, and record the connection weight and a group identifier of the two image groups in a node of the binary tree. In the root node of the tree, a maximum connection weight among connection weights corresponding to each image group and a group identifier corresponding to the maximum connection weight are recorded.

이때, 상기 연결 가중치 집합의 생성이 완료된다.At this time, generation of the connection weight set is completed.

다음, 상기 기기는 상기 연결 가중치 집합에 따라, 상기 융합될 이미지 그룹을 융합할 수 있다.Next, the device may merge the image group to be merged according to the connection weight set.

일부 실시예에서, 상기 연결 가중치 집합에 따라, 상기 융합될 이미지 그룹을 융합할 때, 상기 기기는 상기 연결 가중치 집합에 어느 연결 가중치도 포함되지 않을 때까지,In some embodiments, when fusing the image group to be fused according to the connection weight set, the device continues until no connection weight is included in the connection weight set,

상기 연결 가중치 집합 중 최대 연결 가중치를 확정하는 단계를 반복으로 수행할 수 있다.The step of determining the maximum connection weight among the connection weight set may be repeatedly performed.

이 단계에서, 상기 최대 연결 가중치를 확정할 때, 각 이미지 그룹에 대응하는 이진 트리의 루트 노드 포인터를 상기 최대 연결 가중치를 도출하기 위한 최대 힙에 푸시할 수 있다. 다음, 상기 최대 힙의 루트 노드에 기록된 포인터를 판독하고, 상기 기록된 포인터가 지시하는 이진 트리 노드에 기록된 연결 가중치를 상기 최대 연결 가중치로 확정할 수 있다.In this step, when determining the maximum linkage weight, the root node pointer of the binary tree corresponding to each image group may be pushed to the maximum heap for deriving the maximum linkage weight. Next, a pointer recorded in the root node of the maximum heap may be read, and a connection weight recorded in a binary tree node indicated by the recorded pointer may be determined as the maximum connection weight.

상기 최대 연결 가중치를 확정한 후, 상기 기기는 상기 이진 트리 노드에 기록된 그룹 식별자를 통해, 상기 최대 연결 가중치에 대응하는 두 개의 이미지 그룹을 확정할 수 있다.After determining the maximum concatenation weight, the device may determine two image groups corresponding to the maximum concatenation weight through the group identifier recorded in the binary tree node.

상기 최대 연결 가중치에 대응하는 두 개의 이미지 그룹을 확정한 후, 상기 기기는 그 중에 포함된 이미지 수가 보다 큰 하나의 이미지 그룹 중 이미지 수가 제2 사전 설정된 개수 임계치에 도달하였는지 여부를 확정할 수 있으며, 상기 제2 사전 설정된 개수 임계치는 각 이미지 그룹 중 최대 이미지 수를 지시한다. After determining the two image groups corresponding to the maximum concatenation weight, the device may determine whether the number of images in one image group having a greater number of images in them reaches a second preset number threshold; The second preset number threshold indicates a maximum number of images in each image group.

상기 제2 사전 설정된 개수 임계치에 도달한 경우, 이번 반복을 종료한다.When the second preset number threshold is reached, this iteration ends.

상기 제2 사전 설정된 개수 임계치에 도달하지 않은 경우, 상기 두 개의 이미지 그룹을 합병하여 합병 이미지 그룹을 획득하고 상기 연결 가중치 집합을 업데이트한다. When the second preset number threshold is not reached, the two image groups are merged to obtain a merged image group and the concatenation weight set is updated.

상기 제2 사전 설정된 개수 임계치는 구체적으로 각 이미지 그룹 중 최대 이미지 수를 지시한다. 상기 최대 이미지 수는 각 이미지 그룹에 포함될 수 있는 최대 이미지 수이다.The second preset number threshold specifically indicates the maximum number of images in each image group. The maximum number of images is the maximum number of images that can be included in each image group.

이 단계에서, 상기 두 개의 이미지 그룹을 합병하여 합병 이미지 그룹을 획득한 경우, 상기 기기는 합병 이미지 그룹에 대해 하나의 데이터 노드를 생성하고, 상기 합병된 두 개의 이미지 그룹 각각에 대응하는 데이터 노드에 기록된 이미지 식별자를 해당 데이터 노드에 기입할 수 있다. 다음, 상기 기기는 상기 융합될 이미지 그룹 식별자 집합에서 상기 합병된 두 개의 이미지 그룹의 그룹 식별자를 삭제하고, 상기 합병 이미지 그룹의 그룹 식별자를 추가할 수 있다.In this step, if a merged image group is obtained by merging the two image groups, the device generates one data node for the merged image group, and a data node corresponding to each of the two merged image groups. The recorded image identifier may be written to the corresponding data node. Next, the device may delete the group identifiers of the two merged image groups from the set of image group identifiers to be merged, and add the group identifiers of the merged image group.

상기 합병을 완료한 경우, 상기 기기는 상기 연결 가중치 집합을 업데이트할 수 있다.When the merging is completed, the device may update the connection weight set.

본 단계에서, 상기 기기는 합병된 상기 두 개의 이미지 그룹 각각에 대응하는 이진 트리에 기록된 데이터를 먼저 삭제할 수 있다.In this step, the device may first delete data recorded in the binary tree corresponding to each of the two merged image groups.

다음, 상기 기기는 상기 합병 이미지 그룹과 상기 융합될 그룹 중 다른 그룹 간의 연결 가중치를 계산하고, 산출된 상기 연결 가중치, 및 상기 합병 이미지 그룹과 상기 다른 그룹의 그룹 식별자를 상기 다른 그룹에 대응하는 이진 트리에 기입할 수 있다. 이때, 상기 기기는 또한 상기 다른 그룹에 대응하는 이진 트리에서, 상기 다른 그룹과, 합병된 상기 두 개의 이미지 그룹 간의 연결 가중치를 기록한 노드를 삭제한다.Next, the device calculates a connection weight between the merged image group and another group among the groups to be merged, and converts the calculated connection weight and a group identifier of the merged image group and the other group into a binary number corresponding to the other group. You can write to the tree. At this time, the device also deletes a node recording a connection weight between the other group and the merged two image groups from the binary tree corresponding to the other group.

이해할 것은, 이미지 융합 효율을 향상시키기 위해, 상기 합병 이미지 그룹과 상기 융합될 그룹 중 다른 그룹 간의 연결 가중치를 계산할 때, 상기 합병 이미지 그룹과 연결관계가 구비된 다른 이미지 그룹과, 상기 합병 이미지 그룹 간의 연결 가중치만 계산할 수 있다. It should be understood that, in order to improve image fusion efficiency, when calculating the connection weight between the merged image group and other groups among the to-be-fused groups, the merged image group and other image groups having a connection relationship with the merged image group are calculated. Only connection weights can be calculated.

이로써, 상기 기기는 상기 연결 가중치 집합에 대한 업데이트를 완료하였다.Thus, the device has completed updating the connection weight set.

다음, 상기 기기는 상기 연결 가중치 집합에 어느 연결 가중치도 포함하지 않을 때까지, 상기 단계를 반복적으로 수행할 수 있다. Next, the device may repeatedly perform the above step until no connection weight is included in the connection weight set.

본 실시예에서, 상기 최대 연결 가중치에 대응하는 두 개의 이미지 그룹 중, 포함된 이미지 수가 보다 큰 하나의 이미지 그룹 중 이미지 수가 제2 사전 설정된 개수 임계치에 도달하면, 상기 기기는 이번 반복을 중지하는 조작을 수행하는 것 외에, 상기 개수가 보다 큰 이미지 그룹에 대응하는 이진 트리를 삭제할 수도 있으며, 개수가 보다 적은 이미지 그룹에 대응하는 이진 트리에서, 상기 두 개의 이미지 그룹 간의 연결 가중치를 기록한 노드를 삭제할 수 있다. In this embodiment, when the number of images in one of the two image groups corresponding to the maximum concatenated weight is greater than the number of included images reaches the second preset number threshold, the device performs an operation to stop this iteration. In addition to performing, a binary tree corresponding to an image group having a larger number may be deleted, and a node recording a connection weight between the two image groups may be deleted from a binary tree corresponding to an image group having a smaller number. there is.

여기서 설명할 것은, 두 개의 이미지 그룹을 융합하거나 어느 한 이미지 그룹에 포함된 이미지 수가 상기 제2 사전 설정된 임계치보다 크면, 대응하는 이진 트리를 삭제하므로, 최대 연결 가중치에 대응하는 이미지 그룹의 이진 트리가 널인 경우, 해당 이미지 그룹이 융합될 수 없는 것을 설명한다. What will be described here is that when two image groups are fused or the number of images included in any one image group is greater than the second preset threshold, the corresponding binary tree is deleted, so that the binary tree of the image group corresponding to the maximum concatenation weight is If null, it explains that the image group cannot be fused.

알 수 있듯이, 이미지 그룹 융합 효율을 가속화하기 위해, 매회의 반복에서 최대 연결 가중치를 확정한 후, 상기 기기는 또한 상기 최대 연결 가중치에 대응하는 두 개의 이미지 그룹 중 어느 하나에 대응하는 이진 트리가 널인지 여부를 확정할 수 있다. 널인 경우, 이번 반복을 종료할 수 있으며, 널이 아닌 이진 트리에서, 상기 두 개의 이미지 그룹 간의 연결 가중치를 기록한 노드를 삭제하여, 무효 반복을 감소하고, 이미지 그루핑 융합 효율을 향상시킬 수 있다.As can be seen, in order to accelerate the image group fusion efficiency, after determining the maximum concatenation weight in each iteration, the device also determines that the binary tree corresponding to any one of the two image groups corresponding to the maximum concatenation weight is null. It can be determined whether or not In the case of null, this iteration may be terminated, and a node recording a connection weight between the two image groups may be deleted from a non-null binary tree, thereby reducing invalid repetitions and improving image grouping fusion efficiency.

상기 연결 가중치 집합에 연결 가중치가 포함되지 않는 경우, 상기 기기는 상기 융합될 그룹에 포함된 이미지 그룹, 및 상기 나머지 그룹 중 이미지 그룹을, 상기 그루핑될 이미지 집합에 대한 최종 이미지 그룹으로 할 수 있다. When the connection weight set does not include the connection weight, the device may set the image group included in the group to be merged and the image group among the remaining groups as the final image group for the set of images to be grouped.

일부 실시예에서, 상기 기기는 상기 융합될 이미지 그룹 식별자 집합에 포함된 각 그룹 식별자를 판독하고, 상기 각 그룹 식별자에 대해, 각 그룹 식별자에 대응하는 이미지 식별자가 지시하는 이미지를 하나의 이미지 그룹으로 분할할 수 있다. 다음, 상기 기기는 분할하여 획득된 각 이미지 그룹, 및 상기 나머지 그룹 중 이미지 그룹을 상기 그루핑될 이미지 집합에 대한 최종 이미지 그룹으로 출력할 수 있다.In some embodiments, the device reads each group identifier included in the set of image group identifiers to be merged, and for each group identifier, an image indicated by an image identifier corresponding to each group identifier is divided into one image group. can be divided Next, the device may output each image group acquired by division and the image group among the remaining groups as a final image group for the image set to be grouped.

본 실시예에서, 매회의 반복에서 최대 연결 가중치에 대응하는 두 개의 이미지 그룹을 융합할 수 있으므로, 이미지 수가 적은 이미지 그룹을 융합하는 경우, 먼저 연결관계가 제일 강한 두 개의 이미지 그룹을 융합하여, 이미지 수가 적은 이미지 그룹에 대해 융합을 수행하는 동시에, 융합하여 획득된 이미지 그룹 내 각 이미지 간의 연결관계가 비교적 강하여, 융합하여 획득된 이미지 그룹에 대해 3 차원 재구성을 수행하는 재구성 결과의 로버스트가 좋은 것을 보장할 수 있다.In this embodiment, since two image groups corresponding to the maximum connection weight can be fused in each iteration, when fusing an image group with a small number of images, first, the two image groups having the strongest connection relationship are fused, At the same time as performing fusion on a small number of image groups, the connection between each image in the image group obtained by fusion is relatively strong, so that the robustness of the reconstruction result of performing 3D reconstruction on the image group obtained by fusion is good. can be guaranteed

전술한 실시예의 발명 컨셉을 기반으로, 본 발명의 실시예는 3 차원 재구성 중 이미지 그루핑 방법을 더 제출한다. 도 9를 참조하면, 도 9는 본 발명의 실시예에 예시된 3 차원 재구성 중 이미지 그루핑 방법의 방법 흐름도이다. 도 9에 도시된 바와 같이, 상기 방법은 아래의 단계를 포함한다.Based on the inventive concept of the foregoing embodiment, the embodiment of the present invention further presents an image grouping method during three-dimensional reconstruction. Referring to FIG. 9 , FIG. 9 is a method flowchart of an image grouping method during 3D reconstruction exemplified in an embodiment of the present invention. As shown in Fig. 9, the method includes the following steps.

S902 단계에 있어서, 그루핑될 이미지 집합 중 각 이미지를 각각 하나의 이미지 그룹으로 할 때, 상기 그루핑될 이미지 집합에 대응하는 모듈성을 계산한다.In step S902, when each image among the image sets to be grouped is regarded as one image group, modularity corresponding to the image set to be grouped is calculated.

S904 단계에 있어서, 상기 그루핑될 이미지 집합에 포함된 복수 개의 이미지 그룹을 둘씩 조합할 때 각 조합에 대응하는 모듈성의 증분을 각각 계산하여 증분 집합을 획득한다.In step S904, when a plurality of image groups included in the image set to be grouped are combined in pairs, an increment of modularity corresponding to each combination is calculated to obtain an incremental set.

S906 단계에 있어서, 상기 증분 집합에 포함된 최대 증분을 확정하고, 상기 최대 증분이 0에 도달하였는지 여부를 더 확정하며, 0에 도달한 경우, 상기 최대 증분에 대응하는 기록된 두 개의 이미지 그룹을 합병하여 합병 이미지 그룹을 획득하고 상기 증분 집합을 업데이트하는 단계를, 상기 그루핑될 이미지 집합에 유일한 이미지 그룹이 포함될 때까지, 반복적으로 수행한다. In step S906, the maximum increment included in the set of increments is determined, further determining whether the maximum increment has reached 0, and if the maximum increment has reached 0, the recorded two image groups corresponding to the maximum increment are selected. The steps of merging to obtain a merged image group and updating the incremental set are repeatedly performed until a unique image group is included in the to-be-grouped image set.

S908 단계에 있어서, 매회의 반복에서, 상기 최대 증분이 0에 도달하지 않은 경우, 이상의 반복 단계를 종료하고, 이번 반복의 이전번 반복에서 합병된 이미지 조합 방식을 상기 그루핑될 이미지 집합에 대한 최종 이미지 그루핑 결과로 한다.In step S908, in each iteration, if the maximum increment does not reach 0, the above iteration steps are terminated, and the merged image combination method in the previous iteration of this iteration is used as the final image for the set of images to be grouped. As a result of grouping.

S910 단계에 있어서, 상기 그루핑될 이미지 집합이 유일한 이미지 그룹을 포함하는 경우, 상기 그루핑될 이미지 집합에 포함된 각 이미지를 하나의 이미지 그룹으로 분할한다.In step S910, when the image set to be grouped includes a unique image group, each image included in the image set to be grouped is divided into one image group.

상기 실시예에서 매회의 반복 과정 중 합병 조작 후, 현재 이미지 조합 형식에 대응하는 모듈성 변화 추이에 대한 분석을 기반으로, 모듈성이 최대치에 도달한 경우, 그 후 반복을 수행하면 모듈성이 단조 감소한다. In the above embodiment, after the merging operation in each iteration process, based on the analysis of the change trend of modularity corresponding to the current image combination format, when the modularity reaches the maximum value, the modularity monotonically decreases when iteration is performed thereafter.

따라서, 매번 합병 조작을 수행하기 전에, 이번 합병이 모듈성의 감소를 초래할 것인지 여부를 판단하여, 모듈성의 감소를 초래하지 않는 경우, 합병 조작을 수행하고, 그렇지 않은 경우, 합병을 종료하고, 이전번 반복 후의 이미지 조합 방식을 상기 그루핑될 이미지 집합에 대한 최종 이미지 그루핑 결과로 할 수 있다.Therefore, before performing the merging operation each time, it is judged whether this merging will result in a reduction in modularity, and if it does not result in a reduction in modularity, the merging operation is performed; otherwise, the merging operation is terminated, and the previous The image combination method after repetition may be used as a final image grouping result for the set of images to be grouped.

일부 실시예에서, 현재 반복에서 최대 모듈성 증분이 0에 도달하였는지 여부를 판단할 수 있으며, 0에 도달한 경우, 이번 합병 후, 상기 모듈성이 적어도 감소되지 않는 것을 설명한다. 그러나, 현재 반복에서 최대 모듈성 증분이 음수인 것을 발견한 경우, 이번 합병 후, 상기 모듈성이 감소되고, 그 후 합병 조작을 수행할 때마다, 모듈성이 계속하여 감소되는 것을 설명한다. In some embodiments, it may be determined whether the maximum modularity increment has reached 0 in the current iteration, and if it has reached 0, this demonstrates that the modularity is at least not reduced after this merger. However, if we find that the maximum modularity increment in the current iteration is negative, we explain that after this merging, the modularity is reduced, and then every time a merging operation is performed, the modularity continues to be reduced.

상술한 기술적 방안으로부터 알 수 있듯이, 한편으로, 상기 방법은 매회의 반복 단계에서 최대 모듈성의 증분에 대응하는 두 개의 이미지 그룹을 합병하여, 매번 합병 후 이미지의 조합 방식이 이번 합병에서 이룰 수 있는 최적 조합 방식이도록 보장한다.As can be seen from the above technical solution, on the one hand, the method merges the two image groups corresponding to the increment of the maximum modularity in each iteration step, so that the image combination method after each merge is the optimum that can be achieved in this merger. Make sure it's a combination.

다른 한편으로, 매번 합병 조작을 수행하기 전에, 이번 합병이 모듈성의 감소를 초래할 것인지 여부를 판단하여, 모듈성의 감소를 초래하지 않는 경우, 합병 조작을 수행하고, 그렇지 않은 경우, 합병을 종료하고, 이전번 반복 후의 이미지 조합 방식을 상기 그루핑될 이미지 집합에 대한 최종 이미지 그루핑 결과로 할 수 있다. 따라서, 반복 과정에서 모듈성이 제일 클 때 대응하는 이미지 그루핑 방식을 상기 그루핑될 이미지 집합에 대한 이미지 그루핑 결과로 확정하여, 분할된 각 그룹 내부의 이미지 간의 연결관계가 비교적 강하고 각 그룹 내부의 이미지와 다른 그룹 간의 연결관계가 비교적 약하도록 보장하여, 이미지 그루핑의 정확도를 향상시키고, 나아가 이미지 그루핑을 기반으로 3 차원 재구성을 수행하는 로버스트를 향상시킨다. On the other hand, before performing the merging operation each time, it is judged whether this merging will result in a reduction in modularity, and if it does not result in a reduction in modularity, the merging operation is performed; otherwise, the merging is terminated; The image combination method after the previous iteration may be used as the final image grouping result for the set of images to be grouped. Therefore, in the iterative process, the corresponding image grouping method when the modularity is the largest is determined as the image grouping result for the image set to be grouped, so that the connection relationship between the images inside each divided group is relatively strong and different from the image inside each group. By ensuring that the connection relationship between groups is relatively weak, the accuracy of image grouping is improved, and furthermore, the robustness of performing 3D reconstruction based on image grouping is improved.

일부 실시예에서, 도 10을 참조하면, 도 10은 본 발명의 실시예에 예시된 3 차원 재구성 중 이미지 그루핑 방법을 실제 장면에 응용하는 흐름 예시도이다. 도 10은 본 실시예 중 이미지 그룹 방법의 3 개 과정(장면도를 구성, 이미지 그룹을 생성, 이미지 그룹을 융합하는 과정)을 도시하였으며, 이하 상세히 설명한다.In some embodiments, referring to FIG. 10 , FIG. 10 is a flow diagram illustrating application of the image grouping method during 3D reconstruction exemplified in an embodiment of the present invention to a real scene. 10 shows three processes (processes of constructing a scene diagram, generating an image group, and merging image groups) of the image group method in this embodiment, which will be described in detail below.

장면도를 구성하는 과정에 대해, 상기 기기는 진실한 장면에서 수집된 복수 개의 진실한 장면 이미지에 대해 특징 추출과 특징 매칭을 수행하여 구현할 수 있다. 구체적으로, 특징 추출 과정에서, 각 진실한 장면 이미지로부터 복수 개의 특징 포인트를 추출하는 것을 포함한다. 예시적으로, harris 코너를 특징 포인트로 추출하고, 각 특징 포인트 주변의 사전 설정된 영역의 그레이 히스토그램(gray histogram)을 통계하며, 해당 특징 포인트를 설명하는 특징 벡터를 생성하고, 예시적으로, 128 차원의 특징 벡터일 수 있다. 더 나아가, 각 진실한 장면 이미지 중 각 특징 포인트의 대응하는 특징 벡터를 획득한다. 특징 매칭 과정에서, 각 진실한 장면 이미지에 대응하는 특징 벡터 집합에 따라, 두 개의 진실한 장면 이미지 간의 매칭 관계를 계산할 수 있다. 구체적으로, 하나의 진실한 장면 이미지 중 하나의 특징 포인트에 대해, 다른 진실한 장면 이미지 중에서 해당 특징 포인트와 유사한 특징 포인트를 찾아 하나의 매칭 포인트 쌍으로 하는 것을 포함한다. 특징 포인트 간의 유사도는 각각에 대응하는 특징 벡터 간의 유클리디언 거리로 평가할 수 있다. 두 개의 진실한 장면 이미지 사이에서 매칭된 매칭 포인트 쌍의 개수가 사전 설정된 매칭 개수 임계치보다 큰 경우, 두 개의 진실한 장면 이미지를 매칭 이미지로 확정한다. Regarding the process of constructing the scene map, the device may implement feature extraction and feature matching on a plurality of true scene images collected from the true scene. Specifically, in the feature extraction process, a plurality of feature points are extracted from each true scene image. Exemplarily, the harris corner is extracted as a feature point, a gray histogram of a preset area around each feature point is statistic, a feature vector describing the feature point is generated, and exemplarily, a 128-dimensional may be a feature vector of Furthermore, a corresponding feature vector of each feature point in each true scene image is obtained. In the feature matching process, a matching relationship between two true scene images may be calculated according to a set of feature vectors corresponding to each true scene image. Specifically, for one feature point of one true scene image, finding a feature point similar to the corresponding feature point among other true scene images to form a pair of matching points. The degree of similarity between feature points can be evaluated by the Euclidean distance between feature vectors corresponding to each. If the number of matching point pairs matched between the two true scene images is greater than a preset matching number threshold, the two true scene images are determined as matching images.

일부 실시예에서, 특징 추출은 크기 불변 특징 변환(Scale-invariant feature transform, SIFT) 특징 추출 방법을 적용할 수도 있으며, 구체적으로 실제 정황에 따라 선택하며, 본 발명의 실시예는 한정하지 않는다. In some embodiments, a scale-invariant feature transform (SIFT) feature extraction method may be applied to feature extraction, which is specifically selected according to actual circumstances, and embodiments of the present invention are not limited thereto.

일부 실시예에서, 특징 매칭을 수행할 때, 비극대치 억제 및 양방향 매칭 일관성을 적용하여, 잘못된 매칭을 제거할 수도 있다. 또는, 텍스처가 약하거나 시각 변화가 큰 일부 장면에 대해, 매칭된 매칭 포인트 쌍의 개수가 사전 설정된 최소 매칭 개수 임계치보다 작은 경우, 기 매칭된 매칭 포인트 쌍을 통해 대응하는 두 개의 진실한 장면 이미지 간의 기본 행렬을 획득할 수 있으며, 기본 행렬을 통해 이미지 간 에피폴라 기하학적 제약을 제공하여 유사한 특징의 검색 범위가 에피폴라 라인으로 한정되어 매칭이 크게 향상된다. In some embodiments, when performing feature matching, non-replacement suppression and bi-directional matching consistency may be applied to eliminate false matches. Alternatively, for some scenes with weak texture or large visual variance, when the number of matched matching point pairs is less than the preset minimum matching number threshold, the basis between the two corresponding true scene images is obtained through previously matched matching point pairs. A matrix can be obtained, and by providing epipolar geometric constraints between images through a default matrix, the search range of similar features is limited to epipolar lines, and matching is greatly improved.

이미지 그룹 생성 과정은, 상술한 S202 단계 내지 S208 단계 중 방법 또는 상술한 S902 단계 내지 S910 단계 중 방법을 통해, 유일한 이미지 그룹을 획득할 때까지, 이미지 그루핑, 모듈성 계산, 및 모듈성을 기반으로 반복 합병을 수행하는 과정을 수행하고, S208 단계에서 획득된 최대 모듈성에 대응하는 이미지 그루핑 방식을 이미지 그루핑의 초보적인 결과로 하거나, S209 단계에서 획득된 그루핑될 집합에 포함된 각 이미지를 하나의 이미지 그룹으로 분할하여, 이미지 그루핑의 초보적인 결과를 획득할 수 있다. The image group generation process is repeated through image grouping, modularity calculation, and merging based on modularity until a unique image group is obtained through the method of steps S202 to S208 described above or the method of steps S902 to S910 described above. , and the image grouping method corresponding to the maximum modularity obtained in step S208 is a rudimentary result of image grouping, or each image included in the set to be grouped obtained in step S209 is grouped into one image group. By segmentation, it is possible to obtain rudimentary results of image grouping.

여기서, S204 단계 또는 S904 단계를 수행하는 과정에서, 생성된 장면도로부터 각 영역 간의 연결관계를 획득하고, 이미지 그루핑을 수행할 때 연결관계가 구비된 이미지 그룹만 조합하여, 모듈성 증분의 계산량을 감소하고, 이미지 그룹을 생성하는 효율을 향상시킬 수 있다. Here, in the process of performing step S204 or step S904, the connection relationship between each region is obtained from the generated scene map, and when image grouping is performed, only image groups having a connection relationship are combined to reduce the amount of computation of modularity increments. and improve the efficiency of generating image groups.

이미지 그룹 융합 과정은, 먼저 이미지 그루핑의 초보적인 결과에서, 각 이미지 그룹 중 이미지 수에 따라, 포함된 이미지 수가 적은 융합될 이미지 그룹을 확정하고, 각 두 개의 융합될 이미지 그룹 간의 연결 가중치를 연결 가중치 집합으로 계산할 수 있다. 또한, 각 융합될 이미지 그룹에 일대일로 대응하는 이진 트리를 이용하여, 최대 연결 가중치에 대응하는 두 개의 융합될 이미지 그룹 중 포함된 이미지 수가 보다 큰 하나의 융합될 이미지 그룹 중 이미지 수가 제2 사전 설정된 개수 임계치에 도달하지 않은 경우, 최대 연결 가중치에 대응하는 두 개의 융합될 이미지 그룹을 융합하고, 융합 결과에 따라 이진 트리와 연결 가중치의 업데이트를 수행하며, 상기 연결 가중치 집합에 연결 가중치가 포함되지 않을 때에, 융합될 이미지 그룹을 융합하여 획득된 이미지 그룹, 및 상기 융합될 이미지 그룹을 제외한 나머지 그룹을 최종 이미지 그루핑 결과로 한다. In the image group fusion process, first, in the initial result of image grouping, according to the number of images in each image group, an image group to be fused with a small number of images is determined, and the connection weight between each two image groups to be fused is set as a connection weight can be computed as a set. In addition, by using a binary tree corresponding to each image group to be merged one-to-one, the number of images among two image groups to be merged corresponding to the maximum connection weight is greater than the number of images included in the second preset image group. If the number threshold is not reached, the two to-be-fused image groups corresponding to the maximum connection weight are fused, the binary tree and the connection weight are updated according to the fusion result, and the connection weight is not included in the connection weight set. At this time, the image group obtained by merging the image group to be merged and the remaining groups excluding the image group to be merged are used as the final image grouping result.

상술한 기술적 방안으로부터 알 수 있듯이, 모듈성을 기반으로 이미지 그룹을 생성하는 과정은, 동일한 그룹 내 이미지의 연결성이 강하고 서로 다른 그룹 간의 연결성이 약한 것을 구현할 수 있으며, 이에 따라 이미지 그루핑의 정확도를 향상시키고, 동일한 그룹 내 이미지 재구성 성공률 및 전반 재구성 효율이 더 높으며, 3 차원 재구성의 로버스트를 향상시킨다. 또한, 이미지 그룹 융합 과정은, 이미지 수가 적은 이미지 그룹을 융합할 때, 먼저 연결관계가 제일 강한 두 개의 이미지 그룹을 융합하며, 이에 따라 이미지 수가 적은 이미지 그룹을 융합하여, 이미지 그룹의 균일성을 보장하는 동시에, 융합하여 획득된 최종 이미지 그룹 내 각 이미지 간의 연결관계가 비교적 강하도록 보장하여, 융합하여 획득된 최종 이미지 그룹에 대해 3 차원 재구성을 수행하는 재구성 결과의 로버스트를 보장할 수 있다.As can be seen from the above technical scheme, the process of generating image groups based on modularity can implement strong connectivity of images in the same group and weak connectivity between different groups, thereby improving the accuracy of image grouping and , the image reconstruction success rate and overall reconstruction efficiency within the same group are higher, and improve the robustness of three-dimensional reconstruction. In addition, in the image group fusion process, when merging image groups with a small number of images, first fusion of two image groups having the strongest connection relationship is performed, and accordingly, image groups with a small number of images are fused to ensure uniformity of the image groups. At the same time, it is possible to ensure that the connection relationship between each image in the final image group obtained by fusion is relatively strong, thereby ensuring robustness of the reconstruction result of performing 3D reconstruction on the final image group obtained by fusion.

본 발명의 실시예는 3 차원 재구성 중 이미지 그루핑 장치를 더 제출하며, 도 11을 참조하면, 도 11은 본 발명에 의해 예시된 3 차원 재구성 중 이미지 그루핑 장치의 구성도이다. 도 11에 도시된 바와 같이, 상기 장치(100)는Embodiments of the present invention further provide an apparatus for grouping images during 3D reconstruction, and referring to FIG. 11 , FIG. 11 is a configuration diagram of an apparatus for grouping images during 3D reconstruction exemplified by the present invention. As shown in Figure 11, the device 100

그루핑될 이미지 집합 중 각 이미지를 각각 하나의 이미지 그룹으로 하여, 상기 그루핑될 이미지 집합에 대응하는 모듈성을 계산하도록 구성되는 제1 계산부(101);a first calculator 101 configured to calculate modularity corresponding to the image set to be grouped by taking each image of the image set to be grouped as one image group;

상기 그루핑될 이미지 집합에 포함된 복수 개의 이미지 그룹을 둘씩 조합하고, 각 조합에 대응하는 모듈성의 증분을 각각 계산하여 증분 집합을 획득하도록 구성되는 제1 생성부(102);a first generation unit 102 configured to combine a plurality of image groups included in the image set to be grouped by two, and to obtain an incremental set by calculating each increment of modularity corresponding to each combination;

상기 증분 집합 중 최대 증분을 확정하고 상기 최대 증분에 대응하는 두 개의 이미지 그룹을 합병하여 합병 이미지 그룹을 획득하며 상기 그루핑될 이미지 집합에 대응하는 모듈성 및 상기 증분 집합을 업데이트하는 단계를, 상기 그루핑될 이미지 집합에 유일한 이미지 그룹이 포함될 때까지 반복적으로 수행하도록 구성되는 제1 합병부(103);determining a maximum increment in the incremental set, merging two image groups corresponding to the maximum increment to obtain a merged image group, and updating the modularity corresponding to the image set to be grouped and the incremental set; a first merging unit 103 configured to perform iteratively until a unique image group is included in the image set;

상기 그루핑될 이미지 집합에 유일한 이미지 그룹이 포함되는 경우, 기록된 매회의 반복에서, 업데이트된 모듈성 중 최대 모듈성을 확정하고, 상기 최대 모듈성에 대응하는 이미지 조합 방식을 상기 그루핑될 이미지 집합에 대한 이미지 그루핑 결과로 확정하도록 구성되는 제1 그룹 확정부(104)를 포함한다.When a unique image group is included in the set of images to be grouped, the maximum modularity among the updated modularities is determined in each recorded iteration, and an image combination method corresponding to the maximum modularity is selected as image grouping for the set of images to be grouped. and a first group determination unit 104 configured to determine a result.

예시된 일 실시예에서, 상기 제1 그룹 확정부(104)는 또한,In the illustrated embodiment, the first group determination unit 104 also,

상기 최대 모듈성이 사전 설정된 임계치에 도달하였는지 여부를 확정하고;determine whether the maximum modularity has reached a preset threshold;

상기 최대 모듈성이 상기 사전 설정된 임계치에 도달한 경우, 상기 최대 모듈성에 대응하는 이미지 조합 방식을 상기 그루핑될 이미지 집합에 대한 이미지 그루핑 결과로 확정하며;when the maximum modularity reaches the preset threshold, determining an image combining method corresponding to the maximum modularity as an image grouping result for the image set to be grouped;

상기 최대 모듈성이 상기 사전 설정된 임계치에 도달하지 않은 경우, 상기 그루핑될 이미지 집합에 포함된 각 이미지를 독립된 이미지 그룹으로 하도록 구성된다.When the maximum modularity does not reach the preset threshold, each image included in the set of images to be grouped is configured to be an independent image group.

예시된 일 실시예에서, 상기 제1 생성부(102)는 또한,In one illustrated embodiment, the first generator 102 also,

상기 복수 개의 이미지 그룹 중, 연결관계가 구비된 이미지 그룹을 둘씩 조합하고, 연결관계가 구비된 이미지 그룹의 그룹 식별자 간의 대응관계를 기록하도록 구성되고,Among the plurality of image groups, image groups having a connection relationship are combined by two, and a correspondence relationship between group identifiers of the image groups having a connection relationship is recorded.

연결관계가 구비된 두 개의 이미지 그룹은, 상기 두 개의 이미지 그룹 중 제1 이미지 그룹과 제2 이미지 그룹 중 이미지 간의 유사도가 사전 설정된 유사도 임계치에 도달한 것을 가리킨다.The two image groups having a connection relationship indicate that a similarity between images of a first image group and a second image group of the two image groups reaches a preset similarity threshold.

예시된 일 실시예에서, 상기 증분 집합은 조합하는 것으로 가정된 두 개의 이미지 그룹의 그룹 식별자와, 상기 두 개의 이미지 그룹을 합병하는 것으로 가정하고 계산하여 획득된 상기 증분 간의 대응관계를 포함하며;In an illustrated embodiment, the incremental set includes a correspondence between a group identifier of two image groups assumed to be combined and the incremental obtained by calculating and assuming merging the two image groups;

상기 제1 합병부(103)는 또한,The first merger 103 also,

기록된 연결관계가 구비된 이미지 그룹의 그룹 식별자 간의 대응관계를 검색하여, 상기 최대 증분에 대응하는 두 개의 이미지 그룹 중 어느 한 이미지 그룹과 연결관계가 구비된 다른 이미지 그룹을 확정하고;Searching for a correspondence between group identifiers of image groups having a recorded connection relationship, determining another image group having a connection relationship with one of the two image groups corresponding to the maximum increment;

상기 다른 이미지 그룹을 각각 상기 두 개의 이미지와 합병하는 것으로 가정하고 획득된 상기 증분을 확정하고, 확정된 상기 증분을 더하여 획득된 결과를, 합병 이미지 그룹을 상기 다른 이미지 그룹과 합병하는 것으로 가정한 후 상기 모듈성의 증분으로 하며;Assuming that the different image groups are merged with the two images respectively, and the obtained increment is determined, and the result obtained by adding the determined increment is assumed, the merged image group is assumed to be merged with the other image group, and then as an increment of the modularity;

상기 합병 이미지 그룹, 상기 다른 이미지 그룹 각각의 그룹 식별자와, 양자를 합병하는 것으로 가정하고 획득된 상기 모듈의 증분 간의 대응관계를, 상기 증분 집합에 기록하도록 구성된다.and record a correspondence between a group identifier of each of the merged image group and the other image group, and the increment of the module obtained assuming that both are merged, in the increment set.

예시된 일 실시예에서, 상기 장치(100)는,In one illustrated embodiment, the device 100,

매회의 반복 과정에서, 상기 증분 집합을 업데이트한 후, 상기 합병 이미지 그룹의 그룹 식별자와 상기 다른 이미지 그룹의 그룹 식별자 간의 대응관계를 기록하도록 구성되는 제1 기록부를 더 포함한다.and a first recording unit, configured to record a correspondence between the group identifier of the merged image group and the group identifier of the other image group after updating the incremental set in each iteration process.

예시된 일 실시예에서, 상기 장치(100)는,In one illustrated embodiment, the device 100,

매회의 반복 과정에서, 합병하여 획득된 합병 이미지 그룹, 및 상기 합병 이미지 그룹의 그룹 식별자와 합병된 상기 두 개의 이미지 그룹의 그룹 식별자 간의 대응관계를 기록하도록 구성되는 제2 기록부를 더 포함한다.A second recording unit configured to record a merged image group obtained by merging and a correspondence between a group identifier of the merged image group and a group identifier of the merged two image groups in each repetition process.

예시된 일 실시예에서, 상기 합병 이미지 그룹은 상기 합병 이미지 그룹을 생성하는 반복에서 업데이트된 모듈성에 대응하고; 상기 이미지 그룹의 그룹 식별자는 상기 이미지 그룹에 포함된 각 이미지를 지시하는 대응하는 이미지 식별자에 대응하며;In one illustrated embodiment, the merge image group corresponds to an updated modularity in an iteration of creating the merge image group; a group identifier of the image group corresponds to a corresponding image identifier indicating each image included in the image group;

상기 제1 그룹 확정부(104)는 또한,The first group determination unit 104 also,

마지막 반복에서 기록된 합병 이미지 그룹으로부터 시작하여, 반복 발생 순서에 따라, 매회의 반복에서 기록된 합병 이미지 그룹에 대해 역순으로,Starting from the group of merged images recorded in the last iteration, and in reverse order for the group of merged images recorded in each iteration, according to the order of occurrence of the iterations,

이미지 조합 방식을 확인하기 위한 식별자 집합에 상기 합병 이미지 그룹의 그룹 식별자가 포함되는지 여부를 확정하고, 상기 식별자 집합에 상기 합병 이미지 그룹의 그룹 식별자가 포함되지 않는 경우, 상기 합병 이미지 그룹의 그룹 식별자를 상기 식별자 집합에 기입하는 단계;It is determined whether the group identifier of the merged image group is included in the identifier set for checking the image combination method, and if the identifier set does not include the group identifier of the merged image group, the group identifier of the merged image group is determined. writing to the set of identifiers;

상기 합병 이미지 그룹에 대응하는 업데이트된 모듈성이 기록된 매회의 반복에서 업데이트된 모듈성 중 최대 모듈성인지 여부를 확정하는 단계;determining whether an updated modularity corresponding to the merged image group is a maximum modularity among updated modularities in each recorded iteration;

상기 합병 이미지 그룹에 대응하는 업데이트된 모듈성이 기록된 매회의 반복에서 업데이트된 모듈성 중 최대 모듈성인 경우, 상기 식별자 집합에 포함된 각 그룹 식별자에 대응하는 이미지 식별자가 지시하는 이미지를 하나의 이미지 조합으로 하고, 획득된 각 이미지 조합을 상기 그루핑될 이미지 집합에 대한 이미지 그루핑 결과로 확정하는 단계를 수행하도록 구성된다.If the updated modularity corresponding to the merged image group is the maximum modularity among the updated modularity in each recording iteration, the image indicated by the image identifier corresponding to each group identifier included in the identifier set is converted into one image combination. and determining each obtained image combination as an image grouping result for the set of images to be grouped.

예시된 일 실시예에서, 상기 장치(100)는,In one illustrated embodiment, the device 100,

상기 합병 이미지 그룹에 대응하는 업데이트된 모듈성이 기록된 매회의 반복에서 업데이트된 모듈성 중 최대 모듈성이 아닌 경우, 상기 식별자 집합에 기록된 상기 합병 이미지 그룹의 그룹 식별자를, 상기 합병 이미지 그룹에 대응하는 합병전 두 개의 이미지 그룹의 그룹 식별자로 교체하도록 구성되는 교체부를 더 포함한다.When the updated modularity corresponding to the merged image group is not the largest modularity among the updated modularities in each recording iteration, a group identifier of the merged image group recorded in the identifier set is selected as the merged image group corresponding to the merged image group. and a replacement unit configured to replace the group identifiers of the previous two image groups.

예시된 일 실시예에서, 상기 교체부는 또한,In one illustrated embodiment, the replacement unit also,

이번 반복에서 업데이트된 모듈성이 이번 반복에 대응하는 이전번 반복에서 업데이트된 모듈성에 도달하였는지 여부를 확정하고;determine whether the modularity updated in this iteration has reached the modularity updated in the previous iteration corresponding to this iteration;

도달한 경우, 이번 반복에서 업데이트된 상기 모듈성을 상기 최대 모듈성으로 확정하도록 구성된다.If reached, it is configured to determine the modularity updated in this iteration as the maximum modularity.

예시된 일 실시예에서, 상기 제1 생성부(102)는 또한,In one illustrated embodiment, the first generator 102 also,

조합하는 것으로 가정하고 계산하여 획득된 각 상기 증분에 대해,For each of the above increments obtained by calculating and assuming a combination,

조합하는 것으로 가정하는 것은 조합하는 것으로 가정된 두 개의 이미지 그룹 각각에 대한 것이고, 이에 대응하는 이진 트리를 확정하고, 상기 증분, 및 상기 조합하는 것으로 가정된 두 개의 이미지의 그룹 식별자를 상기 확정된 이진 트리에 기입하는 단계를 수행하도록 구성되고,Assume combining is for each group of two images hypothesized to combine, determine a binary tree corresponding thereto, and set the increment, and the group identifier of the two images hypothesized to combine, to the determined binary tree. configured to perform the step of writing to the tree;

상기 이진 트리의 루트 노드에는 상기 이진 트리에 기록된 모든 증분 중 최대 증분 및 상기 최대 증분에 대응하는 그룹 식별자가 기록된다.At the root node of the binary tree, the maximum increment among all increments recorded in the binary tree and a group identifier corresponding to the maximum increment are recorded.

예시된 일 실시예에서, 상기 제1 생성부(102)는 또한,In one illustrated embodiment, the first generator 102 also,

각 이미지 그룹에 대응하는 상기 이진 트리의 루트 노드 포인터를 최대 증분을 확정하기 위한 최대 힙에 푸시하고;push the root node pointer of the binary tree corresponding to each image group to the maximum heap to determine the maximum increment;

상기 최대 힙의 루트 노드에 기록된 포인터를 확정하며;determine a pointer recorded in a root node of the maximum heap;

상기 기록된 포인터가 지시하는 노드에 기록된 증분을 상기 증분 집합에 포함된 최대 증분으로 확정하도록 구성된다.and determine the increment recorded at the node pointed by the recorded pointer as the largest increment included in the set of increments.

예시된 일 실시예에서, 상기 장치(100)는,In one illustrated embodiment, the device 100,

획득된 각 이미지 그룹에서, 포함된 이미지 수가 제1 사전 설정된 개수 임계치보다 작은 이미지 그룹을 확정하고, 확정된 이미지 그룹을 융합될 이미지 그룹으로 확정하도록 구성되는 융합될 이미지 그룹 확정부 - 상기 제1 사전 설정된 임계치는 각 그룹 중 최소 이미지 수를 지시함 - ;an image group to be merged determining unit, configured to determine, in each acquired image group, an image group whose number of included images is smaller than a first preset number threshold, and determine the determined image group as an image group to be merged - the first dictionary The set threshold indicates the minimum number of images in each group;

상기 각 이미지 그룹 중 상기 융합될 이미지 그룹을 제외한 나머지 그룹을 나머지 그룹으로 확정하도록 구성되는 나머지 그룹 확정부;a remaining group determining unit configured to determine remaining groups other than the to-be-fused image group among the image groups as remaining groups;

상기 융합될 그룹 중 각 두 개의 이미지 그룹 간의 연결 가중치를 계산하고 연결 가중치 집합을 구성하도록 구성되는 연결 가중치 계산부 - 상기 연결 가중치는 두 개의 이미지 그룹 간에 매칭되는 이미지 수를 지시함 - ;a connection weight calculation unit configured to calculate a connection weight between each two image groups among the groups to be fused and configure a connection weight set, wherein the connection weight indicates the number of images matched between the two image groups;

상기 연결 가중치 집합에 따라, 상기 융합될 이미지 그룹을 융합하는 그룹 융합부를 더 포함한다.A group fusion unit for merging the image groups to be fused according to the set of connection weights is further included.

예시된 일 실시예에서, 상기 그룹 융합부는 또한,In one illustrated embodiment, the group fusion unit also,

상기 연결 가중치 집합에 어느 연결 가중치도 포함하지 않을 때까지,Until no connection weight is included in the connection weight set,

상기 연결 가중치 집합 중 최대 연결 가중치를 확정하는 단계;determining a maximum connection weight among the set of connection weights;

상기 최대 연결 가중치에 대응하는 두 개의 이미지 그룹 중에서, 개수가 보다 큰 하나의 이미지 그룹 중 이미지 수가 제2 사전 설정된 개수 임계치에 도달하였는지 여부를 확정하는 단계 - 상기 제2 사전 설정된 개수 임계치는 각 이미지 그룹 중 최대 이미지 수를 지시함 - ;determining whether the number of images in one of the two image groups corresponding to the maximum concatenation weight has reached a second preset number threshold, wherein the second preset number threshold is set for each image group - Indicates the maximum number of images among ;

상기 제2 사전 설정된 개수 임계치에 도달한 경우, 이번 반복을 종료하는 단계;terminating this iteration if the second preset number threshold is reached;

상기 제2 사전 설정된 개수 임계치에 도달하지 않은 경우, 상기 두 개의 이미지 그룹을 합병하여 합병 이미지 그룹을 획득하고 상기 연결 가중치 집합을 업데이트하는 단계;merging the two image groups to obtain a merged image group and updating the concatenation weight set when the second preset number threshold is not reached;

상기 연결 가중치 집합에 어느 연결 가중치도 포함되지 않는 경우, 상기 융합될 그룹에 포함된 이미지 그룹 및 상기 나머지 그룹 중 이미지 그룹을, 상기 그루핑될 이미지 집합에 대한 최종 이미지 그룹으로 하는 단계를 반복적으로 수행하도록 구성된다.When no connection weight is included in the connection weight set, to repeatedly perform the step of making an image group included in the group to be fused and an image group among the remaining groups as a final image group for the set of images to be grouped. It consists of

예시된 일 실시예에서, 상기 연결 가중치 계산부는,In one illustrated embodiment, the connection weight calculation unit,

상기 융합될 그룹 중 각 이미지 그룹에 대해, 상기 각 이미지 그룹에 일대일로 대응하는 이진 트리를 생성하고;for each image group of the to-be-fused group, a binary tree corresponding to each image group on a one-to-one basis is generated;

상기 융합될 그룹 중 각 두 개의 이미지 그룹 간의 연결 가중치를 계산하고, 상기 연결 가중치, 및 상기 두 개의 이미지 그룹의 그룹 식별자를 상기 이진 트리의 노드에 기록하도록 구성되며, 상기 이진 트리의 루트 노드에는 각 이미지 그룹에 대응하는 각 연결 가중치 중 최대 연결 가중치, 및 상기 최대 연결 가중치에 대응하는 그룹 식별자가 기록된다.Calculate a connection weight between each two image groups of the group to be fused, and record the connection weight and a group identifier of the two image groups in a node of the binary tree, wherein each root node of the binary tree Among the linkage weights corresponding to the image group, a maximum linkage weight and a group identifier corresponding to the maximum linkage weight are recorded.

예시된 일 실시예에서, 상기 그룹 융합부는 또한,In one illustrated embodiment, the group fusion unit also,

상기 각 이미지 그룹에 대응하는 이진 트리의 루트 노드 포인터를 상기 최대 연결 가중치를 도출하기 위한 최대 힙에 푸시하고;push a root node pointer of the binary tree corresponding to each image group to a maximum heap for deriving the maximum connection weight;

상기 최대 힙의 루트 노드에 기록된 포인터를 판독하고, 상기 기록된 포인터가 지시하는 이진 트리 노드에 기록된 연결 가중치를 상기 최대 연결 가중치로 확정하도록 구성된다.Read a pointer recorded in a root node of the maximum heap, and determine a connection weight recorded in a binary tree node indicated by the recorded pointer as the maximum connection weight.

예시된 일 실시예에서, 상기 장치(100)는,In one illustrated embodiment, the device 100,

상기 최대 연결 가중치에 대응하는 두 개의 이미지 그룹 중 어느 하나에 대응하는 이진 트리가 널(null)인지 여부를 확정하고,Determine whether a binary tree corresponding to any one of the two image groups corresponding to the maximum connection weight is null;

널이 아닌 경우, 계속하여 후속 단계를 수행하고,If not null, continue with subsequent steps;

널인 경우, 현재 반복을 종료하도록 구성되는 데이터 확정부를 더 포함한다.If null, further comprising a data determination unit, configured to end the current iteration.

예시된 일 실시예에서, 상기 그룹 융합부는 또한,In one illustrated embodiment, the group fusion unit also,

합병된 상기 두 개의 이미지 그룹 각각에 대응하는 이진 트리를 삭제하고;delete a binary tree corresponding to each of the two merged image groups;

상기 합병 이미지 그룹과 상기 융합될 그룹 중 다른 그룹 간의 연결 가중치를 계산하고;calculate connection weights between the merged image group and other groups among the groups to be merged;

산출된 상기 연결 가중치, 및 상기 합병 이미지 그룹과 상기 다른 그룹의 그룹 식별자를 상기 다른 그룹에 대응하는 이진 트리에 기입하며;writing the calculated connection weight and group identifiers of the merged image group and the other group into a binary tree corresponding to the other group;

상기 다른 그룹에 대응하는 이진 트리에서, 상기 다른 그룹과, 합병된 상기 두 개의 이미지 그룹 간의 연결 가중치를 기록한 노드를 삭제하도록 구성된다.A node recording a connection weight between the other group and the merged two image groups is deleted from the binary tree corresponding to the other group.

본 발명의 실시예는 3 차원 재구성 중 이미지 그루핑 장치를 더 제출하며, 도 12를 참조하면, 도 12는 본 발명의 실시예에 의해 예시된 3 차원 재구성 중 이미지 그루핑 장치의 구성도이다. 도 12에 도시된 바와 같이, 상기 장치(110)는,Embodiments of the present invention further provide an apparatus for grouping images during 3D reconstruction, and referring to FIG. 12 , FIG. 12 is a configuration diagram of an apparatus for grouping images during 3D reconstruction exemplified by an embodiment of the present invention. As shown in FIG. 12, the device 110,

그루핑될 이미지 집합 중 각 이미지를 각각 하나의 이미지 그룹으로 하여, 상기 그루핑될 이미지 집합에 대응하는 모듈성을 계산하도록 구성되는 제2 계산부(111);a second calculator 111 configured to calculate modularity corresponding to the image set to be grouped by taking each image among the set of images to be grouped as one image group;

상기 그루핑될 이미지 집합에 포함된 복수 개의 이미지 그룹을 둘씩 조합할 때 각 조합에 대응하는 모듈성의 증분을 각각 계산하여 증분 집합을 획득하도록 구성되는 제2 생성부(112);a second generation unit 112 configured to obtain an incremental set by calculating an increment of modularity corresponding to each combination when combining the plurality of image groups included in the image set to be grouped by two;

상기 증분 집합에 포함된 최대 증분을 확정하고, 상기 최대 증분이 0에 도달하였는지 여부를 더 확정하며, 상기 최대 증분이 0에 도달한 경우, 상기 최대 증분에 대응하는 기록된 두 개의 이미지 그룹을 합병하여 합병 이미지 그룹을 획득하고 상기 증분 집합을 업데이트하는 단계를, 상기 그루핑될 이미지 집합에 유일한 이미지 그룹이 포함될 때까지, 반복적으로 수행하도록 구성되는 제2 합병부(113);Determine the maximum increment included in the set of increments, further determine whether the maximum increment reaches 0, and merge the two image groups recorded corresponding to the maximum increment if the maximum increment reaches 0. a second merging unit (113) configured to repeatedly perform the step of acquiring a merged image group and updating the incremental set until a unique image group is included in the to-be-grouped image set;

매회의 반복에서, 상기 최대 증분이 0에 도달하지 않은 경우, 이상의 반복 단계를 종료하고, 이번 반복의 이전번 반복에서 합병된 이미지 조합 방식을 상기 그루핑될 이미지 집합에 대한 최종 이미지 그루핑 결과로 하고;In each iteration, if the maximum increment does not reach 0, the above iteration steps are terminated, and the image combination method merged in the previous iteration of this iteration is taken as the final image grouping result for the image set to be grouped;

상기 그루핑될 이미지 집합이 유일한 이미지 그룹을 포함하는 경우, 상기 그루핑될 이미지 집합에 포함된 각 이미지를 하나의 이미지 그룹으로 분할하도록 구성되는 제2 그룹 확정부(114)를 포함한다.and a second group determination unit 114 configured to divide each image included in the image set to be grouped into one image group when the set of images to be grouped includes a unique image group.

설명할 것은, 이상 장치 실시예의 설명은 상술한 방법 실시예의 설명과 유사하며, 방법 실시예와 유사한 유익한 효과가 있다. 본 발명에 따른 장치 실시예에 개시되지 않은 기술적 세부는 본 발명에 따른 방법 실시예의 설명을 참조하여 이해하면 된다.It should be noted that the description of the device embodiments above is similar to that of the foregoing method embodiments, and has similar beneficial effects to those of the method embodiments. Technical details not disclosed in the device embodiments according to the present invention may be understood by referring to the description of the method embodiments according to the present invention.

본 발명에 의해 예시된 장치 실시예는 전자 기기에 응용될 수 있다. 장치 실시예는 소프트웨어를 통해 구현될 수도 있고, 하드웨어, 또는 소프트웨어 및 하드웨어 결합의 방식으로 구현될 수도 있다. 소프트웨어 구현을 예로 들면, 논리적 의미의 장치로서, 위치한 전자 기기의 프로세서를 통해 비휘발성 메모리에 대응하는 컴퓨터 프로그램 명령을 램에 읽어들여 실행하여 형성된 것이다. 하드웨어 측면에서, 도 13에 도시된 바와 같이, 도 13은 본 발명의 실시예에 의해 예시된 전자 기기의 하드웨어 구성도이다. 도 13에 도시된 프로세서, 램, 네트워크 인터페이스 및 비휘발성 메모리를 제외하고, 상황 중 장치가 위치한 전자 기기는 일반적으로 해당 전자 기기의 실제 기능에 따라, 다른 하드웨어를 더 포함할 수 있으며, 이에 대해 더 설명하지 않는다. The device embodiments exemplified by the present invention can be applied to electronic devices. Device embodiments may be implemented through software, hardware, or a combination of software and hardware. Taking a software implementation as an example, as a device in a logical sense, it is formed by reading and executing a computer program command corresponding to a non-volatile memory into a RAM through a processor of an electronic device located there. In terms of hardware, as shown in Fig. 13, Fig. 13 is a hardware configuration diagram of an electronic device exemplified by an embodiment of the present invention. Except for the processor, RAM, network interface, and non-volatile memory shown in FIG. 13, the electronic device in which the device is located may generally further include other hardware according to the actual function of the electronic device. don't explain

도 13에 도시된 전자 기기를 참조하면, 상기 전자 기기는, 프로세서; Referring to the electronic device shown in FIG. 13 , the electronic device includes a processor;

프로세서가 실행 가능한 명령을 기록하는 기록 장치를 포함하되,A recording device for recording instructions executable by the processor,

상기 프로세서는 상기 실행 가능한 명령을 실행하여, 상술한 어느 한 실시예에 예시된 3 차원 재구성 중 이미지 그루핑 방법을 구현한다.The processor executes the executable instructions to implement the image grouping method during 3D reconstruction exemplified in any one of the embodiments described above.

본 발명의 실시예는 상술한 어느 한 실시예에 예시된 3 차원 재구성 중 이미지 그루핑 방법을 수행하기 위한 컴퓨터 프로그램이 기록된 컴퓨터 판독 가능한 저장매체를 제출한다.An embodiment of the present invention submits a computer readable storage medium on which a computer program for performing the image grouping method during 3D reconstruction exemplified in any one of the above embodiments is recorded.

본 발명의 실시예는 컴퓨터 판독 가능한 코드가 포함된 컴퓨터 프로그램 제품을 더 제공하며, 컴퓨터 판독 가능한 코드는 전자 기기에서 실행되는 경우, 전자 기기 중 프로세서가 실행 시, 상술한 어느 한 실시예에 예시된 3 차원 재구성 중 이미지 그루핑 방법을 구현한다.Embodiments of the present invention further provide a computer program product including computer readable code, and the computer readable code, when executed in an electronic device, when executed by a processor in the electronic device, is exemplified in any one of the above embodiments. We implement an image grouping method during 3D reconstruction.

통상의 기술자가 이해할 것은, 본 발명에 따른 하나 또는 복수 개의 실시예는 방법, 시스템 또는 컴퓨터 프로그램 제품으로 제공될 수 있다. 따라서, 본 발명에 따른 하나 또는 복수 개의 실시예는 완전 하드웨어 실시예, 완전 소프트웨어 실시예 또는 소프트웨어와 하드웨어를 결합하는 측면의 실시예의 형식을 적용할 수 있다. 또한, 본 발명에 따른 하나 또는 복수 개의 실시예는 컴퓨터가 사용가능한 프로그램 코드가 포함된 하나 또는 복수 개의 컴퓨터 사용가능한 기록매체(자기 디스크 기록 장치, CD-ROM, 광 기록 장치 등을 포함하나 이에 한정되지 않음)에서 실시되는 컴퓨터 프로그램 제품의 형식을 적용할 수 있다.As will be appreciated by those skilled in the art, one or more embodiments according to the present invention may be provided as a method, system or computer program product. Therefore, one or more embodiments according to the present invention may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment of the aspect of combining software and hardware. In addition, one or a plurality of embodiments according to the present invention include one or a plurality of computer usable recording media (including but not limited to magnetic disk recording devices, CD-ROMs, optical recording devices, etc.) containing computer usable program codes. The format of the computer program product implemented in (not specified) can be applied.

본 발명에 기재된 '및…중 적어도 하나'는 양자 중 적어도 하나를 포함하는 것을 나타내며, 예를 들어, 'A 및 B 중 적어도 하나'는 3 가지 방안, 즉 A, B, 및 'A 및 B'를 포함한다.'And ... described in the present invention. 'At least one of' denotes including at least one of both, for example, 'at least one of A and B' includes three schemes: A, B, and 'A and B'.

본 발명 중 각 실시예는 모두 점진식 방식으로 설명되며, 각 실시예 사이에서 동일하거나 유사한 부분은 서로 참조하면 되며, 각 실시예에서 중점적으로 설명할 것은 모두 다른 실시예와의 상이점이다. 특히, 데이터 처리 기기 실시예에 있어서, 방법 실시예와 기본상 유사하므로 설명이 비교적 간단하며, 관련부분은 방법 실시예의 부분적 설명을 참조하면 된다.Each embodiment of the present invention is described in a progressive manner, the same or similar parts between each embodiment can be referred to each other, and the focus of each embodiment is the difference from other embodiments. In particular, in the data processing device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant part may refer to the partial description of the method embodiment.

상기에서 본 발명에 따른 특정 실시예를 설명한다. 다른 실시예는 첨부된 특허청구범위의 범위 내에 있다. 일부 경우, 특허청구범위에 기재된 행위 또는 단계는 상황에서와 다른 순서에 따라 수행될 수 있으며, 여전히 원하는 결과를 구현할 수 있다. 또한, 첨부도면에 그려진 과정은 원하는 결과를 구현하기 위해 도시된 특정 순서 또는 연속적인 순서를 반드시 필요로 하는 것은 아니다. 일부 실시방식에서, 멀티태스킹 처리 및 병렬 처리도 가능하거나 유리할 수 있다. In the above, specific embodiments according to the present invention are described. Other embodiments are within the scope of the appended claims. In some cases, the acts or steps recited in the claims can be performed in a different order than the circumstances and still achieve desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require a specific order or sequence shown in order to achieve a desired result. In some implementations, multitasking processing and parallel processing may also be possible or advantageous.

본 발명에서 설명된 테마 및 기능 조작의 실시예는, 디지털 전자 회로, 유형으로 구현된 컴퓨터 소프트웨어 또는 펌웨어, 본 발명에 개시된 구조 및 구조적 동등물을 포함하는 컴퓨터 하드웨어, 또는 이들 중 하나 또는 복수 개의 조합으로 구현될 수 있다. 본 발명에서 설명된 테마의 실시예는 하나 또는 복수 개의 컴퓨터 프로그램, 즉 유형 비임시적 프로그램 캐리어에 코딩되어 데이터 처리 장치에 의해 수행되거나, 데이터 처리 장치의 조작을 제어하는 컴퓨터 프로그램 명령 중 하나 또는 복수 개의 모듈로 구현될 수 있다. 대체적으로 또는 부가적으로, 프로그램 명령은 인공적으로 생성된 전파 신호(예를 들어, 기계에 의해 생성된 전기, 광 또는 전자기 신호)에 코딩될 수 있으며, 상기 신호는 데이터 처리 장치에 의해 수행되기 위해, 정보를 코딩하여 적합한 수신기 장치에 전송될 수 있다. 컴퓨터 기록매체는 기계 판독 가능 기록 기기, 기계 판독 가능 기록 기판, 랜덤 또는 직렬 액세스 기록 장치, 또는 이들 중 하나 이상의 조합일 수 있다.Embodiments of the themes and functional operations described in the present invention may be digital electronic circuits, computer software or firmware embodied in tangible form, computer hardware including the structures and structural equivalents disclosed herein, or combinations of one or a plurality thereof. can be implemented as Embodiments of the themes described in the present invention are one or a plurality of computer programs, that is, one or a plurality of computer program instructions coded in a tangible non-temporary program carrier and executed by a data processing device or controlling the operation of the data processing device. It can be implemented as a module. Alternatively or additionally, program instructions may be coded into an artificially generated radio signal (eg, an electrical, optical or electromagnetic signal generated by a machine), which signal is to be executed by a data processing device. , the information can be coded and transmitted to a suitable receiver device. The computer recording medium may be a machine-readable recording device, a machine-readable recording board, a random or serial access recording device, or a combination of one or more of these.

본 발명에서 설명된 처리 및 논리 흐름은 하나 또는 복수 개의 컴퓨터 프로그램을 수행하는 하나 또는 복수 개의 프로그래머블 컴퓨터에 의해 수행되어, 입력 데이터에 따라 조작하여 출력을 생성하여, 상응하는 기능을 수행할 수 있다. 상기 처리 및 논리 흐름은 전용 논리 회로― 예를 들어 FPGA(현장 프로그래머블 게이트 어레이) 또는 ASIC(전용 집적 회로)로 수행될 수도 있으며, 장치는 전용 논리 회로로 구현될 수도 있다. The processing and logic flow described in the present invention can be performed by one or more programmable computers running one or more computer programs, operating according to input data to generate outputs, and performing corresponding functions. The processing and logic flow may be performed with dedicated logic circuitry - for example, an FPGA (Field Programmable Gate Array) or an ASIC (Special Purpose Integrated Circuit), and the apparatus may be implemented with dedicated logic circuitry.

컴퓨터 프로그램을 수행하기에 적합한 컴퓨터는 예를 들어, 범용 및/또는 전용 마이크로 프로세서, 또는 어느 다른 유형의 중앙 처리 장치를 포함한다. 일반적으로, 중앙 처리 장치는 판독 전용 기록 장치 및/또는 랜덤 액세스 기록 장치로부터 명령 및 데이터를 수신한다. 컴퓨터의 기본 컴포넌트는 명령을 실시하거나 실행하기 위한 중앙 처리 장치, 및 명령 및 데이터를 기록하기 위한 하나 또는 복수 개의 기록 장치를 포함한다. 일반적으로, 컴퓨터는 데이터를 기록하기 위한 하나 또는 복수 개의 대용량 기록 장치(예를 들어, 디스크, 자기 디스크 또는 광 디스크 등)를 포함하거나, 컴퓨터는 동작적으로 이 대용량 기록 장치에 결합되어 데이터를 송수신하거나, 두 가지 경우가 모두 있을 수 있다. 그러나, 컴퓨터는 반드시 이러한 장치를 구비해야 하는 것은 아니다. 또한, 컴퓨터는 휴대폰, 개인 디지털 비서(PDA), 모바일 오디오 또는 비디오 플레이어, 게임 콘솔, 위치항법장치(GPS) 수신기, 또는 유니버설 시리얼 버스(USB) 플래시 드라이브와 같은 휴대용 기록 장치와 같은 다른 기기에 내장될 수 있으며, 이는 몇 가지 예에 불과하다. A computer suitable for carrying out a computer program includes, for example, a general purpose and/or special purpose microprocessor, or any other type of central processing unit. Generally, the central processing unit receives instructions and data from read-only recording devices and/or random access recording devices. The basic components of a computer include a central processing unit for executing or executing instructions, and one or a plurality of recording units for recording instructions and data. Generally, a computer includes one or a plurality of mass storage devices (eg, disks, magnetic disks, optical disks, etc.) for recording data, or a computer is operatively coupled to the mass storage devices to send and receive data. Or, it could be both cases. However, the computer is not necessarily equipped with such a device. Computers may also be embedded in other devices such as cell phones, personal digital assistants (PDAs), mobile audio or video players, game consoles, GPS receivers, or portable recording devices such as Universal Serial Bus (USB) flash drives. can be, these are just a few examples.

컴퓨터 프로그램 명령 및 데이터의 기록에 적합한 컴퓨터 판독 가능한 저장매체는 모든 형태의 휘발성 저장매체 또는 비휘발성 저장매체를 포함하며, 비휘발성 저장매체는 비휘발성 메모리, 매체 및 기록 장치를 포함할 수 있다. 예를 들어, 반도체 기록 장치(예를 들어, EPROM, EEPROM 및 플래시 장치), 디스크(예를 들어, 내부 하드 디스크 또는 모바일 디스크), 자기 디스크, 및 CD ROM 및 DVD-ROM 디스크를 포함한다. 프로세서 및 기록 장치는 전용 논리 회로에 의해 보완되거나 전용 논리 회로에 통합될 수 있다. Computer-readable storage media suitable for recording computer program instructions and data include all types of volatile storage media and non-volatile storage media, and non-volatile storage media may include non-volatile memories, media, and recording devices. Examples include semiconductor recording devices (eg, EPROM, EEPROM, and flash devices), disks (eg, internal hard disks or mobile disks), magnetic disks, and CD ROM and DVD-ROM disks. The processor and recording device may be supplemented by or incorporated into dedicated logic circuitry.

본 발명은 많은 구체적인 실시 세부사항을 포함하지만, 이들은 임의의 개시된 범위 또는 청구하는 범위를 제한하는 것으로 해석되어서는 안되며, 주로 특정으로 개시된 구체적인 실시예의 특징을 설명한다. 본 발명 내에서 복수 개의 상황에서 설명된 일부 특징은 단일 상황에서 조합되어 실시될 수도 있다. 다른 한편으로, 단일 상황에서 설명된 각종 특징은 복수 개의 상황에서 분리되어 실시되거나 임의의 적합한 서브 조합으로 실시될 수도 있다. 또한, 특징은 이상과 같이 일부 조합에서 기능하거나 심지어 최초 이와 같이 청구될 수 있지만, 청구되는 조합 중 하나 또는 복수 개의 특징은 일부 경우 해당 조합으로부터 제거될 수 있으며, 청구되는 조합은 서브 조합 또는 서브 조합의 변형을 가리킬 수 있다. Although this invention contains many specific implementation details, these are not to be construed as limiting the scope of any disclosed or claimed, but primarily set forth features of the specific embodiment specifically disclosed. Within this invention, some features described in multiple contexts may also be implemented in combination in a single context. On the other hand, various features that are described in a single context may also be implemented in multiple contexts separately or in any suitable subcombination. Further, while features may function in some combinations as above or even be originally claimed as such, one or a plurality of features in a claimed combination may in some cases be eliminated from that combination, and the claimed combination may be a subcombination or subcombination. transformation can be indicated.

유사하게, 조작들은 첨부도면에서 특정 순서로 기재되었지만, 원하는 결과를 구현하기 위해, 이러한 조작들이 도시된 특정된 순서로 수행되거나 순차적으로 수행되거나, 모든 예시된 조작이 수행될 것을 요구하는 것으로 이해해서는 안된다. 일부 경우, 멀티태스킹 및 병렬 처리는 유리할 수 있다. 또한, 상술한 상황 중 각 시스템 모듈 및 컴포넌트의 분리는 모든 상황에서 모두 이와 같이 분리되어야 하는 것으로 이해해서는 안된다. 또한, 이해할 것은, 설명된 프로그램 컴포넌트 및 시스템은 일반적으로 단일 소프트웨어 제품에 함께 집성되거나 복수 개의 소프트웨어 제품으로 패키징될 수 있다. Similarly, although operations may be described in a specific order in the accompanying drawings, it should not be understood as requiring that such operations be performed in the specific order shown or performed sequentially, or that all illustrated operations be performed in order to achieve a desired result. Can not be done. In some cases, multitasking and parallel processing can be advantageous. In addition, the separation of each system module and component among the above-mentioned situations should not be understood as such separation in all situations. It should also be understood that the described program components and systems are generally aggregated together into a single software product or may be packaged into multiple software products.

이와 같이, 테마의 특정 실시예가 설명되었다. 다른 실시예는 첨부된 특허청구범위의 범위 내에 있다. 일부 경우, 특허청구범위에 기재된 동작은 다른 순서로 수행될 수 있으며, 여전히 원하는 결과를 구현할 수 있다. 또한, 첨부도면에 그려진 처리는 원하는 결과를 구현하기 위해 반드시 도시된 특정 순서 또는 순차적인 순서로 수행되어야 하는 것은 아니다. 일부 구현에서, 멀티태스킹 및 병렬 처리가 유리할 수 있다.Thus, specific embodiments of the theme have been described. Other embodiments are within the scope of the appended claims. In some cases, the actions recited in the claims can be performed in a different order and still achieve desired results. In addition, the processes depicted in the accompanying drawings do not necessarily have to be performed in the specific order or sequential order shown to achieve desired results. In some implementations, multitasking and parallel processing may be advantageous.

이상의 것은 본 발명에 따른 하나 또는 복수 개의 실시예의 바람직한 실시예일 뿐, 본 발명에 따른 하나 또는 복수 개의 실시예를 한정하는 것은 아니며, 본 발명에 따른 하나 또는 복수 개의 실시예의 정신과 원칙 내에서 진행한 어떠한 수정, 동등교체 및 개진 등은 모두 본 발명에 따른 하나 또는 복수 개의 실시예의 보호범위 내에 포함되어야 한다.The above is only a preferred embodiment of one or a plurality of embodiments according to the present invention, but does not limit the one or plurality of embodiments according to the present invention, and any progress made within the spirit and principles of one or a plurality of embodiments according to the present invention Modifications, equivalent replacements, and improvements should all fall within the protection scope of one or more embodiments according to the present invention.

본 발명의 실시예에서, 한편으로, 매회의 반복 단계에서 최대 모듈성의 증분에 대응하는 두 개의 이미지 그룹을 합병하여, 매번 합병 후 이미지의 조합 방식이 이번 합병에서 이룰 수 있는 최적 조합 방식이도록 보장한다. In an embodiment of the present invention, on the one hand, in each iteration step, the two image groups corresponding to the increment of maximum modularity are merged, ensuring that the image combination method after each merge is the optimal combination method that can be achieved in this merger. .

다른 한편으로, 합병하여 하나의 이미지 그룹만 남은 경우, 기록된 매회의 반복에서 업데이트된 모듈성을 추적하여, 상기 모듈성 중 최대 모듈성을 확정하고 상기 최대 모듈성에 대응하는 이미지 조합 방식을 상기 그루핑될 이미지 집합에 대한 이미지 그루핑 결과로 확정할 수 있으므로, 이미지 그룹을 합병하는 과정에서 나타난 최적 이미지 조합 방식을 상기 그루핑될 이미지 집합에 대한 이미지 그루핑 결과로 확정할 수 있도록 보장할 수 있다. 또는, 매번 합병 조작을 수행하기 전에, 이번 합병이 모듈성의 감소를 초래할 것인지 여부를 판단하여, 모듈성의 감소를 초래하지 않는 경우, 합병 조작을 수행하고, 아니면, 합병을 종료하고, 이전번 반복 후의 이미지 조합 방식을 상기 그루핑될 이미지 집합에 대한 최종 이미지 그루핑 결과로 할 수 있으며, 이에 따라 반복 과정에서 모듈성이 제일 클 때 대응하는 이미지 그루핑 방식을 상기 그루핑될 이미지 집합에 대한 이미지 그루핑 결과로 확정하는 것을 보장할 수 있다. 상술한 그룹의 분할을 통해, 각 그룹 내부의 이미지 간의 연결관계가 비교적 강하고 각 그룹 내부의 이미지와 다른 그룹의 이미지 간의 연결관계가 비교적 약하여, 이미지 그루핑의 정확도를 향상시키고, 나아가 이미지 그루핑을 기반으로 3 차원 재구성을 수행하는 로버스트를 향상시킨다.On the other hand, if only one image group remains after merging, the updated modularity is tracked in each recorded iteration, the maximum modularity among the modularities is determined, and the image combination method corresponding to the maximum modularity is determined as the set of images to be grouped. Since it can be determined as the image grouping result for , it is possible to ensure that the optimal image combination method shown in the process of merging image groups can be determined as the image grouping result for the image set to be grouped. Alternatively, before performing the merging operation each time, it is judged whether this merging will result in a reduction in modularity, and if it does not result in a reduction in modularity, the merging operation is performed; The image combination method can be the final image grouping result for the image set to be grouped, and accordingly, when the modularity is the highest in the iterative process, the corresponding image grouping method is determined as the image grouping result for the image set to be grouped. can be guaranteed Through the division of the groups described above, the connection relationship between the images inside each group is relatively strong and the connection relationship between the images inside each group and the images of other groups is relatively weak, thereby improving the accuracy of image grouping, and further based on image grouping Improve the robustness of performing 3D reconstruction.

전반적으로, 대규모 3 차원 재구성 시스템에서, 본 발명의 실시예에 의해 제출된 이미지 그루핑 방법을 이용하여 이미지 집합의 효과적인 그루핑을 구현하고, 대규모 장면의 효과적인 재구성을 구현할 수 있다. 또한, 이미지 분류 응용 장면에서, 본 알고리즘을 이용하여 이미지 클러스터링을 구현할 수도 있다. 또한, 이미지 네트워크 분할 장면에서, 본원 실시예에 의해 제출된 이미지 그루핑 방법을 이용하여 이미지 네트워크 구성의 효과적인 분할을 구현할 수도 있다.Overall, in a large-scale 3D reconstruction system, the image grouping method presented by the embodiment of the present invention can be used to realize effective grouping of image sets and effective reconstruction of large-scale scenes. In addition, image clustering may be implemented using this algorithm in an image classification application scene. In addition, in the image network segmentation scene, effective segmentation of the image network configuration may be implemented using the image grouping method presented by the present embodiment.

Claims (24)

3 차원 재구성 중 이미지 그루핑 방법으로서,
그루핑될 이미지 집합 중 각 이미지를 각각 하나의 이미지 그룹으로 하여, 상기 그루핑될 이미지 집합에 대응하는 모듈성을 계산하는 단계;
상기 그루핑될 이미지 집합에 포함된 복수 개의 이미지 그룹을 둘씩 조합한다고 가정할 때 각 조합에 대응하는 모듈성의 증분을 각각 계산하여 증분 집합을 획득하는 단계;
상기 증분 집합 중 최대 증분을 확정하고 상기 최대 증분에 대응하는 두 개의 이미지 그룹을 합병하여 합병 이미지 그룹을 획득하며, 상기 그루핑될 이미지 집합에 대응하는 모듈성 및 상기 증분 집합을 업데이트하는 단계를, 상기 그루핑될 이미지 집합에 유일한 이미지 그룹이 포함될 때까지 반복적으로 수행하는 단계; 및
상기 그루핑될 이미지 집합에 유일한 이미지 그룹이 포함되는 경우, 매회의 반복에서, 업데이트된 모듈성 중 최대 모듈성을 확정하고, 상기 최대 모듈성에 대응하는 이미지 조합 방식을 상기 그루핑될 이미지 집합에 대한 이미지 그루핑 결과로 확정하는 단계를 포함하는 것을 특징으로 하는 3 차원 재구성 중 이미지 그루핑 방법.
As an image grouping method during three-dimensional reconstruction,
Calculating modularity corresponding to the image set to be grouped by taking each image among the image sets to be grouped as one image group;
obtaining an incremental set by calculating an increment of modularity corresponding to each combination, assuming that a plurality of image groups included in the image set to be grouped are combined by two;
determining a maximum increment in the incremental set, merging two image groups corresponding to the maximum increment to obtain a merged image group, and updating the modularity corresponding to the image set to be grouped and the incremental set; performing iteratively until a unique image group is included in the to-be-image set; and
When a unique image group is included in the image set to be grouped, the maximum modularity among the updated modularities is determined in each iteration, and an image combination method corresponding to the maximum modularity is determined as an image grouping result for the image set to be grouped. Image grouping method during 3D reconstruction, characterized in that it comprises the step of determining.
제1항에 있어서,
상기 최대 모듈성에 대응하는 이미지 조합 방식을 상기 그루핑될 이미지 집합에 대한 이미지 그루핑 결과로 확정하는 단계는,
상기 최대 모듈성이 사전 설정된 임계치에 도달하였는지 여부를 확정하는 단계;
상기 최대 모듈성이 상기 사전 설정된 임계치에 도달한 경우, 상기 최대 모듈성에 대응하는 이미지 조합 방식을 상기 그루핑될 이미지 집합에 대한 이미지 그루핑 결과로 확정하는 단계; 및
상기 최대 모듈성이 상기 사전 설정된 임계치에 도달하지 않은 경우, 상기 그루핑될 이미지 집합에 포함된 각 이미지를 독립된 이미지 그룹으로 하는 단계를 포함하는 것을 특징으로 하는 3 차원 재구성 중 이미지 그루핑 방법.
According to claim 1,
The step of determining the image combination method corresponding to the maximum modularity as an image grouping result for the image set to be grouped,
determining whether the maximum modularity has reached a preset threshold;
determining an image combination method corresponding to the maximum modularity as an image grouping result for the image set to be grouped, when the maximum modularity reaches the preset threshold; and
When the maximum modularity does not reach the preset threshold, grouping each image included in the set of images to be grouped into an independent image group.
제1항에 있어서,
상기 그루핑될 이미지 집합에 포함된 복수 개의 이미지 그룹을 둘씩 조합하는 단계는,
상기 복수 개의 이미지 그룹 중, 연결관계가 구비된 이미지 그룹을 둘씩 조합하고, 연결관계가 구비된 이미지 그룹의 그룹 식별자 간의 대응관계를 기록하는 단계를 포함하고,
연결관계가 구비된 두 개의 이미지 그룹은, 상기 두 개의 이미지 그룹 중 제1 이미지 그룹과 제2 이미지 그룹 중 이미지 간의 유사도가 사전 설정된 유사도 임계치에 도달한 것을 가리키는 것을 특징으로 하는 3 차원 재구성 중 이미지 그루핑 방법.
According to claim 1,
Combining the plurality of image groups included in the image set to be grouped by two,
Combining two image groups having a connection relationship among the plurality of image groups, and recording a correspondence between group identifiers of the image groups having a connection relationship;
Image grouping during 3D reconstruction, characterized in that, in the two image groups having a connection relationship, the similarity between the images of the first image group and the second image group of the two image groups reaches a preset similarity threshold. method.
제3항에 있어서,
상기 증분 집합은 조합하는 것으로 가정된 두 개의 이미지 그룹의 그룹 식별자와, 상기 두 개의 이미지 그룹을 합병하는 것으로 가정하고 계산하여 획득된 상기 증분 간의 대응관계를 포함하며;
상기 증분 집합을 업데이트하는 단계는,
기록된 연결관계가 구비된 이미지 그룹의 그룹 식별자 간의 대응관계를 검색하여, 상기 최대 증분에 대응하는 두 개의 이미지 그룹 중 어느 한 이미지 그룹과 연결관계가 구비된 다른 이미지 그룹을 확정하는 단계;
상기 다른 이미지 그룹을 각각 상기 두 개의 이미지와 합병하는 것으로 가정하고 획득된 상기 증분을 확정하고, 확정된 상기 증분을 더하여 획득된 결과를, 합병 이미지 그룹을 상기 다른 이미지 그룹과 합병하는 것으로 가정한 후의 상기 모듈성의 증분으로 하는 단계; 및
상기 합병 이미지 그룹, 상기 다른 이미지 그룹 각각의 그룹 식별자와, 양자를 합병하는 것으로 가정하고 획득된 상기 모듈의 증분 간의 대응관계를, 상기 증분 집합에 기록하는 단계를 포함하는 것을 특징으로 하는 3 차원 재구성 중 이미지 그루핑 방법.
According to claim 3,
the incremental set includes a correspondence between group identifiers of two image groups assumed to be combined and the increments obtained by calculation assuming that the two image groups are merged;
Updating the incremental set comprises:
Searching for a correspondence between group identifiers of image groups having a recorded connection relationship, and determining another image group having a connection relationship with one of the two image groups corresponding to the maximum increment;
After assuming that the different image groups are merged with the two images respectively, the obtained increment is determined, and the result obtained by adding the determined increment is assumed to merge the merged image group with the other image group. incrementing the modularity; and
and recording, in the increment set, a correspondence between a group identifier of each of the merged image group and the other image group and the increment of the module obtained assuming that the two are merged. Among the image grouping methods.
제4항에 있어서,
상기 3 차원 재구성 중 이미지 그루핑 방법은,
매회의 반복 과정에서, 상기 증분 집합을 업데이트한 후, 상기 합병 이미지 그룹의 그룹 식별자와 상기 다른 이미지 그룹의 그룹 식별자 간의 대응관계를 기록하는 단계를 더 포함하는 것을 특징으로 하는 3 차원 재구성 중 이미지 그루핑 방법.
According to claim 4,
The image grouping method during the 3D reconstruction,
In each iteration process, after updating the incremental set, recording a correspondence between the group identifier of the merged image group and the group identifier of the other image group; method.
제1항에 있어서,
상기 3 차원 재구성 중 이미지 그루핑 방법은,
매회의 반복 과정에서, 합병하여 획득된 합병 이미지 그룹, 및 상기 합병 이미지 그룹의 그룹 식별자와 합병된 상기 두 개의 이미지 그룹의 그룹 식별자 간의 대응관계를 기록하는 단계를 더 포함하는 것을 특징으로 하는 3 차원 재구성 중 이미지 그루핑 방법.
According to claim 1,
The image grouping method during the 3D reconstruction,
In each repetition process, recording the merged image group obtained by merging and the correspondence between the group identifier of the merged image group and the group identifier of the two merged image groups. Image grouping method during reconstruction.
제6항에 있어서,
상기 합병 이미지 그룹은 상기 합병 이미지 그룹을 생성하는 반복에서 업데이트된 모듈성에 대응하고; 상기 이미지 그룹의 그룹 식별자는 상기 이미지 그룹에 포함된 각 이미지를 지시하는 대응하는 이미지 식별자에 대응하며;
상기 기록된 매회의 반복에서, 업데이트된 모듈성 중 최대 모듈성을 확정하고, 상기 최대 모듈성에 대응하는 이미지 조합 방식을 상기 그루핑될 이미지 집합에 대한 이미지 그루핑 결과로 확정하는 단계는,
마지막 반복에서 기록된 합병 이미지 그룹으로부터 시작하여, 반복 발생 순서에 따라, 매회의 반복에서 기록된 합병 이미지 그룹에 대해 역순으로,
이미지 조합 방식을 확인하기 위한 식별자 집합에 상기 합병 이미지 그룹의 그룹 식별자가 포함되는지 여부를 확정하고, 상기 식별자 집합에 상기 합병 이미지 그룹의 그룹 식별자가 포함되지 않는 경우, 상기 합병 이미지 그룹의 그룹 식별자를 상기 식별자 집합에 기입하는 단계;
상기 합병 이미지 그룹에 대응하는 업데이트된 모듈성이 기록된 매회의 반복에서 업데이트된 모듈성 중 최대 모듈성인지 여부를 확정하는 단계; 및
상기 합병 이미지 그룹에 대응하는 업데이트된 모듈성이 기록된 매회의 반복에서 업데이트된 모듈성 중 최대 모듈성인 경우, 상기 식별자 집합에 포함된 각 그룹 식별자에 대응하는 이미지 식별자가 지시하는 이미지를 하나의 이미지 조합으로 하고, 획득된 각 이미지 조합을 상기 그루핑될 이미지 집합에 대한 이미지 그루핑 결과로 확정하는 단계를 수행하는 단계를 포함하는 것을 특징으로 하는 3 차원 재구성 중 이미지 그루핑 방법.
According to claim 6,
the merge image group corresponds to an updated modularity in an iteration of creating the merge image group; a group identifier of the image group corresponds to a corresponding image identifier indicating each image included in the image group;
In each repetition of the recording, the step of determining the maximum modularity among the updated modularities and determining the image combination method corresponding to the maximum modularity as the image grouping result for the image set to be grouped,
Starting from the group of merged images recorded in the last iteration, and in reverse order for the group of merged images recorded in each iteration, according to the order of occurrence of the iterations,
It is determined whether the group identifier of the merged image group is included in the identifier set for checking the image combination method, and if the identifier set does not include the group identifier of the merged image group, the group identifier of the merged image group is determined. writing to the set of identifiers;
determining whether an updated modularity corresponding to the merged image group is a maximum modularity among updated modularities in each recorded iteration; and
If the updated modularity corresponding to the merged image group is the maximum modularity among the updated modularity in each recording iteration, the image indicated by the image identifier corresponding to each group identifier included in the identifier set is converted into one image combination. and performing a step of determining each obtained image combination as an image grouping result for the set of images to be grouped.
제7항에 있어서,
상기 3 차원 재구성 중 이미지 그루핑 방법은,
상기 합병 이미지 그룹에 대응하는 업데이트된 모듈성이 기록된 매회의 반복에서 업데이트된 모듈성 중 최대 모듈성이 아닌 경우, 상기 식별자 집합에 기록된 상기 합병 이미지 그룹의 그룹 식별자를, 상기 합병 이미지 그룹에 대응하는 합병 전 두 개의 이미지 그룹의 그룹 식별자로 교체하는 단계를 더 포함하는 것을 특징으로 하는 3 차원 재구성 중 이미지 그루핑 방법.
According to claim 7,
The image grouping method during the 3D reconstruction,
When the updated modularity corresponding to the merged image group is not the largest modularity among the updated modularities in each recording iteration, a group identifier of the merged image group recorded in the identifier set is selected as the merged image group corresponding to the merged image group. Image grouping method during three-dimensional reconstruction, characterized in that it further comprises the step of replacing the group identifier of the previous two image groups.
제8항에 있어서,
상기 기록된 합병 이미지 그룹에 대응하는 업데이트된 모듈성이 매회의 반복에서 업데이트된 모듈성 중 최대 모듈성인지 여부를 확정하는 단계는,
이번 반복에서 업데이트된 모듈성이 이번 반복에 대응하는 이전번 반복에서 업데이트된 모듈성에 도달하였는지 여부를 확정하는 단계;
도달한 경우, 이번 반복에서 업데이트된 상기 모듈성을 상기 최대 모듈성으로 확정하는 단계를 포함하는 것을 특징으로 하는 3 차원 재구성 중 이미지 그루핑 방법.
According to claim 8,
The step of determining whether the updated modularity corresponding to the recorded merged image group is the maximum modularity among the updated modularities in each repetition,
determining whether the modularity updated in this iteration has reached the modularity updated in the previous iteration corresponding to this iteration;
If it is reached, determining the modularity updated in this iteration as the maximum modularity.
제3항에 있어서,
상기 복수 개의 이미지 그룹을 둘씩 조합한다고 가정할 때 각 조합에 대응하는 모듈성의 증분을 각각 계산하여 증분 집합을 획득하는 단계는,
조합하는 것으로 가정하고 계산하여 획득된 각 상기 증분에 대해,
조합하는 것으로 가정하는 것은 조합하는 것으로 가정된 두 개의 이미지 그룹 각각에 대한 것이고, 이에 대응하는 이진 트리를 확정하고, 상기 증분, 및 상기 조합하는 것으로 가정된 두 개의 이미지의 그룹 식별자를 상기 확정된 이진 트리에 기입하는 단계를 수행하는 단계를 포함하고,
상기 이진 트리의 루트 노드에는 상기 이진 트리에 기록된 모든 증분 중 최대 증분 및 상기 최대 증분에 대응하는 그룹 식별자가 기록되는 것을 특징으로 하는 3 차원 재구성 중 이미지 그루핑 방법.
According to claim 3,
Assuming that the plurality of image groups are combined by two, obtaining an incremental set by calculating each increment of modularity corresponding to each combination,
For each of the above increments obtained by calculating and assuming a combination,
Assume combining is for each group of two images hypothesized to combine, determine a binary tree corresponding thereto, and set the increment, and the group identifier of the two images hypothesized to combine, to the determined binary tree. performing the step of writing to the tree;
Image grouping method during three-dimensional reconstruction, characterized in that the maximum increment among all increments recorded in the binary tree and a group identifier corresponding to the maximum increment are recorded at the root node of the binary tree.
제10항에 있어서,
상기 증분 집합에 포함된 최대 증분을 확정하는 단계는,
각 이미지 그룹에 대응하는 상기 이진 트리의 루트 노드 포인터를 최대 증분을 확정하기 위한 최대 힙에 푸시하는 단계;
상기 최대 힙의 루트 노드에 기록된 포인터를 확정하는 단계; 및
상기 기록된 포인터가 지시하는 노드에 기록된 증분을 상기 증분 집합에 포함된 최대 증분으로 확정하는 단계를 포함하는 것을 특징으로 하는 3 차원 재구성 중 이미지 그루핑 방법.
According to claim 10,
Determining the maximum increment included in the increment set comprises:
pushing a root node pointer of the binary tree corresponding to each image group into a maximum heap to determine a maximum increment;
determining a pointer recorded in a root node of the maximum heap; and
and determining the increment recorded at the node indicated by the recorded pointer as the maximum increment included in the increment set.
제1항 내지 제11항 중 어느 한 항에 있어서,
획득된 각 이미지 그룹에서, 포함된 이미지 수가 제1 사전 설정된 개수 임계치보다 작은 이미지 그룹을 확정하고, 확정된 이미지 그룹을 융합될 이미지 그룹으로 확정하는 단계 - 상기 제1 사전 설정된 임계치는 각 그룹 중 최소 이미지 수를 지시함 - ;
상기 각 이미지 그룹 중 상기 융합될 이미지 그룹을 제외한 나머지 그룹을 나머지 그룹으로 확정하는 단계;
상기 융합될 그룹 중 각 두 개의 이미지 그룹 간의 연결 가중치를 계산하고 연결 가중치 집합을 구성하는 단계 - 상기 연결 가중치는 두 개의 이미지 그룹 간에 매칭되는 이미지 수를 지시함 - ; 및
상기 연결 가중치 집합에 따라, 상기 융합될 이미지 그룹을 융합하는 단계를 더 포함하는 것을 특징으로 하는 3 차원 재구성 중 이미지 그루핑 방법.
According to any one of claims 1 to 11,
In each acquired image group, determining an image group in which the number of included images is less than a first preset number threshold, and determining the determined image group as an image group to be merged, wherein the first preset threshold is the minimum of each group - Indicates the number of images;
determining remaining groups other than the image group to be merged among the image groups as the remaining groups;
calculating a connection weight between each two image groups among the to-be-fused groups and constructing a connection weight set, wherein the connection weight indicates the number of images matched between the two image groups; and
Image grouping method during 3D reconstruction, characterized in that it further comprises the step of fusing the image group to be fused according to the set of connection weights.
제12항에 있어서,
상기 연결 가중치 집합에 따라, 상기 융합될 이미지 그룹을 융합하는 단계는,
상기 연결 가중치 집합에 연결 가중치가 포함되지 않을 때까지,
상기 연결 가중치 집합 중 최대 연결 가중치를 확정하는 단계;
상기 최대 연결 가중치에 대응하는 두 개의 이미지 그룹 중에서, 개수가 큰 하나의 이미지 그룹 중 이미지 수가 제2 사전 설정된 개수 임계치에 도달하였는지 여부를 확정하는 단계 - 상기 제2 사전 설정된 개수 임계치는 각 이미지 그룹 중 최대 이미지 수를 지시함 - ;
상기 제2 사전 설정된 개수 임계치에 도달한 경우, 이번 반복을 종료하는 단계;
상기 제2 사전 설정된 개수 임계치에 도달하지 않은 경우, 상기 두 개의 이미지 그룹을 합병하여 합병 이미지 그룹을 획득하고 상기 연결 가중치 집합을 업데이트하는 단계; 및
상기 연결 가중치 집합에 연결 가중치가 포함되지 않는 경우, 상기 융합될 그룹에 포함된 이미지 그룹 및 상기 나머지 그룹 중 이미지 그룹을, 상기 그루핑될 이미지 집합에 대한 최종 이미지 그룹으로 하는 단계를 반복적으로 수행하는 단계를 포함하는 것을 특징으로 하는 3 차원 재구성 중 이미지 그루핑 방법.
According to claim 12,
The step of fusing the image groups to be fused according to the set of connection weights,
Until the connection weight is not included in the connection weight set,
determining a maximum connection weight among the set of connection weights;
determining whether or not the number of images in one of the two image groups corresponding to the maximum concatenation weight reaches a second preset number threshold, wherein the second preset number threshold is set in each image group; Indicates the maximum number of images - ;
terminating this iteration if the second preset number threshold is reached;
merging the two image groups to obtain a merged image group and updating the concatenation weight set when the second preset number threshold is not reached; and
When the connection weight set does not include the connection weight, repeatedly performing the step of setting an image group included in the group to be merged and an image group among the remaining groups as a final image group for the image set to be grouped. Image grouping method during 3D reconstruction comprising a.
제12항에 있어서,
상기 융합될 그룹 중 각 두 개의 이미지 그룹 간의 연결 가중치를 계산하고 연결 가중치 집합을 구성하는 단계는,
상기 융합될 그룹 중 각 이미지 그룹에 대해, 상기 각 이미지 그룹에 일대일로 대응하는 이진 트리를 생성하는 단계; 및
상기 융합될 그룹 중 각 두 개의 이미지 그룹 간의 연결 가중치를 계산하고, 상기 연결 가중치, 및 상기 두 개의 이미지 그룹의 그룹 식별자를 상기 이진 트리의 노드에 기록하는 단계 - 상기 이진 트리의 루트 노드에는 각 이미지 그룹에 대응하는 각 연결 가중치 중 최대 연결 가중치, 및 상기 최대 연결 가중치에 대응하는 그룹 식별자가 기록됨 - 를 포함하는 것을 특징으로 하는 3 차원 재구성 중 이미지 그루핑 방법.
According to claim 12,
The step of calculating connection weights between each two image groups among the groups to be fused and configuring a connection weight set,
generating a binary tree corresponding to each image group on a one-to-one basis for each image group among the to-be-fused groups; and
Calculating a connection weight between each of two image groups among the groups to be fused, and recording the connection weight and a group identifier of the two image groups in a node of the binary tree - each image in the root node of the binary tree A maximum connection weight among each connection weight corresponding to a group and a group identifier corresponding to the maximum connection weight are recorded.
제14항에 있어서,
상기 연결 가중치 집합 중 최대 연결 가중치를 확정하는 단계는,
상기 각 이미지 그룹에 대응하는 이진 트리의 루트 노드 포인터를 상기 최대 연결 가중치를 도출하기 위한 최대 힙에 푸시하는 단계; 및
상기 최대 힙의 루트 노드에 기록된 포인터를 판독하고, 상기 기록된 포인터가 지시하는 이진 트리 노드에 기록된 연결 가중치를 상기 최대 연결 가중치로 확정하는 단계를 포함하는 것을 특징으로 하는 3 차원 재구성 중 이미지 그루핑 방법.
According to claim 14,
Determining the maximum connection weight among the set of connection weights,
pushing a root node pointer of a binary tree corresponding to each image group to a maximum heap for deriving the maximum connection weight; and
Reading a pointer recorded in the root node of the maximum heap, and determining a connection weight recorded in a binary tree node indicated by the recorded pointer as the maximum connection weight. grouping method.
제14항에 있어서,
상기 연결 가중치 집합 중 최대 연결 가중치를 확정한 후, 상기 3 차원 재구성 중 이미지 그루핑 방법은,
상기 최대 연결 가중치에 대응하는 두 개의 이미지 그룹 중 어느 하나의 이미지 그룹에 대응하는 이진 트리가 널(null)인지 여부를 확정하는 단계;
널이 아닌 경우, 계속하여 후속 단계를 수행하는 단계; 및
널인 경우, 현재 반복을 종료하는 단계를 더 포함하는 것을 특징으로 하는 3 차원 재구성 중 이미지 그루핑 방법.
According to claim 14,
After determining the maximum connection weight of the connection weight set, the image grouping method during the 3D reconstruction,
determining whether a binary tree corresponding to one of the two image groups corresponding to the maximum connection weight is null;
if not null, continuing with subsequent steps; and
If null, the image grouping method during 3D reconstruction further comprising the step of terminating the current iteration.
제14항에 있어서,
상기 연결 가중치 집합을 업데이트하는 단계는,
합병된 상기 두 개의 이미지 그룹 각각에 대응하는 이진 트리를 삭제하는 단계;
상기 합병 이미지 그룹과 상기 융합될 그룹 중 다른 그룹 간의 연결 가중치를 계산하는 단계;
산출된 상기 연결 가중치, 및 상기 합병 이미지 그룹과 상기 다른 그룹의 그룹 식별자를 상기 다른 그룹에 대응하는 이진 트리에 기입하는 단계; 및
상기 다른 그룹에 대응하는 이진 트리에서, 상기 다른 그룹과, 합병된 상기 두 개의 이미지 그룹 간의 연결 가중치를 기록한 노드를 삭제하는 단계를 포함하는 것을 특징으로 하는 3 차원 재구성 중 이미지 그루핑 방법.
According to claim 14,
Updating the connection weight set comprises:
deleting a binary tree corresponding to each of the two merged image groups;
calculating a connection weight between the merged image group and another group among the groups to be merged;
writing the calculated connection weight and group identifiers of the merged image group and the other group into a binary tree corresponding to the other group; and
and deleting a node recording a connection weight between the other group and the merged two image groups in the binary tree corresponding to the other group.
3 차원 재구성 중 이미지 그루핑 방법으로서,
그루핑될 이미지 집합 중 각 이미지를 각각 하나의 이미지 그룹으로 할 때, 상기 그루핑될 이미지 집합에 대응하는 모듈성을 계산하는 단계;
상기 그루핑될 이미지 집합에 포함된 복수 개의 이미지 그룹을 둘씩 조합할 때 각 조합에 대응하는 모듈성의 증분을 각각 계산하여 증분 집합을 획득하는 단계;
상기 증분 집합에 포함된 최대 증분을 확정하고, 상기 최대 증분이 0에 도달하였는지 여부를 더 확정하며, 상기 최대 증분이 0에 도달한 경우, 상기 최대 증분에 대응하는 기록된 두 개의 이미지 그룹을 합병하여 합병 이미지 그룹을 획득하고 상기 증분 집합을 업데이트하는 단계를, 상기 그루핑될 이미지 집합에 유일한 이미지 그룹이 포함될 때까지, 반복적으로 수행하는 단계;
매회의 반복에서, 상기 최대 증분이 0에 도달하지 않은 경우, 이상의 반복 단계를 종료하고, 이번 반복의 이전번 반복에서 합병된 이미지 조합 방식을 상기 그루핑될 이미지 집합에 대한 최종 이미지 그루핑 결과로 하는 단계; 및
상기 그루핑될 이미지 집합이 유일한 이미지 그룹을 포함하는 경우, 상기 그루핑될 이미지 집합에 포함된 각 이미지를 하나의 이미지 그룹으로 분할하는 단계를 포함하는 것을 특징으로 하는 3 차원 재구성 중 이미지 그루핑 방법.
As an image grouping method during three-dimensional reconstruction,
Calculating modularity corresponding to the set of images to be grouped when each image among the set of images to be grouped is regarded as one image group;
obtaining an incremental set by calculating an increment of modularity corresponding to each combination when combining a plurality of image groups included in the image set to be grouped by two;
Determine the maximum increment included in the set of increments, further determine whether the maximum increment reaches 0, and merge the two image groups recorded corresponding to the maximum increment if the maximum increment reaches 0. obtaining a merged image group and updating the incremental set repeatedly until a unique image group is included in the to-be-grouped image set;
In each iteration, when the maximum increment does not reach 0, terminating the above iterative step, and making the image combination method merged in the previous iteration of this iteration the final image grouping result for the image set to be grouped. ; and
When the image set to be grouped includes a unique image group, image grouping method during 3D reconstruction comprising the step of dividing each image included in the image set to be grouped into one image group.
3 차원 재구성 중 이미지 그루핑 장치로서,
그루핑될 이미지 집합 중 각 이미지를 각각 하나의 이미지 그룹으로 하여, 상기 그루핑될 이미지 집합에 대응하는 모듈성을 계산하도록 구성되는 제1 계산부;
상기 그루핑될 이미지 집합에 포함된 복수 개의 이미지 그룹을 둘씩 조합한다고 가정할 때 각 조합에 대응하는 모듈성의 증분을 각각 계산하여 증분 집합을 획득하도록 구성되는 제1 생성부;
상기 증분 집합 중 최대 증분을 확정하고 상기 최대 증분에 대응하는 두 개의 이미지 그룹을 합병하여 합병 이미지 그룹을 획득하며 상기 그루핑될 이미지 집합에 대응하는 모듈성 및 상기 증분 집합을 업데이트하는 단계를, 상기 그루핑될 이미지 집합에 유일한 이미지 그룹이 포함될 때까지 반복적으로 수행하도록 구성되는 제1 합병부;
상기 그루핑될 이미지 집합에 유일한 이미지 그룹이 포함되는 경우, 기록된 매회의 반복에서, 업데이트된 모듈성 중 최대 모듈성을 확정하고, 상기 최대 모듈성에 대응하는 이미지 조합 방식을 상기 그루핑될 이미지 집합에 대한 이미지 그루핑 결과로 확정하도록 구성되는 제1 그룹 확정부를 포함하는 것을 특징으로 하는 3 차원 재구성 중 이미지 그루핑 장치.
As an image grouping device during three-dimensional reconstruction,
a first calculation unit configured to calculate modularity corresponding to the image set to be grouped by taking each image among the image sets to be grouped as one image group;
a first generation unit configured to obtain an incremental set by calculating an increment of modularity corresponding to each combination, assuming that a plurality of image groups included in the image set to be grouped are combined in pairs;
determining a maximum increment in the incremental set, merging two image groups corresponding to the maximum increment to obtain a merged image group, and updating the modularity corresponding to the image set to be grouped and the incremental set; a first merging unit configured to perform iteratively until a unique image group is included in the image set;
When a unique image group is included in the set of images to be grouped, the maximum modularity among the updated modularities is determined in each recorded iteration, and an image combination method corresponding to the maximum modularity is selected as image grouping for the set of images to be grouped. An image grouping device during 3D reconstruction comprising a first group determining unit configured to determine a result.
제19항에 있어서,
상기 3 차원 재구성 중 이미지 그루핑 장치는,
획득된 각 이미지 그룹에서, 포함된 이미지 수가 제1 사전 설정된 개수 임계치보다 작은 이미지 그룹을 확정하고, 확정된 이미지 그룹을 융합될 이미지 그룹으로 확정하도록 구성되는 융합될 이미지 그룹 확정부 - 상기 제1 사전 설정된 임계치는 각 그룹 중 최소 이미지 수를 지시함 - ;
상기 각 이미지 그룹 중 상기 융합될 이미지 그룹을 제외한 나머지 그룹을 나머지 그룹으로 확정하도록 구성되는 나머지 그룹 확정부;
상기 융합될 그룹 중 각 두 개의 이미지 그룹 간의 연결 가중치를 계산하고 연결 가중치 집합을 구성하도록 구성되는 연결 가중치 계산부 - 상기 연결 가중치는 두 개의 이미지 그룹 간에 매칭되는 이미지 수를 지시함 - ; 및
상기 연결 가중치 집합에 따라, 상기 융합될 이미지 그룹을 융합하도록 구성되는 그룹 융합부를 더 포함하는 것을 특징으로 하는 3 차원 재구성 중 이미지 그루핑 장치.
According to claim 19,
The image grouping device during the 3D reconstruction,
an image group to be merged determining unit, configured to determine, in each acquired image group, an image group whose number of included images is smaller than a first preset number threshold, and determine the determined image group as an image group to be merged - the first dictionary The set threshold indicates the minimum number of images in each group;
a remaining group determining unit configured to determine remaining groups other than the to-be-fused image group among the image groups as remaining groups;
a connection weight calculation unit configured to calculate a connection weight between each two image groups among the groups to be fused and configure a connection weight set, wherein the connection weight indicates the number of images matched between the two image groups; and
and a group convergence unit configured to fuse the image groups to be merged according to the set of connection weights.
3 차원 재구성 중 이미지 그루핑 장치로서,
그루핑될 이미지 집합 중 각 이미지를 각각 하나의 이미지 그룹으로 할 때, 상기 그루핑될 이미지 집합에 대응하는 모듈성을 계산하도록 구성되는 제2 계산부;
상기 그루핑될 이미지 집합에 포함된 복수 개의 이미지 그룹을 둘씩 조합할 때 각 조합에 대응하는 모듈성의 증분을 각각 계산하여 증분 집합을 획득하도록 구성되는 제2 생성부;
상기 증분 집합에 포함된 최대 증분을 확정하고 상기 최대 증분이 0에 도달하였는지 여부를 더 확정하며, 상기 최대 증분이 0에 도달한 경우, 상기 최대 증분에 대응하는 기록된 두 개의 이미지 그룹을 합병하여 합병 이미지 그룹을 획득하고 상기 증분 집합을 업데이트하는 단계를, 상기 그루핑될 이미지 집합에 유일한 이미지 그룹이 포함될 때까지, 반복적으로 수행하도록 구성되는 제2 합병부; 및
매회의 반복에서, 상기 최대 증분이 0에 도달하지 않은 경우, 이상의 반복 단계를 종료하고, 이번 반복의 이전번 반복에서 합병된 이미지 조합 방식을 상기 그루핑될 이미지 집합에 대한 최종 이미지 그루핑 결과로 하고;
상기 그루핑될 이미지 집합이 유일한 이미지 그룹을 포함하는 경우, 상기 그루핑될 이미지 집합에 포함된 각 이미지를 하나의 이미지 그룹으로 분할하도록 구성되는 제2 그룹 확정부를 포함하는 것을 특징으로 하는 3 차원 재구성 중 이미지 그루핑 장치.
As an image grouping device during three-dimensional reconstruction,
a second calculation unit configured to calculate modularity corresponding to the image set to be grouped when each image among the image sets to be grouped is regarded as one image group;
a second generation unit configured to obtain an incremental set by calculating an increment of modularity corresponding to each combination when combining the plurality of image groups included in the image set to be grouped by two;
determine the maximum increment included in the set of increments, further determine whether the maximum increment reaches 0, and if the maximum increment reaches 0, merge the recorded two image groups corresponding to the maximum increment; a second merging unit, configured to repeatedly perform the step of obtaining a group of merged images and updating the incremental set until a unique image group is included in the set of images to be grouped; and
In each iteration, if the maximum increment does not reach 0, the above iteration steps are terminated, and the image combination method merged in the previous iteration of this iteration is taken as the final image grouping result for the image set to be grouped;
and a second group determining unit configured to divide each image included in the image set to be grouped into one image group when the set of images to be grouped includes a unique image group. grouping device.
전자 기기로서,
프로세서;
상기 프로세서가 실행 가능한 명령을 저장하는 메모리를 포함하되,
상기 프로세서는 상기 메모리에 저장된 실행 가능한 명령을 호출하여, 제1항 내지 제17항 중 어느 한 항의 3 차원 재구성 중 이미지 그루핑 방법 또는 제18항의 3 차원 재구성 중 이미지 그루핑 방법을 구현하도록 구성되는 것을 특징으로 하는 전자 기기.
As an electronic device,
processor;
A memory for storing instructions executable by the processor,
The processor is configured to implement the image grouping method during 3D reconstruction of any one of claims 1 to 17 or the image grouping method during 3D reconstruction of claim 18 by calling an executable command stored in the memory. electronic devices made of.
컴퓨터 판독 가능한 저장매체로서,
컴퓨터 프로그램이 저장되고, 상기 컴퓨터 프로그램은 제1항 내지 제17항 중 어느 한 항의 3 차원 재구성 중 이미지 그루핑 방법 또는 제18항의 3 차원 재구성 중 이미지 그루핑 방법을 수행하기 위한 것임을 특징으로 하는 컴퓨터 판독 가능한 저장매체.
As a computer readable storage medium,
A computer program is stored, wherein the computer program is for performing the image grouping method during 3D reconstruction or the image grouping method during 3D reconstruction according to claim 18 according to any one of claims 1 to 17. storage medium.
컴퓨터 프로그램으로서,
컴퓨터 판독 가능한 코드가 포함되고, 상기 컴퓨터 판독 가능한 코드가 전자 기기에서 실행되는 경우, 상기 전자 기기 중 프로세서는 제1항 내지 제17항 중 어느 한 항의 3 차원 재구성 중 이미지 그루핑 방법 또는 제18항의 3 차원 재구성 중 이미지 그루핑 방법을 수행하는 것을 특징으로 하는 컴퓨터 프로그램.
As a computer program,
When the computer readable code is included and the computer readable code is executed in an electronic device, the processor of the electronic device may use the image grouping method during 3D reconstruction of any one of claims 1 to 17 or the 3 of claim 18. A computer program characterized by performing an image grouping method during dimensional reconstruction.
KR1020237006660A 2020-08-21 2021-06-18 Image grouping method and apparatus during 3D reconstruction, electronic device and computer readable storage medium KR20230043958A (en)

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
CN202010852560.5A CN111986314B (en) 2020-08-21 2020-08-21 Image grouping method and device in three-dimensional reconstruction, electronic equipment and storage medium
CN202010852560.5 2020-08-21
PCT/CN2021/101049 WO2022037232A1 (en) 2020-08-21 2021-06-18 Method and apparatus for image grouping in three-dimensional reconstruction, electronic device, and computer readable storage medium

Publications (1)

Publication Number Publication Date
KR20230043958A true KR20230043958A (en) 2023-03-31

Family

ID=73442862

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020237006660A KR20230043958A (en) 2020-08-21 2021-06-18 Image grouping method and apparatus during 3D reconstruction, electronic device and computer readable storage medium

Country Status (4)

Country Link
JP (1) JP2023536621A (en)
KR (1) KR20230043958A (en)
CN (1) CN111986314B (en)
WO (1) WO2022037232A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111986314B (en) * 2020-08-21 2022-08-16 浙江商汤科技开发有限公司 Image grouping method and device in three-dimensional reconstruction, electronic equipment and storage medium
CN113326880A (en) * 2021-05-31 2021-08-31 南京信息工程大学 Unsupervised image classification method based on community division
CN116310227B (en) * 2023-05-18 2023-09-12 海纳云物联科技有限公司 Three-dimensional dense reconstruction method, three-dimensional dense reconstruction device, electronic equipment and medium

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103198524B (en) * 2013-04-27 2015-08-12 清华大学 A kind of three-dimensional reconstruction method for large-scale outdoor scene
US20150220627A1 (en) * 2014-02-04 2015-08-06 International Business Machines Corporation System and method for finding collective interest-based social communities
KR101710606B1 (en) * 2015-10-23 2017-03-08 아주대학교산학협력단 Apparatus and Method for Interactive Visualization for Analyzing Sets in Large Networks
CN108287864B (en) * 2017-12-06 2020-07-10 深圳市腾讯计算机系统有限公司 Interest group dividing method, device, medium and computing equipment
CN109408722B (en) * 2018-11-06 2021-04-30 腾讯科技(深圳)有限公司 Community division method and device, computing equipment and storage medium
CN110751680A (en) * 2019-10-17 2020-02-04 中国科学院云南天文台 Image processing method with fast alignment algorithm
CN111091145B (en) * 2019-12-04 2022-04-08 成都理工大学 Community detection algorithm based on edge classification
CN111986314B (en) * 2020-08-21 2022-08-16 浙江商汤科技开发有限公司 Image grouping method and device in three-dimensional reconstruction, electronic equipment and storage medium

Also Published As

Publication number Publication date
WO2022037232A1 (en) 2022-02-24
JP2023536621A (en) 2023-08-28
CN111986314A (en) 2020-11-24
CN111986314B (en) 2022-08-16

Similar Documents

Publication Publication Date Title
KR20230043958A (en) Image grouping method and apparatus during 3D reconstruction, electronic device and computer readable storage medium
Wang et al. Curve-skeleton extraction using iterative least squares optimization
Carr et al. Computing contour trees in all dimensions
CN112669463B (en) Method for reconstructing curved surface of three-dimensional point cloud, computer device and computer-readable storage medium
CN105787126B (en) K-d tree generation method and k-d tree generation device
JP2014523554A (en) Method for encoding mesh model, encoded mesh model and method for decoding mesh model
CN113313794B (en) Animation migration method and device, equipment and storage medium
Varley et al. A new algorithm for finding faces in wireframes
CN110097581B (en) Method for constructing K-D tree based on point cloud registration ICP algorithm
CN109961516B (en) Surface acquisition method, device and non-transitory computer readable recording medium
CN109997123B (en) Methods, systems, and apparatus for improved space-time data management
CN112734934B (en) STL model 3D printing slicing method based on intersecting edge mapping
CN111340100B (en) Similarity calculation method of BIM model
US20160364908A1 (en) Analysis Model Creation Assistance System, Analysis Model Creation Assistance Device and Analysis Model Creation Assistance Program
CN115330971B (en) Geometric model lightweight method oriented to rendering performance optimization
CN111028092A (en) Community discovery method based on Louvain algorithm, computer equipment and readable storage medium thereof
CN106652023B (en) A kind of method and system of the extensive unordered quick exercise recovery structure of image
Durix et al. Skeleton-based multiview reconstruction
US20030221176A1 (en) Spanning tree method for k-dimensional space
CN117494289B (en) Feature edge geometry generation method and device, and measurement adsorption method and device
JP2020021426A (en) Simulation system, simulation method, and simulation program
Lee et al. Constant-time navigation in four-dimensional nested simplicial meshes
Si TetGen, towards a quality tetrahedral mesh generator
KR102585912B1 (en) Apparatus for automatically searching for products groups to which design rights are applied and method therefor
CN111651623B (en) Method, device, equipment and storage medium for constructing high-precision facial expression library

Legal Events

Date Code Title Description
A201 Request for examination