MCPcopy Create free account
hub / github.com/bitristan/OpenCVSamples / convertTo

Method convertTo

OpenCV Library - 2.4.3/src/org/opencv/core/Mat.java:938–944  ·  view source on GitHub ↗

Converts an array to another data type with optional scaling. The method converts source pixel values to the target data type. saturate_cast<> is applied at the end to avoid possible overflows: m(x,y) = saturate _ cast&ltrType&gt(alpha( this)(x,y) + beta)

(Mat m, int rtype, double alpha, double beta)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

n_convertToMethod · 0.95

Tested by

no test coverage detected