public class SbKernel2i32 extends Inventor
See also:
Inventor.ConstructorCommand
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SbKernel2i32()
Default constructor.
|
SbKernel2i32(int numRows,
int numCols)
Constructor defining the size of the kernel.
|
SbKernel2i32(SbKernel2i32 copyFrom) |
SbKernel2i32(SbVec2i32 size)
Constructor defining the size of the kernel (numRows, numColumns).
|
Modifier and Type | Method and Description |
---|---|
long |
getNumCols()
Returns the number of columns.
|
long |
getNumRows()
Returns the number of rows.
|
SbVec2i32 |
getSize()
Returns the size of the kernel.
|
int |
getValue(int indexRow,
int indexCol)
Returns the value of the kernel at position (row, col).
|
void |
setSize(long numRows,
long numCols)
Set the size of the kernel.
|
void |
setSize(SbVec2i32 dimension)
Set the size of the kernel.
|
void |
setValue(int indexRow,
int indexCol,
int value)
Sets the value of the kernel at position (row, col).
|
void |
setValue(SbKernel2i32 copyFrom) |
static SbKernel2i32[] |
toArray(long nativeArray,
long length) |
dispose, getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
public SbKernel2i32(SbKernel2i32 copyFrom)
public SbKernel2i32(SbVec2i32 size)
public SbKernel2i32()
public SbKernel2i32(int numRows, int numCols)
public void setSize(SbVec2i32 dimension)
If numCols (or numRows) is smaller than the current number of columns (or rows), the kernel is reduced to the first numCols columns (or numRows rows).
If numCols (or numRows) is greater than the current number of columns (or rows), values inside the old bounds are preserved and values outside the old bounds are filled to 0.
public long getNumRows()
public static SbKernel2i32[] toArray(long nativeArray, long length)
public void setSize(long numRows, long numCols)
If numCols (or numRows) is smaller than the current number of columns (or rows), the kernel is reduced to the first numCols columns (or numRows rows).
If numCols (or numRows) is greater than the current number of columns (or rows), values inside the old bounds are preserved and values outside the old bounds are filled to 0.
public void setValue(SbKernel2i32 copyFrom)
public long getNumCols()
public SbVec2i32 getSize()
public int getValue(int indexRow, int indexCol)
public void setValue(int indexRow, int indexCol, int value)
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com