[Kwiver-users] Window view of Vital image

Matthew Leotta matt.leotta at kitware.com
Mon Nov 13 09:19:25 EST 2017


The original intent was that vital::image should be just a transient container for moving data around and any real work would be done in either OpenCV, VXL, or another package.  I believe both OpenCV and VXL support shallow copied crops or “views” into a larger image.  The vital::image can technically support such views as well, you just need to call some of the more complex constructors with right pointer offsets.  This operation is probably common enough that it makes sense to have a helper function to make this easy.  Where that code lives is another question.  This might be something that best fits in the proposed “utils” area that lives between vital and arrows.  For now it could go in arrows::core.

—Matt

> On Nov 13, 2017, at 9:08 AM, Linus Sherrill <linus.sherrill at kitware.com> wrote:
> 
> There has been some discussion about adding functionality to clip rectangles (bounding boxes) from images to yield another image (or image_container). If somebody is working on this, speak up :-)
> In any event, this is best implemented as an operator on an image(or image_container) and not a member.
> 
> Thanks,
> -Linus
> 
> On Sun, Nov 12, 2017 at 9:16 PM, Matt Brown <matt.brown at kitware.com <mailto:matt.brown at kitware.com>> wrote:
> Is there an easy way to create a view into a window of a Vital image akin to what you can do in OpenCV by applying a cv::Rect to a cv::Mat? I couldn't find any examples in the repo of this being done. I was looking into the 'image_of' class, and I could use that with the appropriate step sizes. But, it would be ideal if a vital::image or even better vital::image_container had this functionality built in.
> 
> Thanks,
> Matt
> 
> _______________________________________________
> Kwiver-users mailing list
> Kwiver-users at public.kitware.com <mailto:Kwiver-users at public.kitware.com>
> http://public.kitware.com/mailman/listinfo/kwiver-users <http://public.kitware.com/mailman/listinfo/kwiver-users>
> 
> 
> 
> 
> -- 
> Linus Sherrill - Staff R&D Engineer
> Kitware, Inc.
> 28 Corporate Drive
> Clifton Park, NY 12065-8662
> E: linus.sherrill at kitware.com <mailto:linus.sherrill at kitware.com>
> P: 518.881.4400
> _______________________________________________
> Kwiver-users mailing list
> Kwiver-users at public.kitware.com
> http://public.kitware.com/mailman/listinfo/kwiver-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/kwiver-users/attachments/20171113/a14cc28e/attachment.html>


More information about the Kwiver-users mailing list