Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Computing filters on sub images

I have the following use case.

I preprocess an image so that I know some parts that I want to process. I then create several cv::Mat from my main cv::Mat and do expensive filtering only on those. However, on boundary pixels I know the filter could very nicely go across the border of the sub-cv::Mat I have created and compute the exact value for my filtering also for the border pixels. So my question is: Is there among the border handling modes a way to say to simply peak a pixel outside the cv::Mat? It seems only thing like constant, mirror or wrap are available...

click to hide/show revision 2
retagged

updated 2014-04-09 09:26:48 -0600

berak gravatar image

Computing filters on sub images

I have the following use case.

I preprocess an image so that I know some parts that I want to process. I then create several cv::Mat from my main cv::Mat and do expensive filtering only on those. However, on boundary pixels I know the filter could very nicely go across the border of the sub-cv::Mat I have created and compute the exact value for my filtering also for the border pixels. So my question is: Is there among the border handling modes a way to say to simply peak a pixel outside the cv::Mat? It seems only thing like constant, mirror or wrap are available...

Computing filters on sub imagesimages: border handling

I have the following use case.

I preprocess an image so that I know some parts that I want to process. I then create several cv::Mat from my main cv::Mat and do expensive filtering only on those. However, on boundary pixels I know the filter could very nicely go across the border of the sub-cv::Mat I have created and compute the exact value for my filtering also for the border pixels. So my question is: Is there among the border handling modes a way to say to simply peak a pixel outside the cv::Mat? It seems only thing like constant, mirror or wrap are available...

Computing filters on sub images: border handling

I have the following use case.

I preprocess an image so that I know some for which parts that I want to do the complete (expensive) process. I then create several cv::Mat from my main cv::Mat and do expensive filtering only on those. However, on boundary pixels I know the filter could very nicely go across the border of the sub-cv::Mat I have created and compute the exact value for my filtering also for the border pixels. So my question is: Is there among the border handling modes a way to say to simply peak a pixel outside the cv::Mat? It seems only thing like constant, mirror or wrap are available...

Computing filters on sub images: border handling

I have the following use case.

I preprocess an image so that I know for which parts that I want to do the complete (expensive) process. processing. I then therefore create several cv::Mat from my main cv::Mat and do expensive filtering only on those. However, on boundary pixels I know the filter could very nicely go across the border of the sub-cv::Mat I have created created, and compute the exact value for my filtering also for the border pixels. So my question is: Is there among the border handling modes a way to say to simply peak a pixel outside the cv::Mat? It seems only thing like constant, mirror or wrap are available...