ImSegment Struct Reference
Public Types
Public Member Functions
Data Fields
|
|
- Pixlist pixels_
- the list of pixels (resolution elements, really: pixels in the segmentation map) in this segment
- int id_
- segment id
- bool evalgood_
- true if evaluation of geometric properties succeded
- int pixnum_
- the number of pixels
- int mx_
- int my_
- int mz_
- coordinates of maximum intensity
- float mv_
- max intensity
- int x1_
- int y1_
- int z1_
- int x2_
- int y2_
- int z2_
- minimal and maximal extents
- float icx_
- float icy_
- float icz_
- float ir1_
- first moments
- float ixx_
- float iyy_
- float izz_
- float ixy_
- float fwhmxy_
- float fwhmzz_
- second moments
- float a_
- float b_
- float pa_
- semi-major and minor axes, pos-angel
- float avgv_
- average value
Friends
Detailed Description
Image segment (consecutive region of pixels satisfying some value constraint) The list of pixels in this segment are stored as a list of ImPixel
objects. Basic geometric properties of the segment can be computed. TODO: beef up the segmentation map to contain all info necessary to go back to the object/fibers and measure more properties.
Member Typedef Documentation
Constructor & Destructor Documentation
ImSegment::ImSegment |
( |
|
) |
[inline] |
ImSegment::ImSegment |
( |
const ImSegment & |
other |
) |
[inline] |
ImSegment::~ImSegment |
( |
|
) |
[virtual] |
Member Function Documentation
void ImSegment::addpixel |
( |
const int |
x, |
|
|
const int |
y, |
|
|
const int |
z, |
|
|
const float |
v | |
|
) |
| | |
References mv_, mx_, my_, mz_, pixels_, pixnum_, x1_, x2_, y1_, y2_, z1_, and z2_.
Referenced by ImageSegmenter::mark_pixels_n().
bool ImSegment::evaluate |
( |
void |
|
) |
|
References a, a_, avgv_, b_, c, evalgood_, fwhmxy_, fwhmzz_, icx_, icy_, icz_, ir1_, ixx_, ixy_, iyy_, izz_, pa_, pixels_, pixnum_, v, ImPixel::v_, ImPixel::x_, ImPixel::y_, and ImPixel::z_.
Referenced by ImageSegmenter::evaluate().
bool ImSegment::evalgood |
( |
|
) |
const [inline] |
Friends And Related Function Documentation
std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const ImSegment & |
i | |
|
) |
| | [friend] |
Field Documentation