Public Member Functions
CSegSetWithImages Class Reference

A set of images and its segmentations, related to heart perfusion analysis. More...

#include <mia/2d/SegSetWithImages.hh>

Inheritance diagram for CSegSetWithImages:
CSegSet

Public Member Functions

CSegSetWithImages crop (const C2DIVector &start, const C2DIVector &end, const std::string &crop_filename_base)
 
 CSegSetWithImages ()
 
 CSegSetWithImages (const std::string &filename, bool ignore_path)
 
const C2DImageSeriesget_images () const
 
void save_images (const std::string &root) const
 save the images to their give file names with the given directory as root More...
 
void set_images (const C2DImageSeries &series)
 sets the image series More...
 
- Public Member Functions inherited from CSegSet
void add_frame (const CSegFrame &frame)
 
 CSegSet ()
 Standard constructor. More...
 
 CSegSet (const std::string &src_filename)
 
 CSegSet (const xmlpp::Document &node)
 
const C2DBoundingBox get_boundingbox () const
 
const Framesget_frames () const
 
Framesget_frames ()
 
int get_LV_peak () const
 
int get_preferred_reference () const
 
int get_RV_peak () const
 
void rename_base (const std::string &new_base)
 
void set_LV_peak (int peak)
 
void set_preferred_reference (int value)
 
void set_RV_peak (int peak)
 
CSegSet shift_and_rename (size_t skip, const C2DFVector &shift, const std::string &new_filename_base) const
 
void transform (const C2DTransformation &t)
 
xmlpp::Document * write () const
 

Additional Inherited Members

- Public Types inherited from CSegSet
typedef std::vector< CSegFrameFrames
 convenience typedef for the frames comprising a segmentation set More...
 

Detailed Description

A set of images and its segmentations, related to heart perfusion analysis.

A set of slices containing segmentationinformation as well as the images.

Definition at line 39 of file SegSetWithImages.hh.

Constructor & Destructor Documentation

CSegSetWithImages::CSegSetWithImages ( )
CSegSetWithImages::CSegSetWithImages ( const std::string &  filename,
bool  ignore_path 
)

Read the segmentation set and load the images

Parameters
filenamesegmentation set
ignore_pathif true the image reader will ignore the path assosiated with the images, and use the base directory of the segmentation set.

Member Function Documentation

CSegSetWithImages CSegSetWithImages::crop ( const C2DIVector start,
const C2DIVector end,
const std::string &  crop_filename_base 
)

Run acropping on the inout images and correct the segmentation information accordingly

Parameters
startupper left corner of the cropping reagion
endlower right corner of the cropping reagion
crop_filename_basenew file name base for the cropped images
Returns
a new segmentation set with the cropped images and the corrected segmentation information
const C2DImageSeries& CSegSetWithImages::get_images ( ) const
Returns
a vector of the images
void CSegSetWithImages::save_images ( const std::string &  root) const

save the images to their give file names with the given directory as root

Parameters
root
void CSegSetWithImages::set_images ( const C2DImageSeries series)

sets the image series

Parameters
series

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