how to enter mask
1 view (last 30 days)
I want to enter this mask given below to 288*543.
288*543 contains initially 1000 as non object and 0 as object.
To that I have to enter this mask,
mask=[1.414,1,1.414; 1,1,1000; 1000,1000,1000];
and I need to apply this algorithm,
and i need to update the values by d_new(i,j)
How can I achieve this in for loop.
Thanks in advance.
Image Analyst on 24 Oct 2014
Do you mean to replicate the mask out to a size of 288-by-543? Like this:
% Initial 3-by-3 mask.
mask=[1.414,1,1.414; 1,1,1000; 1000,1000,1000]
% Make copies out to a size of 288-by-543
mask2 = repmat(mask, [96, 181]);