asString method
Implementation
String asString() {
final String s = switch (depth) {
CV_8U => "CV_8U",
CV_8S => "CV_8S",
CV_16U => "CV_16U",
CV_16S => "CV_16S",
CV_32S => "CV_32S",
CV_32F => "CV_32F",
CV_64F => "CV_64F",
CV_16F => "CV_16F",
_ => throw CvdException("Unsupported type value ($value)"),
};
return channels <= 4 ? "${s}C$channels" : "${s}C($channels)";
}