Fill the region of rotating bounding box with nearest pixel value

조회 수: 3 (최근 30일)
prashant singh
prashant singh 2018년 8월 20일
답변: Naman Chaturvedi 2018년 8월 24일
I have a rotating bounding box in an image. I want to fill region inside the bounding box with nearest pixel values outside the bounding box. I am thinking of going through the regions of the bounding box iteratively and calculating the left and right neighbour value for each row and fill that row with those values. Before doing that i want to know is there an elegant and better way of doing that in Matlab or opencv (python) by using some functions

답변 (1개)

Naman Chaturvedi
Naman Chaturvedi 2018년 8월 24일
Hi Prashant
You can design the appropriate mask and then use the functions:- conv2 / filter2 / imfilter to apply the mask to your image and get the desired results.
Hope this helps.

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by