필터 지우기
필터 지우기

How to fix a pivot element in a MASK to some particular entry in an Image and compute SubImages

조회 수: 1 (최근 30일)
I have a binary mxn matrix called Image. I have a pxq mask which has a pivot pixel as well. I want to apply this mask to the image in such a way that at each instance I get a pxq sub-image of the Image. I want to first fix the pivot pixel of the mask to some (i,j) location in image and then take out the portion of the image. The only job of mask is to take out the chunk of image and ignore the rest of the image.
for example
Image = [ 1 2 3 4 5; 6 7 8 9 10; 11 12 13 14 15; 16 17 18 19 20]
Mask = [1 2 3; 1 2 3]
Pivot element = Mask(2,2)
SubImage_1 = [1 2 3; 6 7 8] (pivot element is locked to Image(2,2))
SubImage_2 = [6 7;11 12;16 17] (pivot element is locked to Image(3,2) Mask is rotated by 90 and subimage_2 is stored)
Foe each (i,j) location in Image the orientation of mask of mask is known to us. How can I fix the pivot element to (i,j) location and do some binary operation to formulate SubImages.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Author Block Masks에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by