本文整理汇总了Java中org.opencv.core.MatOfFloat类的典型用法代码示例。如果您正苦于以下问题:Java MatOfFloat类的具体用法?Java MatOfFloat怎么用?Java MatOfFloat使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
MatOfFloat类属于org.opencv.core包,在下文中一共展示了MatOfFloat类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: calcHist
import org.opencv.core.MatOfFloat; //导入依赖的package包/类
public static void calcHist(List<Mat> images, MatOfInt channels, Mat mask, Mat hist, MatOfInt histSize, MatOfFloat ranges, boolean accumulate)
{
Mat images_mat = Converters.vector_Mat_to_Mat(images);
Mat channels_mat = channels;
Mat histSize_mat = histSize;
Mat ranges_mat = ranges;
calcHist_0(images_mat.nativeObj, channels_mat.nativeObj, mask.nativeObj, hist.nativeObj, histSize_mat.nativeObj, ranges_mat.nativeObj, accumulate);
return;
}
示例2: compute
import org.opencv.core.MatOfFloat; //导入依赖的package包/类
public void compute(Mat img, MatOfFloat descriptors)
{
Mat descriptors_mat = descriptors;
compute_1(nativeObj, img.nativeObj, descriptors_mat.nativeObj);
return;
}
示例3: compute
import org.opencv.core.MatOfFloat; //导入依赖的package包/类
public void compute(Mat img, MatOfFloat descriptors)
{
Mat descriptors_mat = descriptors;
compute_1(nativeObj, img.nativeObj, descriptors_mat.nativeObj);
return;
}
示例4: calcOpticalFlowPyrLK
import org.opencv.core.MatOfFloat; //导入依赖的package包/类
public static void calcOpticalFlowPyrLK(Mat prevImg, Mat nextImg, MatOfPoint2f prevPts, MatOfPoint2f nextPts, MatOfByte status, MatOfFloat err, Size winSize, int maxLevel)
{
Mat prevPts_mat = prevPts;
Mat nextPts_mat = nextPts;
Mat status_mat = status;
Mat err_mat = err;
calcOpticalFlowPyrLK_1(prevImg.nativeObj, nextImg.nativeObj, prevPts_mat.nativeObj, nextPts_mat.nativeObj, status_mat.nativeObj, err_mat.nativeObj, winSize.width, winSize.height, maxLevel);
return;
}
示例5: setTranslations
import org.opencv.core.MatOfFloat; //导入依赖的package包/类
public void setTranslations(MatOfFloat translations)
{
Mat translations_mat = translations;
setTranslations_0(nativeObj, translations_mat.nativeObj);
return;
}
示例6: calcOpticalFlowPyrLK
import org.opencv.core.MatOfFloat; //导入依赖的package包/类
public static void calcOpticalFlowPyrLK(Mat prevImg, Mat nextImg, MatOfPoint2f prevPts, MatOfPoint2f nextPts, MatOfByte status, MatOfFloat err, Size winSize, int maxLevel, TermCriteria criteria, int flags, double minEigThreshold)
{
Mat prevPts_mat = prevPts;
Mat nextPts_mat = nextPts;
Mat status_mat = status;
Mat err_mat = err;
calcOpticalFlowPyrLK_0(prevImg.nativeObj, nextImg.nativeObj, prevPts_mat.nativeObj, nextPts_mat.nativeObj, status_mat.nativeObj, err_mat.nativeObj, winSize.width, winSize.height, maxLevel, criteria.type, criteria.maxCount, criteria.epsilon, flags, minEigThreshold);
return;
}
示例7: calcHist
import org.opencv.core.MatOfFloat; //导入依赖的package包/类
public static void calcHist(List<Mat> images, MatOfInt channels, Mat mask, Mat hist, MatOfInt histSize, MatOfFloat ranges)
{
Mat images_mat = Converters.vector_Mat_to_Mat(images);
Mat channels_mat = channels;
Mat histSize_mat = histSize;
Mat ranges_mat = ranges;
calcHist_1(images_mat.nativeObj, channels_mat.nativeObj, mask.nativeObj, hist.nativeObj, histSize_mat.nativeObj, ranges_mat.nativeObj);
return;
}
示例8: compute
import org.opencv.core.MatOfFloat; //导入依赖的package包/类
public void compute(Mat img, MatOfFloat descriptors, Size winStride, Size padding, MatOfPoint locations)
{
Mat descriptors_mat = descriptors;
Mat locations_mat = locations;
compute_0(nativeObj, img.nativeObj, descriptors_mat.nativeObj, winStride.width, winStride.height, padding.width, padding.height, locations_mat.nativeObj);
return;
}
示例9: chamerMatching
import org.opencv.core.MatOfFloat; //导入依赖的package包/类
public static int chamerMatching(Mat img, Mat templ, List<MatOfPoint> results, MatOfFloat cost)
{
Mat results_mat = new Mat();
Mat cost_mat = cost;
int retVal = chamerMatching_1(img.nativeObj, templ.nativeObj, results_mat.nativeObj, cost_mat.nativeObj);
Converters.Mat_to_vector_vector_Point(results_mat, results);
results_mat.release();
return retVal;
}
示例10: NMSBoxes
import org.opencv.core.MatOfFloat; //导入依赖的package包/类
public static void NMSBoxes(MatOfRect bboxes, MatOfFloat scores, float score_threshold, float nms_threshold, MatOfInt indices)
{
Mat bboxes_mat = bboxes;
Mat scores_mat = scores;
Mat indices_mat = indices;
NMSBoxes_1(bboxes_mat.nativeObj, scores_mat.nativeObj, score_threshold, nms_threshold, indices_mat.nativeObj);
return;
}
示例11: fastNlMeansDenoisingMulti
import org.opencv.core.MatOfFloat; //导入依赖的package包/类
public static void fastNlMeansDenoisingMulti(List<Mat> srcImgs, Mat dst, int imgToDenoiseIndex, int temporalWindowSize, MatOfFloat h, int templateWindowSize, int searchWindowSize, int normType)
{
Mat srcImgs_mat = Converters.vector_Mat_to_Mat(srcImgs);
Mat h_mat = h;
fastNlMeansDenoisingMulti_2(srcImgs_mat.nativeObj, dst.nativeObj, imgToDenoiseIndex, temporalWindowSize, h_mat.nativeObj, templateWindowSize, searchWindowSize, normType);
return;
}
示例12: create
import org.opencv.core.MatOfFloat; //导入依赖的package包/类
public static BRISK create(int thresh, int octaves, MatOfFloat radiusList, MatOfInt numberList, float dMax, float dMin, MatOfInt indexChange)
{
Mat radiusList_mat = radiusList;
Mat numberList_mat = numberList;
Mat indexChange_mat = indexChange;
BRISK retVal = new BRISK(create_0(thresh, octaves, radiusList_mat.nativeObj, numberList_mat.nativeObj, dMax, dMin, indexChange_mat.nativeObj));
return retVal;
}
示例13: calcOpticalFlowPyrLK
import org.opencv.core.MatOfFloat; //导入依赖的package包/类
public static void calcOpticalFlowPyrLK(Mat prevImg, Mat nextImg, MatOfPoint2f prevPts, MatOfPoint2f nextPts, MatOfByte status, MatOfFloat err)
{
Mat prevPts_mat = prevPts;
Mat nextPts_mat = nextPts;
Mat status_mat = status;
Mat err_mat = err;
calcOpticalFlowPyrLK_2(prevImg.nativeObj, nextImg.nativeObj, prevPts_mat.nativeObj, nextPts_mat.nativeObj, status_mat.nativeObj, err_mat.nativeObj);
return;
}
示例14: fastNlMeansDenoising
import org.opencv.core.MatOfFloat; //导入依赖的package包/类
public static void fastNlMeansDenoising(Mat src, Mat dst, MatOfFloat h, int templateWindowSize, int searchWindowSize, int normType)
{
Mat h_mat = h;
fastNlMeansDenoising_2(src.nativeObj, dst.nativeObj, h_mat.nativeObj, templateWindowSize, searchWindowSize, normType);
return;
}
示例15: calcBackProject
import org.opencv.core.MatOfFloat; //导入依赖的package包/类
public static void calcBackProject(List<Mat> images, MatOfInt channels, Mat hist, Mat dst, MatOfFloat ranges, double scale)
{
Mat images_mat = Converters.vector_Mat_to_Mat(images);
Mat channels_mat = channels;
Mat ranges_mat = ranges;
calcBackProject_0(images_mat.nativeObj, channels_mat.nativeObj, hist.nativeObj, dst.nativeObj, ranges_mat.nativeObj, scale);
return;
}