factory aidecv
- Description:
Implements a few opencv utilities or specific algorithms used in this context.
- These functions are accessible via the
aidecv::
prefix.
- These functions are accessible via the
Classes
Methods
(static) mat2mat(img) → {Mat}
- Description:
Returns a cv::Mat temporary matrix that can be saved or shown.
CV_32FC2
is converted toCV_32FC3
since only 1, 3 or 4 channels image can be saved.CV_32SC1
is converted toCV_32FC1
for proper management of the values.CV_8UC1
,CV_8UC3
, andCV_32FC3
are left unchanged.- other
cv::Mat
formats are not used in this context.
Parameters:
Name | Type | Description |
---|---|---|
img |
Mat | The input image. |
Returns:
A temporary reference to the same image contents, but in a savable or showable form.
- Type
- Mat
(static) mat2json(img, meanstdevopt) → {JSON}
- Description:
Returns the cv::Mat characteristics as a string, with optionally pixels mean and standard-deviation.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
img |
Mat | The input image. |
||
meanstdev |
bool |
<optional> |
true
|
If true computes pixels intensity mean and standard-deviation. |
Returns:
A temporary JSON data structure with the different parameters.
- Type
- JSON
(static) mat2txt(img) → {String}
- Description:
Returns the image data in textual form.
Parameters:
Name | Type | Description |
---|---|---|
img |
Mat | The input image. |
Returns:
A string with a 2D print of the image pixel values.
- Type
- String
(static) bgr2bin(img) → {Mat}
- Description:
Converts a BGR image to a binary one with automatic threshold calculation.
Parameters:
Name | Type | Description |
---|---|---|
img |
Mat | The input image. |
Returns:
A temporary reference to the computed image.
- Type
- Mat