ore/Mat.html#ones(int,%20int,%20int)">ones</a></strong>(int&nbsp;rows,
    int&nbsp;cols,
    int&nbsp;type)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../../../org/opencv/core/Mat.html" title="class in org.opencv.core">Mat</a></code></td>
<td class="colLast"><code><strong><a href="../../../org/opencv/core/Mat.html#ones(org.opencv.core.Size,%20int)">ones</a></strong>(<a href="../../../org/opencv/core/Size.html" title="class in org.opencv.core">Size</a>&nbsp;size