|
FlexBox - A Flexible Primal-Dual ToolBox
|
represents a superpixel operator More...
#include <flexSuperpixelOperator.h>
Public Member Functions | |
| flexSuperpixelOperator (std::vector< int > aTargetDimension, T aUpsamplingFactor, bool aMinus) | |
| initializes the superpixel operator. Downsamples image of size aUpsamplingFactor * aTargetDimension to size aTargetDimension More... | |
| flexSuperpixelOperator< T > * | copy () |
| copies the linear operator More... | |
| void | times (bool transposed, const Tdata &input, Tdata &output) |
| applies linear operator on vector More... | |
| void | timesPlus (bool transposed, const Tdata &input, Tdata &output) |
| applies linear operator on vector and adds its result to y More... | |
| void | timesMinus (bool transposed, const Tdata &input, Tdata &output) |
| applies linear operator on vector and substracts its result from y More... | |
| std::vector< T > | getAbsRowSum (bool transposed) |
| returns a vector of sum of absolute values per row used for preconditioning More... | |
| T | getMaxRowSumAbs (bool transposed) |
| returns the maximum sum of absolute values per row used for preconditioning More... | |
| thrust::device_vector< T > | getAbsRowSumCUDA (bool transposed) |
| same function as getAbsRowSum() but implemented in CUDA More... | |
Public Member Functions inherited from flexLinearOperator< T > | |
| flexLinearOperator (int aNumRows, int aNumCols, linOp aType, bool aIsMinus) | |
| initializes the linear operator More... | |
| int | getNumCols () const |
| returns number of columns of the linear operator More... | |
| int | getNumRows () const |
| returns number of rows of the linear operator More... | |
| void | setNumCols (int aNumCols) |
| sets the number of columns of the linear operator More... | |
| void | setNumRows (int aNumRows) |
| sets the number of rows of the linear operator More... | |
| void | setMinus (bool aIsMinus) |
| constrols if operator should be negated or not More... | |
Additional Inherited Members | |
Public Attributes inherited from flexLinearOperator< T > | |
| linOp | type |
| type of linear operator More... | |
| bool | isMinus |
| determines if operator is negated | |
represents a superpixel operator
downsamples data of size upsamplingFactor * targetDimension size to targetDimension
|
inline |
initializes the superpixel operator. Downsamples image of size aUpsamplingFactor * aTargetDimension to size aTargetDimension
| aTargetDimension | target dimension of downsampled image |
| aUpsamplingFactor | aUpsamplingFactor * aTargetDimension is original image size |
| aMinus | determines if operator is negated |
|
inlinevirtual |
|
inlinevirtual |
returns a vector of sum of absolute values per row used for preconditioning
| transposed | is true if operator should be (temporarily) transposed before usage |
Implements flexLinearOperator< T >.
|
inlinevirtual |
same function as getAbsRowSum() but implemented in CUDA
| transposed | is true if operator should be (temporarily) transposed before usage |
Implements flexLinearOperator< T >.
|
inlinevirtual |
returns the maximum sum of absolute values per row used for preconditioning
| transposed | is true if operator should be (temporarily) transposed before usage |
Implements flexLinearOperator< T >.
|
inlinevirtual |
applies linear operator on vector
equals
| transposed | is true if operator should be (temporarily) transposed before usage |
| input | data to be processed |
| output | output data |
Implements flexLinearOperator< T >.
|
inlinevirtual |
applies linear operator on vector and substracts its result from y
equals
| transposed | is true if operator should be (temporarily) transposed before usage |
| input | data to be processed |
| output | output data |
Implements flexLinearOperator< T >.
|
inlinevirtual |
applies linear operator on vector and adds its result to y
equals
| transposed | is true if operator should be (temporarily) transposed before usage |
| input | data to be processed |
| output | output data |
Implements flexLinearOperator< T >.
1.8.13