Define the Frame type
Frame type should be camera specific and specialized with:
- The pixel types supported the camera (already the case)
- Some camera specific metadata (fpga_frame_idx, bunch_id) from the SDK
I suggest to start with something like:
template< typename Pixel, typename Metadata, bool IsPlanar = false, typename Alloc=std::allocator<unsigned char> >
class frame :
public image<Pixel, IsPlanar, Alloc>
{
...
}
frame
is derived from boost::gil::image
.
Alloc
is in charge of doing the proper memory management.
Metadata
is the customization point for plugin metadata.
Edited by Samuel Debionne