CFEL - ASG Software Suite  2.5.0
CASS
Public Member Functions | Private Attributes | List of all members
cass::SegmentCopier Class Reference

copy from a source matrix to a destination matrix in user wanted way More...

Public Member Functions

 SegmentCopier (const int srcCols, const int srcRows, const int destCols)
 contructor More...
 
void operator() (Processor::result_t::const_iterator src, Processor::result_t::iterator dest, const int segment, const int destColStart, const int destRowStart, const Rotor &rot) const
 copy the selected segment of the src matrix to the destination matrix More...
 

Private Attributes

const int _srcCols
 the number of colums in the src matrix More...
 
const int _srcRows
 the number of rows that one segement in the src matrix consists of More...
 
const int _destCols
 the number of columns in the dest matrix More...
 

Detailed Description

copy from a source matrix to a destination matrix in user wanted way

a functor that will copy segments of a source matrix into the dest matrix in defined a orientation.

Author
Lutz Foucar

Definition at line 178 of file image_manipulation.cpp.

Constructor & Destructor Documentation

cass::SegmentCopier::SegmentCopier ( const int  srcCols,
const int  srcRows,
const int  destCols 
)
inline

contructor

sets up the boundaries for the src and dest matrices

Parameters
srcColsthe number of colums in the src matrix
srcRowsthe number of rows in the src matrix
destColsthe number of columns in the dest matrix.

Definition at line 189 of file image_manipulation.cpp.

Member Function Documentation

void cass::SegmentCopier::operator() ( Processor::result_t::const_iterator  src,
Processor::result_t::iterator  dest,
const int  segment,
const int  destColStart,
const int  destRowStart,
const Rotor rot 
) const
inline

copy the selected segment of the src matrix to the destination matrix

Parameters
srciterator to the beginning of the linearized source matrix
destreference to the beginning of the linearized destination matrix
segmentthe index of the segment to be copied
destColStartdest column index where the src segment starts
destRowStartdest row index where the src segment starts
rotrefernce to the rotor element that tells how the src segement is oriented in the dest matrix.

Definition at line 205 of file image_manipulation.cpp.

References cass::Rotor::incDestColPerSrcCol, cass::Rotor::incDestColPerSrcRow, cass::Rotor::incDestRowPerSrcCol, and cass::Rotor::incDestRowPerSrcRow.

Member Data Documentation

const int cass::SegmentCopier::_destCols
private

the number of columns in the dest matrix

Definition at line 239 of file image_manipulation.cpp.

const int cass::SegmentCopier::_srcCols
private

the number of colums in the src matrix

Definition at line 233 of file image_manipulation.cpp.

const int cass::SegmentCopier::_srcRows
private

the number of rows that one segement in the src matrix consists of

Definition at line 236 of file image_manipulation.cpp.


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