Masking must avoid areas outside the image

A

academic

Applying a mask I avoid the pixels on the boundary in case the entire image
is being filtered, so as not to access areas outside the image.

I'd like to do a better job - for example it the Roi does not include an
image boundary I should not avoid that boundary of the Roi.

I been thinking about it and it seems kind of involved.

Not hard to do but many cases to consider and much code

Before I do that I wonder if there is a built-in way to simplify the code.


Thanks in advance for any helpful suggestions
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top