@Andreas: do you refer to this thread: https://groups.google.com/forum/#!topic/julia-users/Kwy2Zh-i4ks
Yes, it's an option. I was looking for something specifically designed for this purpose, but seems like Scikit Image and some others keep exactly the approach you've described [1], so I assume it gives acceptable performance. Though maybe not exposed by Julia wrapper, but OpenCV itself has function `fillPoly` [2], which has almost the same meaning. [1]: https://github.com/scikit-image/scikit-image/blob/master/skimage/draw/_draw.pyx#L216 [2]: http://docs.opencv.org/modules/core/doc/drawing_functions.html#fillpoly On Monday, January 26, 2015 at 12:12:50 PM UTC+3, Andreas Lobinger wrote: > > Hello colleagues, > > i think you could do (if i get the upper description correctly) just setup > a grid of points and feed it through something like inpolygon - might be > not the optimized case, but should work. There have been questions about > that here (i know, because i posted code) before. > > But i'm interested, where do i find the poly2mask in OpenCV.jl? > And afaics poly2mask is not in plain matlab. Which TB is it in? > > Wishing a happy day, > Andreas > >
