1. 진행 사항
- [x] Marking detector 생성
- [x] Descriptor가 추가됨에 따라 mean을 옮겨가면서 clustering 해보기
Marking detector 생성
Salient mask에 대한 initial processing
-
Detection을 시작할 것인지에 대한 조건 (Check status) → Salient point의 개수가 최소 1000개 이상 존재할 경우 start checking marking
-
Salient point는 gray scale mask에서 intensity가 210 이상인 것을 선택
<aside>
💡 Non marking temp
- Salient point가 1000개 이하는 mask에 대해서는 non_marking_temp에 유지 (최대 3개까지만 유지)
- 이후 판단된 marking이 존재한다면 temp에 존재하는 이미지는 마킹이 없는 scene이라 하더라도 그 근처라는 consistency를 줄 수 있음
</aside>
![Untitled](https://s3-us-west-2.amazonaws.com/secure.notion-static.com/a64d09b4-a37d-4f20-9395-5de7b101267d/Untitled.png)
Sliding window를 이용한 marking detector
- Checking marking이 start된 시점의 salient mask부터 이후 들어오는 3개의 salient mask까지 총 4개의 mask에 대하여 아래 두 값을 계산
- Salient rate = salient points / total mask points
- Contour rate = salient points / total mask points (in contour)
Step 1 : 최소 marking 후보 조건을 설정하여 이를 만족할 경우만을 고려할 수 있도록 함 → (Salient rate > TH_SAL_RATE && Contour rate < TH_CONTOUR_RATE)
Step 2 : 등록된 후보 중에서 최적의 marking을 결정
- 최적의 marking을 결정하는 과정에서 두 값을 적절하게 이용할 수 있도록 하기 위해 Decision value **(= Contour rate / Salient rate)**를 새롭게 정의