View Source Evision.DNN.Image2BlobParams (Evision v0.2.9)
Summary
Functions
Get rectangle coordinates in original image system from rectangle in blob coordinates.
Get rectangle coordinates in original image system from rectangle in blob coordinates.
Image2BlobParams
Image2BlobParams
Image2BlobParams
Types
@type t() :: %Evision.DNN.Image2BlobParams{ref: reference()}
Type that represents an DNN.Image2BlobParams
struct.
ref.
reference()
The underlying erlang resource variable.
Functions
@spec blobRectsToImageRects( t(), [{number(), number(), number(), number()}], {number(), number()} ) :: [{number(), number(), number(), number()}] | {:error, String.t()}
Get rectangle coordinates in original image system from rectangle in blob coordinates.
Positional Arguments
self:
Evision.DNN.Image2BlobParams.t()
rBlob:
[Rect]
.rect in blob coordinates.
size:
Size
.original input image size.
Return
rImg:
[Rect]
.result rect in image coordinates.
Python prototype (for reference only):
blobRectsToImageRects(rBlob, size) -> rImg
@spec blobRectToImageRect( t(), {number(), number(), number(), number()}, {number(), number()} ) :: {number(), number(), number(), number()} | {:error, String.t()}
Get rectangle coordinates in original image system from rectangle in blob coordinates.
Positional Arguments
self:
Evision.DNN.Image2BlobParams.t()
rBlob:
Rect
.rect in blob coordinates.
size:
Size
.original input image size.
Return
- retval:
Rect
@returns rectangle in original image coordinates.
Python prototype (for reference only):
blobRectToImageRect(rBlob, size) -> retval
@spec get_borderValue(t()) :: Evision.scalar()
@spec get_datalayout(t()) :: Evision.DNN.DataLayout.enum()
@spec get_mean(t()) :: Evision.scalar()
@spec get_paddingmode(t()) :: Evision.DNN.ImagePaddingMode.enum()
@spec get_scalefactor(t()) :: Evision.scalar()
Image2BlobParams
Return
- self:
Image2BlobParams
Python prototype (for reference only):
Image2BlobParams() -> <dnn_Image2BlobParams object>
@spec image2BlobParams(Keyword.t()) :: any() | {:error, String.t()}
@spec image2BlobParams(Evision.scalar()) :: t() | {:error, String.t()}
Image2BlobParams
Positional Arguments
- scalefactor:
Evision.scalar()
Keyword Arguments
- size:
Size
. - mean:
Evision.scalar()
. - swapRB:
bool
. - ddepth:
integer()
. - datalayout:
DataLayout
. - mode:
ImagePaddingMode
. - borderValue:
Evision.scalar()
.
Return
- self:
Image2BlobParams
Python prototype (for reference only):
Image2BlobParams(scalefactor[, size[, mean[, swapRB[, ddepth[, datalayout[, mode[, borderValue]]]]]]]) -> <dnn_Image2BlobParams object>
@spec image2BlobParams( Evision.scalar(), [ borderValue: term(), datalayout: term(), ddepth: term(), mean: term(), mode: term(), size: term(), swapRB: term() ] | nil ) :: t() | {:error, String.t()}
Image2BlobParams
Positional Arguments
- scalefactor:
Evision.scalar()
Keyword Arguments
- size:
Size
. - mean:
Evision.scalar()
. - swapRB:
bool
. - ddepth:
integer()
. - datalayout:
DataLayout
. - mode:
ImagePaddingMode
. - borderValue:
Evision.scalar()
.
Return
- self:
Image2BlobParams
Python prototype (for reference only):
Image2BlobParams(scalefactor[, size[, mean[, swapRB[, ddepth[, datalayout[, mode[, borderValue]]]]]]]) -> <dnn_Image2BlobParams object>
@spec set_borderValue(t(), Evision.scalar()) :: t()
@spec set_datalayout(t(), Evision.DNN.DataLayout.enum()) :: t()
@spec set_mean(t(), Evision.scalar()) :: t()
@spec set_paddingmode(t(), Evision.DNN.ImagePaddingMode.enum()) :: t()
@spec set_scalefactor(t(), Evision.scalar()) :: t()