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

Method ones

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

Returns an array of all 1's of the specified size and type. The method returns a Matlab-style 1's array initializer, similarly to"Mat.zeros". Note that using this method you can initialize an array with an arbitrary value, using the following Matlab idiom: // C++ code:

(int rows, int cols, int type)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

n_onesMethod · 0.95

Tested by

no test coverage detected