public class SbKernel3i32 extends Inventor
See also:
Inventor.ConstructorCommand
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SbKernel3i32()
Default constructor.
|
SbKernel3i32(long numCols,
long numRows,
long numSlices)
Constructor defining the size of the kernel.
|
SbKernel3i32(SbKernel3i32 copyFrom) |
SbKernel3i32(SbVec3i32 size)
Constructor defining the size of the kernel.
|
Modifier and Type | Method and Description |
---|---|
long |
getNumCols()
Returns the number of columns.
|
long |
getNumRows()
Returns the number of rows.
|
long |
getNumSlices()
Returns the number of slices.
|
SbVec3i32 |
getSize()
Returns the size of the kernel.
|
int |
getValue(int indexCol,
int indexRow,
int indexSlice)
Returns the value of the kernel at position (i, j, k).
|
void |
setSize(long numCols,
long numRows,
long numSlices)
Set the size of the kernel.
|
void |
setSize(SbVec3i32 dimension)
Set the size of the kernel.
|
void |
setValue(int indexCol,
int indexRow,
int indexSlice,
int value)
Sets the value of the kernel at position (i, j, k).
|
void |
setValue(SbKernel3i32 copyFrom) |
static SbKernel3i32[] |
toArray(long nativeArray,
long length) |
dispose, getNativeResourceHandle
public SbKernel3i32(SbKernel3i32 copyFrom)
public SbKernel3i32(long numCols, long numRows, long numSlices)
public SbKernel3i32(SbVec3i32 size)
public SbKernel3i32()
public static SbKernel3i32[] toArray(long nativeArray, long length)
public void setValue(SbKernel3i32 copyFrom)
public long getNumCols()
public void setSize(SbVec3i32 dimension)
If the specified size on a dimension is smaller than the current one, the kernel is reduced to its first elements on the corresponding dimension.
If specified size on a dimension is greater than the current one, values inside the old bounds are preserved and values outside the old bounds are filled to 0.
public long getNumRows()
public long getNumSlices()
public void setSize(long numCols, long numRows, long numSlices)
If the specified size on a dimension is smaller than the current one, the kernel is reduced to its first elements on the corresponding dimension.
If specified size on a dimension is greater than the current one, values inside the old bounds are preserved and values outside the old bounds are filled to 0.
public void setValue(int indexCol, int indexRow, int indexSlice, int value)
getNumCols()
for columns, getNumRows()
for rows, and getNumSlices()
for slices. Throws an SbException
if indices are out of bounds.public SbVec3i32 getSize()
public int getValue(int indexCol, int indexRow, int indexSlice)
getNumCols()
for columns, getNumRows()
for rows, and getNumSlices()
for slices. Throws an SbException
if indices are out of bounds.Generated on July 31, 2019, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com