Uses of Class
org.opencv.core.Scalar
Packages that use Scalar
-
Uses of Scalar in org.opencv.core
Methods in org.opencv.core that return ScalarModifier and TypeMethodDescriptionstatic ScalarScalar.all(double v) Scalar.clone()Scalar.conj()static ScalarCalculates an average (mean) of array elements.static ScalarCalculates an average (mean) of array elements.static ScalarCalculates the sum of array elements.static ScalarReturns the trace of a matrix.Methods in org.opencv.core with parameters of type ScalarModifier and TypeMethodDescriptionstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidCore.copyMakeBorder(Mat src, Mat dst, int top, int bottom, int left, int right, int borderType, Scalar value) Forms a border around an image.static voidstatic voidstatic voidstatic voidChecks if array elements lie between the elements of two other arrays.static voidstatic voidstatic voidstatic voidstatic voidstatic voidCore.setIdentity(Mat mtx, Scalar s) Initializes a scaled identity matrix.static voidstatic voidstatic voidConstructors in org.opencv.core with parameters of type Scalar -
Uses of Scalar in org.opencv.imgproc
Methods in org.opencv.imgproc with parameters of type ScalarModifier and TypeMethodDescriptionstatic voidImgproc.arrowedLine(Mat img, Point pt1, Point pt2, Scalar color) Draws an arrow segment pointing from the first point to the second one.static voidImgproc.arrowedLine(Mat img, Point pt1, Point pt2, Scalar color, int thickness) Draws an arrow segment pointing from the first point to the second one.static voidImgproc.arrowedLine(Mat img, Point pt1, Point pt2, Scalar color, int thickness, int line_type) Draws an arrow segment pointing from the first point to the second one.static voidImgproc.arrowedLine(Mat img, Point pt1, Point pt2, Scalar color, int thickness, int line_type, int shift) Draws an arrow segment pointing from the first point to the second one.static voidImgproc.arrowedLine(Mat img, Point pt1, Point pt2, Scalar color, int thickness, int line_type, int shift, double tipLength) Draws an arrow segment pointing from the first point to the second one.static voidDraws a circle.static voidDraws a circle.static voidDraws a circle.static voidImgproc.circle(Mat img, Point center, int radius, Scalar color, int thickness, int lineType, int shift) Draws a circle.static voidImgproc.dilate(Mat src, Mat dst, Mat kernel, Point anchor, int iterations, int borderType, Scalar borderValue) Dilates an image by using a specific structuring element.static voidImgproc.drawContours(Mat image, List<MatOfPoint> contours, int contourIdx, Scalar color) Draws contours outlines or filled contours.static voidImgproc.drawContours(Mat image, List<MatOfPoint> contours, int contourIdx, Scalar color, int thickness) Draws contours outlines or filled contours.static voidImgproc.drawContours(Mat image, List<MatOfPoint> contours, int contourIdx, Scalar color, int thickness, int lineType) Draws contours outlines or filled contours.static voidImgproc.drawContours(Mat image, List<MatOfPoint> contours, int contourIdx, Scalar color, int thickness, int lineType, Mat hierarchy) Draws contours outlines or filled contours.static voidImgproc.drawContours(Mat image, List<MatOfPoint> contours, int contourIdx, Scalar color, int thickness, int lineType, Mat hierarchy, int maxLevel) Draws contours outlines or filled contours.static voidImgproc.drawContours(Mat image, List<MatOfPoint> contours, int contourIdx, Scalar color, int thickness, int lineType, Mat hierarchy, int maxLevel, Point offset) Draws contours outlines or filled contours.static voidImgproc.drawMarker(Mat img, Point position, Scalar color) Draws a marker on a predefined position in an image.static voidImgproc.drawMarker(Mat img, Point position, Scalar color, int markerType) Draws a marker on a predefined position in an image.static voidImgproc.drawMarker(Mat img, Point position, Scalar color, int markerType, int markerSize) Draws a marker on a predefined position in an image.static voidImgproc.drawMarker(Mat img, Point position, Scalar color, int markerType, int markerSize, int thickness) Draws a marker on a predefined position in an image.static voidImgproc.drawMarker(Mat img, Point position, Scalar color, int markerType, int markerSize, int thickness, int line_type) Draws a marker on a predefined position in an image.static voidImgproc.ellipse(Mat img, Point center, Size axes, double angle, double startAngle, double endAngle, Scalar color) Draws a simple or thick elliptic arc or fills an ellipse sector.static voidImgproc.ellipse(Mat img, Point center, Size axes, double angle, double startAngle, double endAngle, Scalar color, int thickness) Draws a simple or thick elliptic arc or fills an ellipse sector.static voidImgproc.ellipse(Mat img, Point center, Size axes, double angle, double startAngle, double endAngle, Scalar color, int thickness, int lineType) Draws a simple or thick elliptic arc or fills an ellipse sector.static voidImgproc.ellipse(Mat img, Point center, Size axes, double angle, double startAngle, double endAngle, Scalar color, int thickness, int lineType, int shift) Draws a simple or thick elliptic arc or fills an ellipse sector.static voidImgproc.ellipse(Mat img, RotatedRect box, Scalar color) static voidImgproc.ellipse(Mat img, RotatedRect box, Scalar color, int thickness) static voidImgproc.ellipse(Mat img, RotatedRect box, Scalar color, int thickness, int lineType) static voidImgproc.erode(Mat src, Mat dst, Mat kernel, Point anchor, int iterations, int borderType, Scalar borderValue) Erodes an image by using a specific structuring element.static voidImgproc.fillConvexPoly(Mat img, MatOfPoint points, Scalar color) Fills a convex polygon.static voidImgproc.fillConvexPoly(Mat img, MatOfPoint points, Scalar color, int lineType) Fills a convex polygon.static voidImgproc.fillConvexPoly(Mat img, MatOfPoint points, Scalar color, int lineType, int shift) Fills a convex polygon.static voidImgproc.fillPoly(Mat img, List<MatOfPoint> pts, Scalar color) Fills the area bounded by one or more polygons.static voidImgproc.fillPoly(Mat img, List<MatOfPoint> pts, Scalar color, int lineType) Fills the area bounded by one or more polygons.static voidImgproc.fillPoly(Mat img, List<MatOfPoint> pts, Scalar color, int lineType, int shift) Fills the area bounded by one or more polygons.static voidImgproc.fillPoly(Mat img, List<MatOfPoint> pts, Scalar color, int lineType, int shift, Point offset) Fills the area bounded by one or more polygons.static intFills a connected component with the given color.static intFills a connected component with the given color.static intFills a connected component with the given color.static intImgproc.floodFill(Mat image, Mat mask, Point seedPoint, Scalar newVal, Rect rect, Scalar loDiff, Scalar upDiff) Fills a connected component with the given color.static intImgproc.floodFill(Mat image, Mat mask, Point seedPoint, Scalar newVal, Rect rect, Scalar loDiff, Scalar upDiff, int flags) Fills a connected component with the given color.static voidDraws a line segment connecting two points.static voidDraws a line segment connecting two points.static voidDraws a line segment connecting two points.static voidDraws a line segment connecting two points.static voidImgproc.morphologyEx(Mat src, Mat dst, int op, Mat kernel, Point anchor, int iterations, int borderType, Scalar borderValue) Performs advanced morphological transformations.static voidImgproc.polylines(Mat img, List<MatOfPoint> pts, boolean isClosed, Scalar color) Draws several polygonal curves.static voidImgproc.polylines(Mat img, List<MatOfPoint> pts, boolean isClosed, Scalar color, int thickness) Draws several polygonal curves.static voidImgproc.polylines(Mat img, List<MatOfPoint> pts, boolean isClosed, Scalar color, int thickness, int lineType) Draws several polygonal curves.static voidImgproc.polylines(Mat img, List<MatOfPoint> pts, boolean isClosed, Scalar color, int thickness, int lineType, int shift) Draws several polygonal curves.static voidDraws a text string.static voidImgproc.putText(Mat img, String text, Point org, int fontFace, double fontScale, Scalar color, int thickness) Draws a text string.static voidImgproc.putText(Mat img, String text, Point org, int fontFace, double fontScale, Scalar color, int thickness, int lineType) Draws a text string.static voidImgproc.putText(Mat img, String text, Point org, int fontFace, double fontScale, Scalar color, int thickness, int lineType, boolean bottomLeftOrigin) Draws a text string.static voidDraws a simple, thick, or filled up-right rectangle.static voidDraws a simple, thick, or filled up-right rectangle.static voidDraws a simple, thick, or filled up-right rectangle.static voidImgproc.rectangle(Mat img, Point pt1, Point pt2, Scalar color, int thickness, int lineType, int shift) Draws a simple, thick, or filled up-right rectangle.static voiduserecparameter as alternative specification of the drawn rectangle: `r.tl() and r.br()-Point(1,1)` are opposite cornersstatic voiduserecparameter as alternative specification of the drawn rectangle: `r.tl() and r.br()-Point(1,1)` are opposite cornersstatic voiduserecparameter as alternative specification of the drawn rectangle: `r.tl() and r.br()-Point(1,1)` are opposite cornersstatic voiduserecparameter as alternative specification of the drawn rectangle: `r.tl() and r.br()-Point(1,1)` are opposite cornersstatic voidImgproc.remap(Mat src, Mat dst, Mat map1, Mat map2, int interpolation, int borderMode, Scalar borderValue) Applies a generic geometrical transformation to an image.static voidImgproc.warpAffine(Mat src, Mat dst, Mat M, Size dsize, int flags, int borderMode, Scalar borderValue) Applies an affine transformation to an image.static voidImgproc.warpPerspective(Mat src, Mat dst, Mat M, Size dsize, int flags, int borderMode, Scalar borderValue) Applies a perspective transformation to an image.