Classes
contrib/mul/vimt3d/vimt3d_vil3d_v3m.h File Reference

Reader/Writer for v3m format images. More...

#include <vil3d/vil3d_file_format.h>
#include <vimt3d/vimt3d_image_3d.h>
#include <vcl_iosfwd.h>
#include <vcl_memory.h>

Go to the source code of this file.

Classes

class  vimt3d_vil3d_v3m_format
 Reader/Writer for v3m format images, specialised for label or mask images. More...
class  vimt3d_vil3d_v3m_image
struct  vimt3d_vil3d_v3m_image::header_t
 Storage type for header information when the whole image has not yet been loaded. More...

Detailed Description

Reader/Writer for v3m format images.

Author:
Ian Scott - Imorphics v3m is a VXL specific format designed to store all the information that can be stored in a vimt3d image, using run-length-encryption. We don't recommend its use in general, having no wish to add to the plethora of badly designed image formats out there. However, a means of being able to save, and reload a full vil3d/vimt3d mask or label image using the standard vil3d_load_* API is very useful. The file format currently is different to that provided by v3i or the default vsl serialisation scheme, having learnt lessons from the evolution of v3i. There is an extra v3m-specific magic number to avoid confusion with other vsl data files, and a version number to allow for a change in format.

To use the v3m format with vil3d_load, vil3d_save, etc add the following code at the start of your program

    vil3d_file_format::add_format(new vimt3d_vil3d_v3m_format);
   

Definition in file vimt3d_vil3d_v3m.h.