fw4spl
fwDataTools::Image Class Reference

This class contains helper to generate and compare images. More...

#include <Image.hpp>

Public Member Functions

template<typename IMG_DEST_TYPE , typename MASK_TYPE >
void mergeMask (::fwData::Image::sptr imgDest,::fwData::Image::sptr mask, IMG_DEST_TYPE val)
 Merge mask in image imgDest: put value 'val' in imgDest when mask value != 0.
 

Static Public Member Functions

static FWDATATOOLS_API void applyRoi (::fwData::Image::sptr image,::fwData::Image::sptr roi)
 Apply roi to image. More...
 
static FWDATATOOLS_API bool isRoiApplyed (::fwData::Image::sptr image,::fwData::Image::sptr imgRoiApplyed,::fwData::Image::sptr roi)
 Check if 'imgRoiApplyed' is the result of 'roi' applyed to 'image'.
 

Detailed Description

This class contains helper to generate and compare images.

Definition at line 27 of file core/fwDataTools/include/fwDataTools/Image.hpp.

Member Function Documentation

void fwDataTools::Image::applyRoi ( ::fwData::Image::sptr  image,
::fwData::Image::sptr  roi 
)
static

Apply roi to image.

set input image voxel to zero where roi voxel value is zero

Definition at line 80 of file core/fwDataTools/src/fwDataTools/Image.cpp.

References fwTools::Dispatcher< TSEQ, FUNCTOR >::invoke(), and SLM_ASSERT.

+ Here is the call graph for this function:


The documentation for this class was generated from the following files: