24#ifndef _SB_KERNEL_2I32_H_
25#define _SB_KERNEL_2I32_H_
96 void setSize(
size_t numRows,
size_t numCols);
104 int32_t
getValue(
int indexRow,
int indexCol)
const;
110 void setValue(
int indexRow,
int indexCol, int32_t value);
132 const int32_t&
operator()(
int indexRow,
int indexCol)
const ;
143 {
return !(k1 == k2); }
147 std::vector<int32_t> m_kernelsValues;
int operator==(const className &f) const
Returns TRUE if otherField is of the same type and has the same value as this field.
int operator!=(const className &f) const
Returns FALSE if otherField is of the same type and has the same value as this field.
<a href="IconLegend.html"><img src="extIP.gif" alt="ImageViz" border="0"></a> Integer 2D-Kernel for ...
void setSize(const SbVec2i32 &dimension)
size_t getNumRows() const
Returns the number of rows.
size_t getNumCols() const
Returns the number of columns.
~SbKernel2i32()
Destructor.
SbKernel2i32(const SbVec2i32 &size)
Constructor defining the size of the kernel (numRows, numColumns).
SbKernel2i32()
Default constructor.
int32_t getValue(int indexRow, int indexCol) const
Returns the value of the kernel at position (row, col).
SbVec2i32 getSize() const
Returns the size of the kernel.
void setSize(size_t numRows, size_t numCols)
Set the size of the kernel.
int32_t & operator()(int indexRow, int indexCol)
L-value accessor operator as an usual matrix.
SbKernel2i32(int numRows, int numCols)
Constructor defining the size of the kernel.
void setValue(int indexRow, int indexCol, int32_t value)
Sets the value of the kernel at position (row, col).
const int32_t & operator()(int indexRow, int indexCol) const
Accessor operator as an usual matrix.