Class SensorUtils
Provides some useful ad hoc functions.
Inherited Members
Namespace: Mechatronics.SensorSDK
Assembly: solution.dll
Syntax
public static class SensorUtils
Methods
Name | Description |
---|---|
ChangeHDCameraExposure(Camera, float) | Sets the exposure time of the given camera. |
ChangeHDCameraGain(Camera, float) | Sets the gain of the given camera. |
ComputePixelFocalLength(float, int) | Determines the equivalent focal length, in pixels, for a given field of view angle and image size. |
CreateOrKeepBiggerComputeBuffer<T>(ref ComputeBuffer, int, string) | If the buffer does not have a size big enough to contain the count requested or is not currently allocated, release and allocate a new one. |
CreateOrResizeComputeBuffer<T>(ref ComputeBuffer, int, string) | If the buffer does not have the exact count requested or is not currently allocated, release and allocate a new one. |
CreateOrResizeRenderTexture(ref RenderTexture, int, int, int, bool, RenderTextureFormat, RenderTextureReadWrite, string) | Creates a new texture if the given texture is null or the wrong size. |
IsFrameCompleted(HDCamera) | Returns if a multiframe capture is completed. |
ObjectIdVector(uint) | Pack an id in a vector4. |
TryAddTriggerBoxCollider(GameObject, float) | If no collider is on the game object, add a box collider of given size, in Trigger mode |