pub trait ToNdarray3 {
type Out;
// Required method
fn into_ndarray3(self) -> Self::Out;
}
Expand description
Converts a 3d type to a ndarray 2d array type.
Coordinates are in (channel, row, col)
, where channel is typically a color
channel, or they are in (z, y, x)
.
This uses an associated type to avoid ambiguity for the compiler. By calling this, the compiler always knows the returned type.