java类org.opencv.core.Scalar的实例源码

Core.java 文件源码 项目:DNNLibrary 阅读 23 收藏 0 点赞 0 评论 0
public static void multiply(Mat src1, Scalar src2, Mat dst, double scale)
{

    multiply_4(src1.nativeObj, src2.val[0], src2.val[1], src2.val[2], src2.val[3], dst.nativeObj, scale);

    return;
}
Imgproc.java 文件源码 项目:Sikulix2opencv 阅读 25 收藏 0 点赞 0 评论 0
public static void line(Mat img, Point pt1, Point pt2, Scalar color)
{

    line_2(img.nativeObj, pt1.x, pt1.y, pt2.x, pt2.y, color.val[0], color.val[1], color.val[2], color.val[3]);

    return;
}
Imgproc.java 文件源码 项目:EyeShopping 阅读 24 收藏 0 点赞 0 评论 0
public static void ellipse(Mat img, Point center, Size axes, double angle, double startAngle, double endAngle, Scalar color, int thickness)
{

    ellipse_1(img.nativeObj, center.x, center.y, axes.width, axes.height, angle, startAngle, endAngle, color.val[0], color.val[1], color.val[2], color.val[3], thickness);

    return;
}
Core.java 文件源码 项目:fingerblox 阅读 24 收藏 0 点赞 0 评论 0
public static Scalar mean(Mat src, Mat mask)
{

    Scalar retVal = new Scalar(mean_0(src.nativeObj, mask.nativeObj));

    return retVal;
}
Imgproc.java 文件源码 项目:MOAAP 阅读 28 收藏 0 点赞 0 评论 0
public static int floodFill(Mat image, Mat mask, Point seedPoint, Scalar newVal)
{

    int retVal = floodFill_1(image.nativeObj, mask.nativeObj, seedPoint.x, seedPoint.y, newVal.val[0], newVal.val[1], newVal.val[2], newVal.val[3]);

    return retVal;
}
Core.java 文件源码 项目:real_time_circle_detection_android 阅读 28 收藏 0 点赞 0 评论 0
public static void min(Mat src1, Scalar src2, Mat dst)
{

    min_1(src1.nativeObj, src2.val[0], src2.val[1], src2.val[2], src2.val[3], dst.nativeObj);

    return;
}
Core.java 文件源码 项目:Android-Code-Demos 阅读 22 收藏 0 点赞 0 评论 0
public static Scalar sumElems(Mat src)
{

    Scalar retVal = new Scalar(sumElems_0(src.nativeObj));

    return retVal;
}
Imgproc.java 文件源码 项目:OpenCV_Android_Plus 阅读 24 收藏 0 点赞 0 评论 0
/**
* <p>Applies a perspective transformation to an image.</p>
*
* <p>The function <code>warpPerspective</code> transforms the source image using
* the specified matrix:</p>
*
* <p><em>dst(x,y) = src((M_11 x + M_12 y + M_13)/(M_(31) x + M_32 y +
* M_33),&ltBR&gt(M_21 x + M_22 y + M_23)/(M_(31) x + M_32 y + M_33))</em></p>
*
* <p>when the flag <code>WARP_INVERSE_MAP</code> is set. Otherwise, the
* transformation is first inverted with "invert" and then put in the formula
* above instead of <code>M</code>.
* The function cannot operate in-place.</p>
*
* @param src input image.
* @param dst output image that has the size <code>dsize</code> and the same
* type as <code>src</code>.
* @param M <em>3x 3</em> transformation matrix.
* @param dsize size of the output image.
* @param flags combination of interpolation methods (<code>INTER_LINEAR</code>
* or <code>INTER_NEAREST</code>) and the optional flag <code>WARP_INVERSE_MAP</code>,
* that sets <code>M</code> as the inverse transformation (<em>dst->src</em>).
* @param borderMode pixel extrapolation method (<code>BORDER_CONSTANT</code> or
* <code>BORDER_REPLICATE</code>).
* @param borderValue value used in case of a constant border; by default, it
* equals 0.
*
* @see <a href="http://docs.opencv.org/modules/imgproc/doc/geometric_transformations.html#warpperspective">org.opencv.imgproc.Imgproc.warpPerspective</a>
* @see org.opencv.imgproc.Imgproc#warpAffine
* @see org.opencv.imgproc.Imgproc#remap
* @see org.opencv.core.Core#perspectiveTransform
* @see org.opencv.imgproc.Imgproc#getRectSubPix
* @see org.opencv.imgproc.Imgproc#resize
*/
   public static void warpPerspective(Mat src, Mat dst, Mat M, Size dsize, int flags, int borderMode, Scalar borderValue)
   {

       warpPerspective_0(src.nativeObj, dst.nativeObj, M.nativeObj, dsize.width, dsize.height, flags, borderMode, borderValue.val[0], borderValue.val[1], borderValue.val[2], borderValue.val[3]);

       return;
   }
Core.java 文件源码 项目:mao-android 阅读 25 收藏 0 点赞 0 评论 0
public static void inRange(Mat src, Scalar lowerb, Scalar upperb, Mat dst)
{

    inRange_0(src.nativeObj, lowerb.val[0], lowerb.val[1], lowerb.val[2], lowerb.val[3], upperb.val[0], upperb.val[1], upperb.val[2], upperb.val[3], dst.nativeObj);

    return;
}
Imgproc.java 文件源码 项目:Microsphere 阅读 22 收藏 0 点赞 0 评论 0
public static void putText(Mat img, String text, Point org, int fontFace, double fontScale, Scalar color, int thickness)
{

    putText_1(img.nativeObj, text, org.x, org.y, fontFace, fontScale, color.val[0], color.val[1], color.val[2], color.val[3], thickness);

    return;
}


问题


面经


文章

微信
公众号

扫码关注公众号