Pad image border with OpenCV.
Pad image border with OpenCV.
source image
Top margin.
Bottom margin.
Left margin.
Right margin.
Filling type (default=cv2.BORDER_CONSTANT).
(Deprecated! Use
instead.) Fill with single value.values
Fill with value(RGB[A] or gray), up to 4 channels.
org.apache.mxnet.NDArray
Do a fixed crop on the image
Do a fixed crop on the image
Src image in NDArray
starting x point
starting y point
width of the image
height of the image
cropped NDArray
Same imageDecode with InputStream
Same imageDecode with InputStream
the inputStream of the image
NDArray in HWC format
Decode image with OpenCV.
Decode image with OpenCV. Note: return image in RGB by default, instead of OpenCV's default BGR.
Buffer containing binary encoded image
Convert decoded image to grayscale (0) or color (1).
Whether to convert decoded image to mxnet's default RGB format (instead of opencv's default BGR).
NDArray in HWC format
Read and decode image with OpenCV.
Read and decode image with OpenCV. Note: return image in RGB by default, instead of OpenCV's default BGR.
Name of the image file to be loaded.
Convert decoded image to grayscale (0) or color (1).
Whether to convert decoded image to mxnet's default RGB format (instead of opencv's default BGR).
org.apache.mxnet.NDArray in HWC format
Resize image with OpenCV.
Resize image with OpenCV.
source image in NDArray
Width of resized image.
Height of resized image.
Interpolation method (default=cv2.INTER_LINEAR).
org.apache.mxnet.NDArray
Convert a NDArray image to a real image The time cost will increase if the image resolution is big
Convert a NDArray image to a real image The time cost will increase if the image resolution is big
Source image file in RGB
Buffered Image
Image API of Scala package enable OpenCV feature