[Kwiver-users] Save vital type to disk
Matthew Leotta
matt.leotta at kitware.com
Wed Sep 6 10:51:23 EDT 2017
I would not add any file I/O fuactions directly to the Vital type classes. You can add stream operators (that is, >> and <<) along side the type classes. I believe homography already has those. Currently we are putting file I/O functions in separate files in "kwiver/vital/io”. Look at camera_io.h as an example. These I/O functions should mostly just validate file object and then call the stream operators.
> On Sep 6, 2017, at 10:38 AM, Matt Brown <matt.brown at kitware.com> wrote:
>
> My current interest is in reading/writing a vital/homography from/to disk. Note, this is the simpler homography without other metadata in it (i.e., not homography_f2f). I would like to create a base class methods save_to_file and read_from_file, but I have a few questions:
>
> Should this go in the base class or in homography_?
> It seems to me that this might be a useful generic facility across all vital types, so maybe we should take a moment and consider what the member function names should be and their scope.
> _______________________________________________
> 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/20170906/88a2744e/attachment.html>
More information about the Kwiver-users
mailing list