Functions
Drawing & Rasterization

Functions

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 >
void i3d::DrawLines (Image3d< T > &img, const std::vector< Offset > &pnts, T color)
template<class T >
void i3d::DrawLineBres (Image3d< T > &img, Vector3d< size_t > p1, Vector3d< size_t > p2, T color)
void i3d::DrawLineBres (std::list< Vector3d< int > > &ll, Vector3d< size_t > p1, Vector3d< size_t > p2)
template<class T >
void i3d::DrawCube (Image3d< T > &img, const VOI< PIXELS > &voi, T color)
template<class VOXEL1 , class VOXEL2 >
ComponentInfo< VOXEL2, VOXEL1 > i3d::FloodFill (const Image3d< VOXEL1 > &in, Image3d< VOXEL2 > &out, VOXEL2 color, size_t x, size_t y, size_t z, const Neighbourhood &neib=nb3D_6)
template<class VOXEL1 , class VOXEL2 >
ComponentInfo< VOXEL2, VOXEL1 > i3d::FloodFill (const Image3d< VOXEL1 > &in, Image3d< VOXEL2 > &out, VOXEL2 color, size_t seed_index, const Neighbourhood &neib=nb3D_6)
template<class VOXEL >
void i3d::FloodFill (Image3d< VOXEL > &img, VOXEL color, size_t x, size_t y, size_t z, const Neighbourhood &neib=nb3D_6)
template<class VOXEL >
void i3d::FloodFill (Image3d< VOXEL > &img, VOXEL color, size_t seed_index, const Neighbourhood &neib=nb3D_6)

Detailed Description

Todo:
better documentation format, why is Offset used as a representation of 3d point?

Function Documentation

template<class T >
I3D_ALGO_EXPORT 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

template<class T >
I3D_ALGO_EXPORT 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_ALGO_EXPORT 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

template<class T >
I3D_ALGO_EXPORT 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 in the image

I3D_ALGO_EXPORT void i3d::DrawLineBres ( std::list< Vector3d< int > > &  ll,
Vector3d< size_t >  p1,
Vector3d< size_t >  p2 
)

draw line p1, p2 using Bres.

algorithm and stores line points in the list of points

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

Fill given voi with specified colour, voi is in pixels.

template<class VOXEL1 , class VOXEL2 >
I3D_ALGO_EXPORT ComponentInfo< VOXEL2, VOXEL1 > i3d::FloodFill ( const Image3d< VOXEL1 > &  in,
Image3d< VOXEL2 > &  out,
VOXEL2  color,
size_t  x,
size_t  y,
size_t  z,
const Neighbourhood &  neib = nb3D_6 
)

FloodFill algorithm for filling the image region with choosen color.

The seed voxel is positioned at (x,y,z). Function returns ComponentInfo so that we now everything about newly created region in image.

template<class VOXEL1 , class VOXEL2 >
I3D_ALGO_EXPORT ComponentInfo< VOXEL2, VOXEL1 > i3d::FloodFill ( const Image3d< VOXEL1 > &  in,
Image3d< VOXEL2 > &  out,
VOXEL2  color,
size_t  seed_index,
const Neighbourhood &  neib = nb3D_6 
)

FloodFill algorithm for filling the image region with choosen color.

The seed voxel is determined by an index. Function returns ComponentInfo so that we now everything about newly created region in image.

template<class VOXEL >
I3D_ALGO_EXPORT void i3d::FloodFill ( Image3d< VOXEL > &  img,
VOXEL  color,
size_t  x,
size_t  y,
size_t  z,
const Neighbourhood &  neib = nb3D_6 
)

FloodFill algorithm for filling the image region with choosen color.

The seed voxel is positioned at (x,y,z).

template<class VOXEL >
I3D_ALGO_EXPORT void i3d::FloodFill ( Image3d< VOXEL > &  img,
VOXEL  color,
size_t  seed_index,
const Neighbourhood &  neib = nb3D_6 
)

FloodFill algorithm for filling the image region with choosen color.

The seed voxel is determined by an index.