i3dlib

Documentation

Drawing & Rasterization


Functions

template<class T>
void i3d::DrawCube (Image3d< T > &img, const VOI< size_t > &voi, T color)
template<class T>
void i3d::DrawLines (Image3d< T > &img, const std::vector< Offset > &pnts, T color)
template<class T>
void i3d::DrawLine (Image3d< T > &img, const Offset &p1, const Offset &p2, T color)
template<class T>
void i3d::DrawLine (Image3d< T > &img, Vector3d< size_t > p1, Vector3d< size_t > p2, T color)
template<class T>
I3D_DLLEXPORT void i3d::DrawLineBres (Image3d< T > &img, Vector3d< size_t > p1, Vector3d< size_t > p2, T color)
I3D_DLLEXPORT void i3d::DrawLineBres (list< Vector3d< int >;class I3D_DLLEXPORT StoreToMem{list< Vector3d< int >> *_ll)

Function Documentation

template<class T>
I3D_DLLEXPORT void i3d::DrawCube ( Image3d< T > &  img,
const VOI< size_t > &  voi,
color 
)

Fill given voi with specified colour voi is in pixels

template<class T>
I3D_DLLEXPORT void i3d::DrawLine ( Image3d< T > &  img,
Vector3d< size_t >  p1,
Vector3d< size_t >  p2,
color 
)

draws line p1, p2 into image img with specified color.

points coordinates are in pixels

template<class T>
I3D_DLLEXPORT void i3d::DrawLine ( Image3d< T > &  img,
const Offset &  p1,
const Offset &  p2,
color 
)

draws line p1, p2 into image img with specified color.

points coordinates are in microns

I3D_DLLEXPORT void i3d::DrawLineBres (  ) 

draw line p1, p2 using Bres. algorithm and stores line points the list of points

template<class T>
I3D_DLLEXPORT void i3d::DrawLineBres ( Image3d< T > &  img,
Vector3d< size_t >  p1,
Vector3d< size_t >  p2,
color 
)

draw line p1, p2 using Bres. algorithm and stores line points the the image

template<class T>
I3D_DLLEXPORT void i3d::DrawLines ( Image3d< T > &  img,
const std::vector< Offset > &  pnts,
color 
)

draws lines pnts[0], pnts[1] pnts[2], pnts[3] ... pnts[pnts.size() - 2], pnts[pnts.size() - 1]

into image img with specified color.

points coordinates are in microns