Searched defs:img1 (Results 1 - 25 of 36) sorted by relevance

12

/external/opencv3/samples/cpp/
H A Dnpr_demo.cpp86 Mat img1; local
87 pencilSketch(I,img1, img, 10 , 0.1f, 0.03f);
88 imshow("Pencil Sketch",img1);
H A Dmatchmethod_orb_akaze_brisk.cpp49 Mat img1 = imread(fileName[0], IMREAD_GRAYSCALE); local
51 if (img1.rows*img1.cols <= 0)
70 // Match between img1 and img2
72 // keypoint for img1 and img2
74 // Descriptor for img1 and img2
92 b->detect(img1, keyImg1, Mat());
94 b->compute(img1, keyImg1, descImg1);
131 drawMatches(img1, keyImg1, img2, keyImg2, bestMatches, result);
140 cout << "in img1\ti
[all...]
H A Dstereo_match.cpp159 Mat img1 = imread(img1_filename, color_mode); local
162 if (img1.empty())
177 resize(img1, temp1, Size(), scale, scale, method);
178 img1 = temp1;
183 Size img_size = img1.size();
225 remap(img1, img1r, map11, map12, INTER_LINEAR);
228 img1 = img1r;
250 int cn = img1.channels();
264 //copyMakeBorder(img1, img1p, 0, 0, numberOfDisparities, 0, IPL_BORDER_REPLICATE);
269 bm->compute(img1, img
[all...]
/external/opencv3/samples/cpp/tutorial_code/photo/non_photorealistic_rendering/
H A Dnpr_demo.cpp85 Mat img1; local
86 pencilSketch(I,img1, img, 10 , 0.1f, 0.03f);
87 imshow("Pencil Sketch",img1);
/external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/
H A DETC1Test.java35 Texture img1; field in class:ETC1Test
58 img1 = new Texture(pixmap);
73 batch.draw(img1, 0, 0);
86 img1.dispose();
/external/libvpx/libvpx/test/
H A Dutil.h22 inline double compute_psnr(const vpx_image_t *img1, const vpx_image_t *img2) { argument
23 assert((img1->fmt == img2->fmt) &&
24 (img1->d_w == img2->d_w) &&
25 (img1->d_h == img2->d_h));
27 const unsigned int width_y = img1->d_w;
28 const unsigned int height_y = img1->d_h;
34 int64_t d = img1->planes[VPX_PLANE_Y][i * img1->stride[VPX_PLANE_Y] + j] -
H A Dencode_test_driver.cc143 static bool compare_img(const vpx_image_t *img1, argument
145 bool match = (img1->fmt == img2->fmt) &&
146 (img1->cs == img2->cs) &&
147 (img1->d_w == img2->d_w) &&
148 (img1->d_h == img2->d_h);
150 const unsigned int width_y = img1->d_w;
151 const unsigned int height_y = img1->d_h;
154 match = (memcmp(img1->planes[VPX_PLANE_Y] + i * img1->stride[VPX_PLANE_Y],
157 const unsigned int width_uv = (img1
[all...]
H A Ddatarate_test.cc823 virtual void MismatchHook(const vpx_image_t *img1, argument
825 double mismatch_psnr = compute_psnr(img1, img2);
H A Derror_resilience_test.cc161 virtual void MismatchHook(const vpx_image_t *img1, argument
163 double mismatch_psnr = compute_psnr(img1, img2);
/external/opencv3/samples/gpu/
H A Dsurf_keypoint_matcher.cpp31 GpuMat img1, img2; local
36 img1.upload(imread(argv[++i], IMREAD_GRAYSCALE));
37 CV_Assert(!img1.empty());
58 surf(img1, GpuMat(), keypoints1GPU, descriptors1GPU);
79 drawMatches(Mat(img1), keypoints1, Mat(img2), keypoints2, matches, img_matches);
/external/skia/gm/
H A Dcgm.c68 sk_image_t* img1 = sk_image_new_from_encoded(data, NULL); local
71 if (img1) {
72 sk_canvas_draw_image(canvas, img1, W/2, H/2, NULL);
73 sk_image_unref(img1);
/external/opencv3/modules/cudaimgproc/test/
H A Dtest_blend.cpp55 void blendLinearGold(const cv::Mat& img1, const cv::Mat& img2, const cv::Mat& weights1, const cv::Mat& weights2, cv::Mat& result_gold) argument
57 result_gold.create(img1.size(), img1.type());
59 int cn = img1.channels();
61 for (int y = 0; y < img1.rows; ++y)
65 const T* img1_row = img1.ptr<T>(y);
69 for (int x = 0; x < img1.cols * cn; ++x)
101 cv::Mat img1 = randomMat(size, type, 0.0, depth == CV_8U ? 255.0 : 1.0); local
107 cv::cuda::blendLinear(loadMat(img1, useRoi), loadMat(img2, useRoi), loadMat(weights1, useRoi), loadMat(weights2, useRoi), result);
111 blendLinearGold<uchar>(img1, img
[all...]
/external/opencv3/modules/stitching/src/
H A Dseam_finders.cpp117 Size img1 = sizes_[first], img2 = sizes_[second]; local
128 if (y1 >= 0 && x1 >= 0 && y1 < img1.height && x1 < img1.width)
1072 void setGraphWeightsColor(const Mat &img1, const Mat &img2,
1074 void setGraphWeightsColorGrad(const Mat &img1, const Mat &img2, const Mat &dx1, const Mat &dx2,
1116 void GraphCutSeamFinder::Impl::setGraphWeightsColor(const Mat &img1, const Mat &img2,
1119 const Size img_size = img1.size();
1141 float weight = normL2(img1.at<Point3f>(y, x), img2.at<Point3f>(y, x)) +
1142 normL2(img1.at<Point3f>(y, x + 1), img2.at<Point3f>(y, x + 1)) +
1151 float weight = normL2(img1
[all...]
/external/opencv3/samples/cpp/tutorial_code/features2D/
H A DAKAZE_match.cpp15 Mat img1 = imread("../data/graf1.png", IMREAD_GRAYSCALE); local
26 akaze->detectAndCompute(img1, noArray(), kpts1, desc1);
65 drawMatches(img1, inliers1, img2, inliers2, good_matches, res);
/external/opencv3/samples/cpp/tutorial_code/xfeatures2D/
H A DLATCH_match.cpp24 Mat img1 = imread("../data/graf1.png", IMREAD_GRAYSCALE); local
41 orb_detector->detect(img1, kpts1);
42 latch->compute(img1, kpts1, desc1);
83 drawMatches(img1, inliers1, img2, inliers2, good_matches, res);
/external/libvpx/libvpx/vp9/encoder/
H A Dvp9_blockiness.c115 double vp9_get_blockiness(const uint8_t *img1, int img1_pitch, argument
121 for (i = 0; i < height; i += 4, img1 += img1_pitch * 4,
125 blockiness += blockiness_vertical(img1 + j, img1_pitch,
127 blockiness += blockiness_horizontal(img1 + j, img1_pitch,
/external/opencv3/modules/photo/test/
H A Dtest_hdr.cpp53 void checkEqual(Mat img0, Mat img1, double threshold, const string& name) argument
56 minMaxLoc(abs(img0 - img1), NULL, &max);
/external/opencv3/modules/stitching/perf/
H A Dperf_stich.cpp105 Mat img1, img1_full = imread( getDataPath("stitching/b1.png") ); local
109 resize(img1_full, img1, Size(), scale1, scale1);
130 (*finder)(img1, features1);
158 Mat img1, img1_full = imread( getDataPath("stitching/b1.png") ); local
162 resize(img1_full, img1, Size(), scale1, scale1);
185 (*finder)(img1, features1);
/external/opencv3/modules/video/test/
H A Dtest_optflowpyrlk.cpp226 cv::Mat img1 = wholeImage(cv::Rect(0, 0, 640, 360)).clone(); local
244 ASSERT_NO_THROW(cv::calcOpticalFlowPyrLK(img1, img2, prev, next, status, error));
/external/opencv3/modules/calib3d/src/
H A Dstereosgbm.cpp122 static void calcPixelCostBT( const Mat& img1, const Mat& img2, int y, argument
127 int x, c, width = img1.cols, cn = img1.channels();
131 const PixType *row1 = img1.ptr<PixType>(y), *row2 = img2.ptr<PixType>(y);
142 int n1 = y > 0 ? -(int)img1.step : 0, s1 = y < img1.rows-1 ? (int)img1.step : 0;
291 computes disparity for "roi" in img1 w.r.t. img2 and write it to disp1buf.
292 that is, disp1buf(x, y)=d means that img1(x+roi.x, y+roi.y) ~ img2(x+roi.x-d, y+roi.y).
295 disp2full(x+roi.x,y+roi.y)=d means that img2(x+roi.x, y+roi.y) ~ img1(
[all...]
/external/opencv3/modules/features2d/src/
H A Ddraw.cpp123 static void _prepareImgAndDrawKeypoints( InputArray img1, const std::vector<KeyPoint>& keypoints1, argument
129 Size img1size = img1.size(), img2size = img2.size();
135 CV_Error( Error::StsBadSize, "outImg has size less than need to draw img1 and img2 together" );
141 _outImg.create( size, CV_MAKETYPE(img1.depth(), 3) );
147 if( img1.type() == CV_8U )
148 cvtColor( img1, outImg1, COLOR_GRAY2BGR );
150 img1.copyTo( outImg1 );
189 void drawMatches( InputArray img1, const std::vector<KeyPoint>& keypoints1, argument
199 _prepareImgAndDrawKeypoints( img1, keypoints1, img2, keypoints2,
218 void drawMatches( InputArray img1, cons argument
[all...]
/external/opencv3/modules/java/src/
H A Dfeatures2d+Features2d.java48 // C++: void drawMatches(Mat img1, vector_KeyPoint keypoints1, Mat img2, vector_KeyPoint keypoints2, vector_DMatch matches1to2, Mat outImg, Scalar matchColor = Scalar::all(-1), Scalar singlePointColor = Scalar::all(-1), vector_char matchesMask = std::vector<char>(), int flags = 0)
51 //javadoc: drawMatches(img1, keypoints1, img2, keypoints2, matches1to2, outImg, matchColor, singlePointColor, matchesMask, flags)
52 public static void drawMatches(Mat img1, MatOfKeyPoint keypoints1, Mat img2, MatOfKeyPoint keypoints2, MatOfDMatch matches1to2, Mat outImg, Scalar matchColor, Scalar singlePointColor, MatOfByte matchesMask, int flags) argument
58 drawMatches_0(img1.nativeObj, keypoints1_mat.nativeObj, img2.nativeObj, keypoints2_mat.nativeObj, matches1to2_mat.nativeObj, outImg.nativeObj, matchColor.val[0], matchColor.val[1], matchColor.val[2], matchColor.val[3], singlePointColor.val[0], singlePointColor.val[1], singlePointColor.val[2], singlePointColor.val[3], matchesMask_mat.nativeObj, flags);
63 //javadoc: drawMatches(img1, keypoints1, img2, keypoints2, matches1to2, outImg)
64 public static void drawMatches(Mat img1, MatOfKeyPoint keypoints1, Mat img2, MatOfKeyPoint keypoints2, MatOfDMatch matches1to2, Mat outImg) argument
69 drawMatches_1(img1.nativeObj, keypoints1_mat.nativeObj, img2.nativeObj, keypoints2_mat.nativeObj, matches1to2_mat.nativeObj, outImg.nativeObj);
76 // C++: void drawMatches(Mat img1, vector_KeyPoint keypoints1, Mat img2, vector_KeyPoint keypoints2, vector_vector_DMatch matches1to2, Mat outImg, Scalar matchColor = Scalar::all(-1), Scalar singlePointColor = Scalar::all(-1), vector_vector_char matchesMask = std::vector<std::vector<char> >(), int flags = 0)
79 //javadoc: drawMatches(img1, keypoints1, img2, keypoints2, matches1to2, outImg, matchColor, singlePointColor, matchesMask, flags)
80 public static void drawMatches2(Mat img1, MatOfKeyPoin argument
94 drawMatches2(Mat img1, MatOfKeyPoint keypoints1, Mat img2, MatOfKeyPoint keypoints2, List<MatOfDMatch> matches1to2, Mat outImg) argument
[all...]
H A Dphoto+AlignMTB.java51 // C++: Point calculateShift(Mat img0, Mat img1)
54 //javadoc: AlignMTB::calculateShift(img0, img1)
55 public Point calculateShift(Mat img0, Mat img1) argument
58 Point retVal = new Point(calculateShift_0(nativeObj, img0.nativeObj, img1.nativeObj));
189 // C++: Point calculateShift(Mat img0, Mat img1)
/external/opencv3/modules/video/perf/
H A Dperf_optflowpyrlk.cpp42 Mat img1 = imread(filename1); local
44 if (img1.empty()) FAIL() << "Unable to load source image " << filename1;
48 int nPointsX = min(get<0>(get<3>(GetParam())), img1.cols);
49 int nPointsY = min(get<1>(get<3>(GetParam())), img1.rows);
61 cvtColor(img1, frame1, COLOR_BGR2GRAY, cn);
65 frame1 = img1;
69 cvtColor(img1, frame1, COLOR_BGR2BGRA, cn);
115 Mat img1 = imread(filename1); local
117 if (img1.empty()) FAIL() << "Unable to load source image " << filename1;
121 int nPointsX = min(get<0>(get<3>(GetParam())), img1
[all...]
/external/opencv3/modules/videoio/test/
H A Dtest_video_io.cpp319 Mat img1 = cv::cvarrToMat(ipl1); local
321 double psnr = cvtest::PSNR(img1, img);
328 //imwrite("after_test.png", img1);
330 //absdiff(img, img1, diff);

Completed in 1175 milliseconds

12