Class VolumeSettings
java.lang.Object
org.opencv.ptcloud.VolumeSettings
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionConstructor of settings for custom Volume type.VolumeSettings(int volumeType) Constructor of settings for custom Volume type.protectedVolumeSettings(long addr) -
Method Summary
Modifier and TypeMethodDescriptionstatic VolumeSettings__fromPtr__(long addr) voidReturns intrinsics of camera for integrations.voidReturns camera intrinsics for raycast image, used when user does not provide them at raycast() call.floatReturns depth factor, witch is the number for depth scaling.intReturns the height of the image for integration.intReturns the width of the image for integration.floatReturns threshold for depth truncation in meters.intReturns max number of frames to integrate per voxel.longintReturns the height of the raycasted image, used when user does not provide it at raycast() call.floatReturns length of single raycast step.intReturns the width of the raycasted image, used when user does not provide it at raycast() call.floatReturns TSDF truncation distance.voidgetVolumePose(Mat val) Sets volume pose.voidgetVolumeResolution(Mat val) Resolution of voxel space.voidgetVolumeStrides(Mat val) Returns 3 integers representing strides by x, y and z dimension.floatReturns the size of voxel.voidSets intrinsics of camera for integrations.voidSets camera intrinsics for raycast image which, used when user does not provide them at raycast() call.voidsetDepthFactor(float val) Sets depth factor, witch is the number for depth scaling.voidsetIntegrateHeight(int val) Sets the height of the image for integration.voidsetIntegrateWidth(int val) Sets the width of the image for integration.voidsetMaxDepth(float val) Sets threshold for depth truncation in meters.voidsetMaxWeight(int val) Sets max number of frames to integrate per voxel.voidsetRaycastHeight(int val) Sets the height of the raycasted image, used when user does not provide it at raycast() call.voidsetRaycastStepFactor(float val) Sets length of single raycast step.voidsetRaycastWidth(int val) Sets the width of the raycasted image, used when user does not provide it at raycast() call.voidsetTsdfTruncateDistance(float val) Sets TSDF truncation distance.voidsetVolumePose(Mat val) Sets volume pose.voidsetVolumeResolution(Mat val) Resolution of voxel space.voidsetVoxelSize(float val) Sets the size of voxel.
-
Field Details
-
nativeObj
protected final long nativeObj
-
-
Constructor Details
-
VolumeSettings
protected VolumeSettings(long addr) -
VolumeSettings
public VolumeSettings(int volumeType) Constructor of settings for custom Volume type.- Parameters:
volumeType- volume type.
-
VolumeSettings
public VolumeSettings()Constructor of settings for custom Volume type.
-
-
Method Details
-
getNativeObjAddr
public long getNativeObjAddr() -
__fromPtr__
-
setIntegrateWidth
public void setIntegrateWidth(int val) Sets the width of the image for integration.- Parameters:
val- input value.
-
getIntegrateWidth
public int getIntegrateWidth()Returns the width of the image for integration.- Returns:
- automatically generated
-
setIntegrateHeight
public void setIntegrateHeight(int val) Sets the height of the image for integration.- Parameters:
val- input value.
-
getIntegrateHeight
public int getIntegrateHeight()Returns the height of the image for integration.- Returns:
- automatically generated
-
setRaycastWidth
public void setRaycastWidth(int val) Sets the width of the raycasted image, used when user does not provide it at raycast() call.- Parameters:
val- input value.
-
getRaycastWidth
public int getRaycastWidth()Returns the width of the raycasted image, used when user does not provide it at raycast() call.- Returns:
- automatically generated
-
setRaycastHeight
public void setRaycastHeight(int val) Sets the height of the raycasted image, used when user does not provide it at raycast() call.- Parameters:
val- input value.
-
getRaycastHeight
public int getRaycastHeight()Returns the height of the raycasted image, used when user does not provide it at raycast() call.- Returns:
- automatically generated
-
setDepthFactor
public void setDepthFactor(float val) Sets depth factor, witch is the number for depth scaling.- Parameters:
val- input value.
-
getDepthFactor
public float getDepthFactor()Returns depth factor, witch is the number for depth scaling.- Returns:
- automatically generated
-
setVoxelSize
public void setVoxelSize(float val) Sets the size of voxel.- Parameters:
val- input value.
-
getVoxelSize
public float getVoxelSize()Returns the size of voxel.- Returns:
- automatically generated
-
setTsdfTruncateDistance
public void setTsdfTruncateDistance(float val) Sets TSDF truncation distance. Distances greater than value from surface will be truncated to 1.0.- Parameters:
val- input value.
-
getTsdfTruncateDistance
public float getTsdfTruncateDistance()Returns TSDF truncation distance. Distances greater than value from surface will be truncated to 1.0.- Returns:
- automatically generated
-
setMaxDepth
public void setMaxDepth(float val) Sets threshold for depth truncation in meters. Truncates the depth greater than threshold to 0.- Parameters:
val- input value.
-
getMaxDepth
public float getMaxDepth()Returns threshold for depth truncation in meters. Truncates the depth greater than threshold to 0.- Returns:
- automatically generated
-
setMaxWeight
public void setMaxWeight(int val) Sets max number of frames to integrate per voxel. Represents the max number of frames over which a running average of the TSDF is calculated for a voxel.- Parameters:
val- input value.
-
getMaxWeight
public int getMaxWeight()Returns max number of frames to integrate per voxel. Represents the max number of frames over which a running average of the TSDF is calculated for a voxel.- Returns:
- automatically generated
-
setRaycastStepFactor
public void setRaycastStepFactor(float val) Sets length of single raycast step. Describes the percentage of voxel length that is skipped per march.- Parameters:
val- input value.
-
getRaycastStepFactor
public float getRaycastStepFactor()Returns length of single raycast step. Describes the percentage of voxel length that is skipped per march.- Returns:
- automatically generated
-
setVolumePose
-
getVolumePose
-
setVolumeResolution
Resolution of voxel space. Number of voxels in each dimension. Applicable only for TSDF Volume. HashTSDF volume only supports equal resolution in all three dimensions.- Parameters:
val- input value.
-
getVolumeResolution
Resolution of voxel space. Number of voxels in each dimension. Applicable only for TSDF Volume. HashTSDF volume only supports equal resolution in all three dimensions.- Parameters:
val- output value.
-
getVolumeStrides
Returns 3 integers representing strides by x, y and z dimension. Can be used to iterate over raw volume unit data.- Parameters:
val- output value.
-
setCameraIntegrateIntrinsics
Sets intrinsics of camera for integrations. Format of input: [ fx 0 cx ] [ 0 fy cy ] [ 0 0 1 ] where fx and fy are focus points of Ox and Oy axises, and cx and cy are central points of Ox and Oy axises.- Parameters:
val- input value.
-
getCameraIntegrateIntrinsics
Returns intrinsics of camera for integrations. Format of output: [ fx 0 cx ] [ 0 fy cy ] [ 0 0 1 ] where fx and fy are focus points of Ox and Oy axises, and cx and cy are central points of Ox and Oy axises.- Parameters:
val- output value.
-
setCameraRaycastIntrinsics
Sets camera intrinsics for raycast image which, used when user does not provide them at raycast() call. Format of input: [ fx 0 cx ] [ 0 fy cy ] [ 0 0 1 ] where fx and fy are focus points of Ox and Oy axises, and cx and cy are central points of Ox and Oy axises.- Parameters:
val- input value.
-
getCameraRaycastIntrinsics
Returns camera intrinsics for raycast image, used when user does not provide them at raycast() call. Format of output: [ fx 0 cx ] [ 0 fy cy ] [ 0 0 1 ] where fx and fy are focus points of Ox and Oy axises, and cx and cy are central points of Ox and Oy axises.- Parameters:
val- output value.
-