Home
last modified time | relevance | path

Searched refs:gray (Results 1 – 25 of 236) sorted by relevance

12345678910

/external/opencv3/modules/photo/src/
Dseamless_cloning.cpp62 Mat gray = Mat(mask.size(),CV_8UC1); in seamlessClone() local
68 cvtColor(mask, gray, COLOR_BGR2GRAY ); in seamlessClone()
70 gray = mask; in seamlessClone()
76 if(gray.at<uchar>(i,j) == 255) in seamlessClone()
104 gray(roi_s).copyTo(destinationROI); in seamlessClone()
105 src(roi_s).copyTo(sourceROI,gray(roi_s)); in seamlessClone()
106 src(roi_s).copyTo(patch, gray(roi_s)); in seamlessClone()
128 Mat gray = Mat::zeros(mask.size(),CV_8UC1); in colorChange() local
131 cvtColor(mask, gray, COLOR_BGR2GRAY ); in colorChange()
133 gray = mask; in colorChange()
[all …]
/external/opencv3/samples/gpu/
Dcascadeclassifier.cpp30 static void convertAndResize(const Mat& src, Mat& gray, Mat& resized, double scale) in convertAndResize() argument
34 cv::cvtColor( src, gray, COLOR_BGR2GRAY ); in convertAndResize()
38 gray = src; in convertAndResize()
41 Size sz(cvRound(gray.cols * scale), cvRound(gray.rows * scale)); in convertAndResize()
45 cv::resize(gray, resized, sz); in convertAndResize()
49 resized = gray; in convertAndResize()
53 static void convertAndResize(const GpuMat& src, GpuMat& gray, GpuMat& resized, double scale) in convertAndResize() argument
57 cv::cuda::cvtColor( src, gray, COLOR_BGR2GRAY ); in convertAndResize()
61 gray = src; in convertAndResize()
64 Size sz(cvRound(gray.cols * scale), cvRound(gray.rows * scale)); in convertAndResize()
[all …]
/external/opencv3/samples/cpp/
Dlkdemo.cpp64 Mat gray, prevGray, image, frame; in main() local
74 cvtColor(image, gray, COLOR_BGR2GRAY); in main()
82 goodFeaturesToTrack(gray, points[1], MAX_COUNT, 0.01, 10, Mat(), 3, 0, 0.04); in main()
83 cornerSubPix(gray, points[1], subPixWinSize, Size(-1,-1), termcrit); in main()
91 gray.copyTo(prevGray); in main()
92 calcOpticalFlowPyrLK(prevGray, gray, points[0], points[1], status, err, winSize, in main()
119 cornerSubPix( gray, tmp, winSize, Size(-1,-1), termcrit); in main()
145 cv::swap(prevGray, gray); in main()
Dffilldemo.cpp29 Mat image0, image, gray, mask; variable
53 Mat dst = isColor ? image : gray; in onMouse()
86 cvtColor(image0, gray, COLOR_BGR2GRAY); in main()
97 imshow("image", isColor ? image : gray); in main()
111 cvtColor(image0, gray, COLOR_BGR2GRAY); in main()
140 cvtColor(image, gray, COLOR_BGR2GRAY); in main()
Dsquares.cpp52 Mat pyr, timg, gray0(image.size(), CV_8U), gray; in findSquares() local
74 Canny(gray0, gray, 0, thresh, 5); in findSquares()
77 dilate(gray, gray, Mat(), Point(-1,-1)); in findSquares()
83 gray = gray0 >= (l+1)*255/N; in findSquares()
87 findContours(gray, contours, RETR_LIST, CHAIN_APPROX_SIMPLE); in findSquares()
Dufacedetect.cpp202 static UMat gray, smallImg; in detectAndDraw() local
207 cvtColor( smallImg, gray, COLOR_BGR2GRAY ); in detectAndDraw()
208 equalizeHist( gray, gray ); in detectAndDraw()
210 cascade.detectMultiScale( gray, faces, in detectAndDraw()
219 flip(gray, gray, 1); in detectAndDraw()
220 cascade.detectMultiScale( gray, faces2, in detectAndDraw()
266 UMat smallImgROI = gray(*r); in detectAndDraw()
Dfback.cpp41 UMat gray, prevgray, uflow; in main() local
47 cvtColor(frame, gray, COLOR_BGR2GRAY); in main()
51 calcOpticalFlowFarneback(prevgray, gray, uflow, 0.5, 3, 15, 3, 5, 1.2, 0); in main()
59 std::swap(prevgray, gray); in main()
Dopenni_capture.cpp27 static void colorizeDisparity( const Mat& gray, Mat& rgb, double maxDisp=-1.f, float S=1.f, float V… in colorizeDisparity() argument
29 CV_Assert( !gray.empty() ); in colorizeDisparity()
30 CV_Assert( gray.type() == CV_8UC1 ); in colorizeDisparity()
35 minMaxLoc( gray, 0, &maxDisp ); in colorizeDisparity()
38 rgb.create( gray.size(), CV_8UC3 ); in colorizeDisparity()
43 for( int y = 0; y < gray.rows; y++ ) in colorizeDisparity()
45 for( int x = 0; x < gray.cols; x++ ) in colorizeDisparity()
47 uchar d = gray.at<uchar>(y,x); in colorizeDisparity()
/external/opencv3/modules/calib3d/test/
Dtest_chesscorners_timing.cpp72 IplImage* gray = 0; in run() local
126 gray = cvCreateImage( cvSize( img.width, img.height ), IPL_DEPTH_8U, 1 ); in run()
128 cvCvtColor( &img, gray, CV_BGR2GRAY ); in run()
140 result = cvCheckChessboard(gray, pattern_size); in run()
144 gray, pattern_size, v, &count, 15 )); in run()
160 int num_pixels = gray->width*gray->height; in run()
170 cvReleaseImage( &gray ); in run()
180 cvReleaseImage( &gray ); in run()
/external/opencv3/modules/imgcodecs/src/
Dutils.cpp51 uchar* gray, int gray_step, in icvCvt_BGR2Gray_8u_C3C1R() argument
56 for( ; size.height--; gray += gray_step ) in icvCvt_BGR2Gray_8u_C3C1R()
61 gray[i] = (uchar)t; in icvCvt_BGR2Gray_8u_C3C1R()
70 ushort* gray, int gray_step, in icvCvt_BGRA2Gray_16u_CnC1R() argument
75 for( ; size.height--; gray += gray_step ) in icvCvt_BGRA2Gray_16u_CnC1R()
80 gray[i] = (ushort)t; in icvCvt_BGRA2Gray_16u_CnC1R()
89 uchar* gray, int gray_step, in icvCvt_BGRA2Gray_8u_C4C1R() argument
94 for( ; size.height--; gray += gray_step ) in icvCvt_BGRA2Gray_8u_C4C1R()
99 gray[i] = (uchar)t; in icvCvt_BGRA2Gray_8u_C4C1R()
107 void icvCvt_Gray2BGR_8u_C1C3R( const uchar* gray, int gray_step, in icvCvt_Gray2BGR_8u_C1C3R() argument
[all …]
Dutils.hpp59 uchar* gray, int gray_step,
62 uchar* gray, int gray_step,
65 ushort* gray, int gray_step,
68 void icvCvt_Gray2BGR_8u_C1C3R( const uchar* gray, int gray_step,
70 void icvCvt_Gray2BGR_16u_C1C3R( const ushort* gray, int gray_step,
96 uchar* gray, int gray_step, CvSize size );
98 uchar* gray, int gray_step, CvSize size );
106 uchar* gray, int gray_step, CvSize size );
/external/doclava/res/assets/templates/
Dtodo.cs18 border-color: gray gray gray gray;
25 border-color: gray gray gray gray;
/external/opencv3/modules/photo/test/
Dtest_denoising.cuda.cpp66 cv::Mat gray; in TEST() local
67 cv::cvtColor(bgr, gray, cv::COLOR_BGR2GRAY); in TEST()
71 cv::cuda::nonLocalMeans(GpuMat(gray), dgray, 20); in TEST()
98 cv::Mat gray; in TEST() local
99 cv::cvtColor(bgr, gray, cv::COLOR_BGR2GRAY); in TEST()
103 cv::cuda::fastNlMeansDenoising(GpuMat(gray), dgray, 20); in TEST()
/external/opencv/otherlibs/highgui/
Dutils.cpp84 uchar* gray, int gray_step, in icvCvt_BGR2Gray_8u_C3C1R() argument
89 for( ; size.height--; gray += gray_step ) in icvCvt_BGR2Gray_8u_C3C1R()
94 gray[i] = (uchar)t; in icvCvt_BGR2Gray_8u_C3C1R()
103 ushort* gray, int gray_step, in icvCvt_BGR2Gray_16u_C3C1R() argument
108 for( ; size.height--; gray += gray_step ) in icvCvt_BGR2Gray_16u_C3C1R()
113 gray[i] = (ushort)t; in icvCvt_BGR2Gray_16u_C3C1R()
122 uchar* gray, int gray_step, in icvCvt_BGRA2Gray_8u_C4C1R() argument
127 for( ; size.height--; gray += gray_step ) in icvCvt_BGRA2Gray_8u_C4C1R()
132 gray[i] = (uchar)t; in icvCvt_BGRA2Gray_8u_C4C1R()
140 void icvCvt_Gray2BGR_8u_C1C3R( const uchar* gray, int gray_step, in icvCvt_Gray2BGR_8u_C1C3R() argument
[all …]
Dutils.h59 ushort* gray, int gray_step,
62 uchar* gray, int gray_step,
65 uchar* gray, int gray_step,
67 void icvCvt_Gray2BGR_8u_C1C3R( const uchar* gray, int gray_step,
84 uchar* gray, int gray_step, CvSize size );
86 uchar* gray, int gray_step, CvSize size );
94 uchar* gray, int gray_step, CvSize size );
/external/opencv3/samples/cpp/tutorial_code/ImgProc/
DMorphology_3.cpp29 Mat gray; in main() local
33 cvtColor(src, gray, CV_BGR2GRAY); in main()
37 gray = src; in main()
41 imshow("gray", gray); in main()
47 adaptiveThreshold(~gray, bw, 255, CV_ADAPTIVE_THRESH_MEAN_C, THRESH_BINARY, 15, -2); in main()
/external/opencv3/samples/python2/
Dhist.py69 gray = cv2.cvtColor(im,cv2.COLOR_BGR2GRAY) variable
94 cv2.imshow('image',gray)
97 equ = cv2.equalizeHist(gray)
103 curve = hist_curve(gray)
105 cv2.imshow('image',gray)
108 norm = cv2.normalize(gray,alpha = 0,beta = 255,norm_type = cv2.NORM_MINMAX)
Dfacedetect.py45 gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) variable
46 gray = cv2.equalizeHist(gray) variable
49 rects = detect(gray, cascade)
54 roi = gray[y1:y2, x1:x2]
Dcoherence.py21 gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
22 eigen = cv2.cornerEigenValsAndVecs(gray, str_sigma, 3)
26 gxx = cv2.Sobel(gray, cv2.CV_32F, 2, 0, ksize=sigma)
27 gxy = cv2.Sobel(gray, cv2.CV_32F, 1, 1, ksize=sigma)
28 gyy = cv2.Sobel(gray, cv2.CV_32F, 0, 2, ksize=sigma)
Dmouse_and_match.py32 patch = gray[sel[1]:sel[3],sel[0]:sel[2]]
33 result = cv2.matchTemplate(gray,patch,cv2.TM_CCOEFF_NORMED)
45 img = cv2.cvtColor(gray, cv2.COLOR_GRAY2BGR)
71 gray=cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) variable
72 cv2.imshow("gray",gray)
/external/pdfium/core/src/fxge/dib/
Dfx_dib_composite.cpp329 uint8_t gray; in _CompositeRow_Argb2Graya() local
331 pIccModule->TranslateScanline(pIccTransform, &gray, src_scan, 1); in _CompositeRow_Argb2Graya()
333 gray = FXRGB2GRAY(src_scan[2], src_scan[1], *src_scan); in _CompositeRow_Argb2Graya()
337 blend_type == FXDIB_BLEND_LUMINOSITY ? gray : *dest_scan; in _CompositeRow_Argb2Graya()
339 gray = bNonseparableBlend ? blended_color in _CompositeRow_Argb2Graya()
340 : _BLEND(blend_type, *dest_scan, gray); in _CompositeRow_Argb2Graya()
341 *dest_scan = FXDIB_ALPHA_MERGE(*dest_scan, gray, alpha_ratio); in _CompositeRow_Argb2Graya()
380 uint8_t gray; in _CompositeRow_Argb2Graya() local
382 pIccModule->TranslateScanline(pIccTransform, &gray, src_scan, 1); in _CompositeRow_Argb2Graya()
384 gray = FXRGB2GRAY(src_scan[2], src_scan[1], *src_scan); in _CompositeRow_Argb2Graya()
[all …]
/external/opencv3/samples/cpp/tutorial_code/photo/decolorization/
Ddecolor.cpp33 Mat gray = Mat(I.size(),CV_8UC1); in main() local
36 decolor(I,gray,color_boost); in main()
37 imshow("grayscale",gray); in main()
/external/opencv3/samples/tapi/
Dsquares.cpp38 UMat pyr, timg, gray0(image.size(), CV_8U), gray; in findSquares() local
60 Canny(gray0, gray, 0, thresh, 5); in findSquares()
63 dilate(gray, gray, UMat(), Point(-1,-1)); in findSquares()
69 cv::threshold(gray0, gray, (l+1)*255/N, 255, THRESH_BINARY); in findSquares()
73 findContours(gray, contours, RETR_LIST, CHAIN_APPROX_SIMPLE); in findSquares()
/external/chromium-trace/catapult/third_party/pipeline/pipeline/ui/
Djquery.treeview.css59 .treeview-gray li { background-image: url(images/treeview-gray-line.gif); }
60 .treeview-gray .hitarea, .treeview-gray li.lastCollapsable, .treeview-gray li.lastExpandable { back…
/external/ImageMagick/Magick++/tests/
Dcolor.cpp121 ColorGray gray(value); in main() local
122 if ( gray.shade() < value - max_error || gray.shade() > value + max_error ) in main()
127 << gray.shade() in main()

12345678910