http://www.emgu.com
Returns an array of all 1's of the specified size and type.
Namespace:
Emgu.CV
Assembly:
Emgu.CV.World (in Emgu.CV.World.dll) Version: 4.1.1.3497 (4.1.1.3497)
Syntaxpublic static Mat Ones(
int rows,
int cols,
DepthType type,
int channels
)
Public Shared Function Ones (
rows As Integer,
cols As Integer,
type As DepthType,
channels As Integer
) As Mat
public:
static Mat^ Ones(
int rows,
int cols,
DepthType type,
int channels
)
static member Ones :
rows : int *
cols : int *
type : DepthType *
channels : int -> Mat
Parameters
- rows
- Type: SystemInt32
Number of rows. - cols
- Type: SystemInt32
Number of columns. - type
- Type: Emgu.CV.CvEnumDepthType
Mat element type - channels
- Type: SystemInt32
Number of channels
Return Value
Type:
MatAn array of all 1's of the specified size and type.
See Also