Uses of Class
org.opencv.core.Scalar

Packages that use Scalar
Package
Description
 
 
  • Uses of Scalar in org.opencv.core

    Methods in org.opencv.core that return Scalar
    Modifier and Type
    Method
    Description
    static Scalar
    Scalar.all(double v)
     
    Scalar.clone()
     
    Scalar.conj()
     
    static Scalar
    Core.mean(Mat src)
    Calculates an average (mean) of array elements.
    static Scalar
    Core.mean(Mat src, Mat mask)
    Calculates an average (mean) of array elements.
    Scalar.mul(Scalar it)
     
    Scalar.mul(Scalar it, double scale)
     
    static Scalar
    Core.sumElems(Mat src)
    Calculates the sum of array elements.
    static Scalar
    Core.trace(Mat mtx)
    Returns the trace of a matrix.
    Methods in org.opencv.core with parameters of type Scalar
    Modifier and Type
    Method
    Description
    static void
    Core.absdiff(Mat src1, Scalar src2, Mat dst)
     
    static void
    Core.add(Mat src1, Scalar src2, Mat dst)
     
    static void
    Core.add(Mat src1, Scalar src2, Mat dst, Mat mask)
     
    static void
    Core.add(Mat src1, Scalar src2, Mat dst, Mat mask, int dtype)
     
    static void
    Core.compare(Mat src1, Scalar src2, Mat dst, int cmpop)
     
    static void
    Core.copyMakeBorder(Mat src, Mat dst, int top, int bottom, int left, int right, int borderType, Scalar value)
    Forms a border around an image.
    static void
    Core.divide(Mat src1, Scalar src2, Mat dst)
     
    static void
    Core.divide(Mat src1, Scalar src2, Mat dst, double scale)
     
    static void
    Core.divide(Mat src1, Scalar src2, Mat dst, double scale, int dtype)
     
    static void
    Core.inRange(Mat src, Scalar lowerb, Scalar upperb, Mat dst)
    Checks if array elements lie between the elements of two other arrays.
    static void
    Core.max(Mat src1, Scalar src2, Mat dst)
     
    static void
    Core.min(Mat src1, Scalar src2, Mat dst)
     
    Scalar.mul(Scalar it)
     
    Scalar.mul(Scalar it, double scale)
     
    static void
    Core.multiply(Mat src1, Scalar src2, Mat dst)
     
    static void
    Core.multiply(Mat src1, Scalar src2, Mat dst, double scale)
     
    static void
    Core.multiply(Mat src1, Scalar src2, Mat dst, double scale, int dtype)
     
    static void
    Core.setIdentity(Mat mtx, Scalar s)
    Initializes a scaled identity matrix.
    Mat.setTo(Scalar s)
     
    Mat.setTo(Scalar value, Mat mask)
     
    static void
    Core.subtract(Mat src1, Scalar src2, Mat dst)
     
    static void
    Core.subtract(Mat src1, Scalar src2, Mat dst, Mat mask)
     
    static void
    Core.subtract(Mat src1, Scalar src2, Mat dst, Mat mask, int dtype)
     
    Constructors in org.opencv.core with parameters of type Scalar
    Modifier
    Constructor
    Description
     
    Mat(int[] sizes, int type, Scalar s)
     
     
    Mat(int rows, int cols, int type, Scalar s)
     
     
    Mat(Size size, int type, Scalar s)
     
  • Uses of Scalar in org.opencv.imgproc

    Methods in org.opencv.imgproc with parameters of type Scalar
    Modifier and Type
    Method
    Description
    static void
    Imgproc.arrowedLine(Mat img, Point pt1, Point pt2, Scalar color)
    Draws an arrow segment pointing from the first point to the second one.
    static void
    Imgproc.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 void
    Imgproc.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 void
    Imgproc.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 void
    Imgproc.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 void
    Imgproc.circle(Mat img, Point center, int radius, Scalar color)
    Draws a circle.
    static void
    Imgproc.circle(Mat img, Point center, int radius, Scalar color, int thickness)
    Draws a circle.
    static void
    Imgproc.circle(Mat img, Point center, int radius, Scalar color, int thickness, int lineType)
    Draws a circle.
    static void
    Imgproc.circle(Mat img, Point center, int radius, Scalar color, int thickness, int lineType, int shift)
    Draws a circle.
    static void
    Imgproc.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 void
    Imgproc.drawContours(Mat image, List<MatOfPoint> contours, int contourIdx, Scalar color)
    Draws contours outlines or filled contours.
    static void
    Imgproc.drawContours(Mat image, List<MatOfPoint> contours, int contourIdx, Scalar color, int thickness)
    Draws contours outlines or filled contours.
    static void
    Imgproc.drawContours(Mat image, List<MatOfPoint> contours, int contourIdx, Scalar color, int thickness, int lineType)
    Draws contours outlines or filled contours.
    static void
    Imgproc.drawContours(Mat image, List<MatOfPoint> contours, int contourIdx, Scalar color, int thickness, int lineType, Mat hierarchy)
    Draws contours outlines or filled contours.
    static void
    Imgproc.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 void
    Imgproc.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 void
    Imgproc.drawMarker(Mat img, Point position, Scalar color)
    Draws a marker on a predefined position in an image.
    static void
    Imgproc.drawMarker(Mat img, Point position, Scalar color, int markerType)
    Draws a marker on a predefined position in an image.
    static void
    Imgproc.drawMarker(Mat img, Point position, Scalar color, int markerType, int markerSize)
    Draws a marker on a predefined position in an image.
    static void
    Imgproc.drawMarker(Mat img, Point position, Scalar color, int markerType, int markerSize, int thickness)
    Draws a marker on a predefined position in an image.
    static void
    Imgproc.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 void
    Imgproc.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 void
    Imgproc.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 void
    Imgproc.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 void
    Imgproc.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 void
    Imgproc.ellipse(Mat img, RotatedRect box, Scalar color)
     
    static void
    Imgproc.ellipse(Mat img, RotatedRect box, Scalar color, int thickness)
     
    static void
    Imgproc.ellipse(Mat img, RotatedRect box, Scalar color, int thickness, int lineType)
     
    static void
    Imgproc.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 void
    Imgproc.fillConvexPoly(Mat img, MatOfPoint points, Scalar color)
    Fills a convex polygon.
    static void
    Imgproc.fillConvexPoly(Mat img, MatOfPoint points, Scalar color, int lineType)
    Fills a convex polygon.
    static void
    Imgproc.fillConvexPoly(Mat img, MatOfPoint points, Scalar color, int lineType, int shift)
    Fills a convex polygon.
    static void
    Imgproc.fillPoly(Mat img, List<MatOfPoint> pts, Scalar color)
    Fills the area bounded by one or more polygons.
    static void
    Imgproc.fillPoly(Mat img, List<MatOfPoint> pts, Scalar color, int lineType)
    Fills the area bounded by one or more polygons.
    static void
    Imgproc.fillPoly(Mat img, List<MatOfPoint> pts, Scalar color, int lineType, int shift)
    Fills the area bounded by one or more polygons.
    static void
    Imgproc.fillPoly(Mat img, List<MatOfPoint> pts, Scalar color, int lineType, int shift, Point offset)
    Fills the area bounded by one or more polygons.
    static int
    Imgproc.floodFill(Mat image, Mat mask, Point seedPoint, Scalar newVal)
    Fills a connected component with the given color.
    static int
    Imgproc.floodFill(Mat image, Mat mask, Point seedPoint, Scalar newVal, Rect rect)
    Fills a connected component with the given color.
    static int
    Imgproc.floodFill(Mat image, Mat mask, Point seedPoint, Scalar newVal, Rect rect, Scalar loDiff)
    Fills a connected component with the given color.
    static int
    Imgproc.floodFill(Mat image, Mat mask, Point seedPoint, Scalar newVal, Rect rect, Scalar loDiff, Scalar upDiff)
    Fills a connected component with the given color.
    static int
    Imgproc.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 void
    Imgproc.line(Mat img, Point pt1, Point pt2, Scalar color)
    Draws a line segment connecting two points.
    static void
    Imgproc.line(Mat img, Point pt1, Point pt2, Scalar color, int thickness)
    Draws a line segment connecting two points.
    static void
    Imgproc.line(Mat img, Point pt1, Point pt2, Scalar color, int thickness, int lineType)
    Draws a line segment connecting two points.
    static void
    Imgproc.line(Mat img, Point pt1, Point pt2, Scalar color, int thickness, int lineType, int shift)
    Draws a line segment connecting two points.
    static void
    Imgproc.morphologyEx(Mat src, Mat dst, int op, Mat kernel, Point anchor, int iterations, int borderType, Scalar borderValue)
    Performs advanced morphological transformations.
    static void
    Imgproc.polylines(Mat img, List<MatOfPoint> pts, boolean isClosed, Scalar color)
    Draws several polygonal curves.
    static void
    Imgproc.polylines(Mat img, List<MatOfPoint> pts, boolean isClosed, Scalar color, int thickness)
    Draws several polygonal curves.
    static void
    Imgproc.polylines(Mat img, List<MatOfPoint> pts, boolean isClosed, Scalar color, int thickness, int lineType)
    Draws several polygonal curves.
    static void
    Imgproc.polylines(Mat img, List<MatOfPoint> pts, boolean isClosed, Scalar color, int thickness, int lineType, int shift)
    Draws several polygonal curves.
    static void
    Imgproc.putText(Mat img, String text, Point org, int fontFace, double fontScale, Scalar color)
    Draws a text string.
    static void
    Imgproc.putText(Mat img, String text, Point org, int fontFace, double fontScale, Scalar color, int thickness)
    Draws a text string.
    static void
    Imgproc.putText(Mat img, String text, Point org, int fontFace, double fontScale, Scalar color, int thickness, int lineType)
    Draws a text string.
    static void
    Imgproc.putText(Mat img, String text, Point org, int fontFace, double fontScale, Scalar color, int thickness, int lineType, boolean bottomLeftOrigin)
    Draws a text string.
    static void
    Imgproc.rectangle(Mat img, Point pt1, Point pt2, Scalar color)
    Draws a simple, thick, or filled up-right rectangle.
    static void
    Imgproc.rectangle(Mat img, Point pt1, Point pt2, Scalar color, int thickness)
    Draws a simple, thick, or filled up-right rectangle.
    static void
    Imgproc.rectangle(Mat img, Point pt1, Point pt2, Scalar color, int thickness, int lineType)
    Draws a simple, thick, or filled up-right rectangle.
    static void
    Imgproc.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 void
    Imgproc.rectangle(Mat img, Rect rec, Scalar color)
    use rec parameter as alternative specification of the drawn rectangle: `r.tl() and r.br()-Point(1,1)` are opposite corners
    static void
    Imgproc.rectangle(Mat img, Rect rec, Scalar color, int thickness)
    use rec parameter as alternative specification of the drawn rectangle: `r.tl() and r.br()-Point(1,1)` are opposite corners
    static void
    Imgproc.rectangle(Mat img, Rect rec, Scalar color, int thickness, int lineType)
    use rec parameter as alternative specification of the drawn rectangle: `r.tl() and r.br()-Point(1,1)` are opposite corners
    static void
    Imgproc.rectangle(Mat img, Rect rec, Scalar color, int thickness, int lineType, int shift)
    use rec parameter as alternative specification of the drawn rectangle: `r.tl() and r.br()-Point(1,1)` are opposite corners
    static void
    Imgproc.remap(Mat src, Mat dst, Mat map1, Mat map2, int interpolation, int borderMode, Scalar borderValue)
    Applies a generic geometrical transformation to an image.
    static void
    Imgproc.warpAffine(Mat src, Mat dst, Mat M, Size dsize, int flags, int borderMode, Scalar borderValue)
    Applies an affine transformation to an image.
    static void
    Imgproc.warpPerspective(Mat src, Mat dst, Mat M, Size dsize, int flags, int borderMode, Scalar borderValue)
    Applies a perspective transformation to an image.