Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Convolution of ROI using as border the pixels outside the ROI

Hello,

is it possible to calculate the convolution of a ROI of an image and use as border the border of the ROI which is outside the ROI (not included in the ROI)?

If yes, how is it calculated?

For example, I used filter2D on a ROI selected with Rect(), but in filter2D there isn't a border option which matches with what I'm describing above..

Thank you for your time, Panos

Convolution of ROI using as border the pixels outside the ROI

example.png Hello,

is it possible to calculate the convolution of a ROI of an image and use as border the border of the ROI which is outside the ROI (not included in the ROI)?

If yes, how is it calculated?

For example, I used filter2D on a ROI selected with Rect(), but in filter2D there isn't a border option which matches with what I'm describing above..

edit: To visualize what I'm describing, in the attached file, I want to calculate the convolution of the yellow ROI using as border the pixels around the yellow ROI (the ones included in the blue rectangle but do not belong to the yellow rectangle).

Thank you for your time, Panos

Convolution of ROI using as border the pixels outside the ROI

example.png Hello,

is it possible to calculate the convolution of a ROI of an image and use as border the border of the ROI which is outside the ROI (not included in the ROI)?

If yes, how is it calculated?

For example, I used filter2D on a ROI selected with Rect(), but in filter2D there isn't a border option which matches with what I'm describing above..

example.png edit: To visualize what I'm describing, in the attached file, I want to calculate the convolution of the yellow ROI using as border the pixels around the yellow ROI (the ones included in the blue rectangle but do not belong to the yellow rectangle).

Thank you for your time, Panos