Class RenderResult.RgbDepth
An rgbd_tuple frame: the RGB frame and the depth frame of the same view (MuJoCo), Python's (rgb, depth).
public sealed class RenderResult.RgbDepth : RenderResult, IEquatable<RenderResult>, IDisposable
- Inheritance
-
RenderResult.RgbDepth
- Implements
- Inherited Members
- Extension Methods
Constructors
RgbDepth(NDArray, NDArray)
Wraps the two frames.
public RgbDepth(NDArray rgb, NDArray depth)
Parameters
Exceptions
- ArgumentNullException
Thrown when either frame is null.
Properties
DepthFrame
The depth frame.
public NDArray DepthFrame { get; }
Property Value
RgbFrame
The RGB frame.
public NDArray RgbFrame { get; }
Property Value
Methods
Dispose()
Releases both frames.
public override void Dispose()
Equals(RenderResult?)
Structural equality (see the class remarks).
public override bool Equals(RenderResult? other)
Parameters
otherRenderResultThe other result; may be null.
Returns
GetHashCode()
A hash consistent with Equals(RenderResult?): the case and the shapes, never the pixels.
public override int GetHashCode()
Returns
- int
The hash.
ToString()
Describes both frames by shape and dtype.
public override string ToString()
Returns
- string
The text.