HomeSort by relevance Sort by last modified time
    Searched refs:Vec3b (Results 1 - 25 of 39) sorted by null

1 2

  /external/opencv3/samples/cpp/tutorial_code/HighGUI/GDAL_IO/
gdal-image.cpp 30 std::vector<std::pair<cv::Vec3b,double> > color_range;
36 cv::Vec3b get_dem_color( const double& );
42 void add_color( cv::Vec3b& pix, const uchar& b, const uchar& g, const uchar& r );
75 cv::Vec3b get_dem_color( const double& elevation ){
145 void add_color( cv::Vec3b& pix, const uchar& b, const uchar& g, const uchar& r ){
184 color_range.push_back( std::pair<cv::Vec3b,double>(cv::Vec3b( 188, 154, 46), -1));
185 color_range.push_back( std::pair<cv::Vec3b,double>(cv::Vec3b( 110, 220, 110), 0.25));
186 color_range.push_back( std::pair<cv::Vec3b,double>(cv::Vec3b( 150, 250, 230), 20))
    [all...]
  /external/opencv3/samples/cpp/
connected_components.cpp 18 std::vector<Vec3b> colors(nLabels);
19 colors[0] = Vec3b(0, 0, 0);//background
21 colors[label] = Vec3b( (rand()&255), (rand()&255), (rand()&255) );
27 Vec3b &pixel = dst.at<Vec3b>(r, c);
watershed.cpp 102 vector<Vec3b> colorTab;
109 colorTab.push_back(Vec3b((uchar)b, (uchar)g, (uchar)r));
125 wshed.at<Vec3b>(i,j) = Vec3b(255,255,255);
127 wshed.at<Vec3b>(i,j) = Vec3b(0,0,0);
129 wshed.at<Vec3b>(i,j) = colorTab[index - 1];
points_classifier.cpp 27 vector<Vec3b> classColors(MAX_CLASSES);
64 Vec3b c = classColors[trainedPointsMarkers[i]];
96 dst.at<Vec3b>(y, x) = classColors[response];
289 imgDst.at<Vec3b>(y, x) = classColors[maxLoc.x];
310 classColors[0] = Vec3b(0, 255, 0);
311 classColors[1] = Vec3b(0, 0, 255);
camshiftdemo.cpp 143 buf.at<Vec3b>(i) = Vec3b(saturate_cast<uchar>(i*180./hsize), 255, 255);
151 Scalar(buf.at<Vec3b>(i)), -1, 8 );
tvl1_optical_flow.cpp 17 static Vec3b computeColor(float fx, float fy)
67 Vec3b pix;
119 dst.at<Vec3b>(y, x) = computeColor(u.x / maxrad, u.y / maxrad);
detect_blob.cpp 119 vector< Vec3b > palette;
122 palette.push_back(Vec3b((uchar)rand(), (uchar)rand(), (uchar)rand()));
detect_mser.cpp 426 vector<Vec3b> palette;
428 palette.push_back(Vec3b((uchar)rand(), (uchar)rand(), (uchar)rand()));
514 result.at<Vec3b>(itp->y, itp->x) = Vec3b(128, 0, 0);
  /external/opencv3/samples/cpp/tutorial_code/ImgTrans/
imageSegmentation.cpp 32 if ( src.at<Vec3b>(x, y) == Vec3b(255,255,255) ) {
33 src.at<Vec3b>(x, y)[0] = 0;
34 src.at<Vec3b>(x, y)[1] = 0;
35 src.at<Vec3b>(x, y)[2] = 0;
136 vector<Vec3b> colors;
143 colors.push_back(Vec3b((uchar)b, (uchar)g, (uchar)r));
156 dst.at<Vec3b>(i,j) = colors[index-1];
158 dst.at<Vec3b>(i,j) = Vec3b(0,0,0)
    [all...]
  /external/opencv3/samples/cpp/tutorial_code/HighGUI/
BasicLinearTransformsTrackbar.cpp 33 new_image.at<Vec3b>(y,x)[c] = saturate_cast<uchar>( alpha*( image.at<Vec3b>(y,x)[c] ) + beta );
  /external/opencv3/samples/cpp/tutorial_code/ImgProc/
BasicLinearTransforms.cpp 41 new_image.at<Vec3b>(y,x)[c] = saturate_cast<uchar>( alpha*( image.at<Vec3b>(y,x)[c] ) + beta );
  /external/opencv3/samples/cpp/tutorial_code/ShapeDescriptors/
pointPolygonTest_demo.cpp 64 { drawing.at<Vec3b>(j,i)[0] = (uchar)(255 - abs(raw_dist.at<float>(j,i))*255/minVal); }
66 { drawing.at<Vec3b>(j,i)[2] = (uchar)(255 - raw_dist.at<float>(j,i)*255/maxVal); }
68 { drawing.at<Vec3b>(j,i)[0] = 255; drawing.at<Vec3b>(j,i)[1] = 255; drawing.at<Vec3b>(j,i)[2] = 255; }
  /external/opencv3/samples/cpp/tutorial_code/ml/introduction_to_svm/
introduction_to_svm.cpp 40 Vec3b green(0,255,0), blue (255,0,0);
48 image.at<Vec3b>(i,j) = green;
50 image.at<Vec3b>(i,j) = blue;
  /external/opencv3/modules/viz/src/vtk/
vtkImageMatSource.cpp 119 Vec3b* dptr = reinterpret_cast<Vec3b*>(output->GetScalarPointer());
120 size_t elem_step = output->GetIncrements()[1]/sizeof(Vec3b);
124 Vec3b* drow = dptr + elem_step * y;
127 drow[x] = Vec3b(srow[2], srow[1], srow[0]);
vtkCloudMatSource.cpp 210 Vec3b* array = new Vec3b[total];
211 Vec3b* pos = array;
225 *pos++ = Vec3b(srow[0], srow[0], srow[0]);
230 *pos++ = Vec3b(srow[2], srow[1], srow[0]);
  /external/opencv3/samples/cpp/tutorial_code/ml/non_linear_svms/
non_linear_svms.cpp 94 Vec3b green(0,100,0), blue (100,0,0);
101 if (response == 1) I.at<Vec3b>(j, i) = green;
102 else if (response == 2) I.at<Vec3b>(j, i) = blue;
  /external/opencv3/modules/features2d/test/
test_mser.cpp 64 Vec3b color(b, g, r);
69 img.at<Vec3b>(pt[j]) = color;
  /external/opencv3/modules/imgproc/src/
grabcut.cpp 240 Vec3d color = img.at<Vec3b>(y,x);
243 Vec3d diff = color - (Vec3d)img.at<Vec3b>(y,x-1);
248 Vec3d diff = color - (Vec3d)img.at<Vec3b>(y-1,x-1);
253 Vec3d diff = color - (Vec3d)img.at<Vec3b>(y-1,x);
258 Vec3d diff = color - (Vec3d)img.at<Vec3b>(y-1,x+1);
286 Vec3d color = img.at<Vec3b>(y,x);
289 Vec3d diff = color - (Vec3d)img.at<Vec3b>(y,x-1);
296 Vec3d diff = color - (Vec3d)img.at<Vec3b>(y-1,x-1);
303 Vec3d diff = color - (Vec3d)img.at<Vec3b>(y-1,x);
310 Vec3d diff = color - (Vec3d)img.at<Vec3b>(y-1,x+1)
    [all...]
floodfill.cpp 234 Diff8uC3(Vec3b _lo, Vec3b _up)
239 bool operator()(const Vec3b* a, const Vec3b* b) const
477 struct { Vec3b b; Vec3i i; Vec3f f; } ld_buf, ud_buf;
529 floodFill_CnIR(img, seedPoint, Vec3b(nv_buf.b), &comp, flags, &buffer);
595 floodFillGrad_CnIR<Vec3b, uchar, Vec3i, Diff8uC3>(
596 img, mask, seedPoint, Vec3b(nv_buf.b), newMaskVal,
  /external/opencv3/samples/cpp/tutorial_code/core/how_to_scan_images/
how_to_scan_images.cpp 182 MatIterator_<Vec3b> it, end;
183 for( it = I.begin<Vec3b>(), end = I.end<Vec3b>(); it != end; ++it)
214 Mat_<Vec3b> _I = I;
  /external/opencv3/samples/gpu/
optical_flow.cpp 19 static Vec3b computeColor(float fx, float fy)
69 Vec3b pix;
121 dst.at<Vec3b>(y, x) = computeColor(u.x / maxrad, u.y / maxrad);
  /external/opencv3/samples/tapi/
camshift.cpp 145 buf.at<cv::Vec3b>(i) = cv::Vec3b(cv::saturate_cast<uchar>(i*180./hsize), 255, 255);
155 cv::Scalar(buf.at<cv::Vec3b>(i)), -1, 8);
  /external/opencv3/modules/videoio/test/
test_video_io.cpp 468 if (img.at<Vec3b>(k, l) == Vec3b::all(0))
469 img.at<Vec3b>(k, l) = Vec3b(0, 255, 0);
470 else img.at<Vec3b>(k, l) = Vec3b(0, 0, 255);
  /external/opencv3/modules/viz/src/
precomp.hpp 276 Vec3b rgb = Vec3d(color[2], color[1], color[0]);
277 Vec3b* color_data = new Vec3b[size];
  /external/opencv3/modules/imgcodecs/src/
grfmt_gdal.cpp 239 if( image.depth() == CV_8U ){ image.at<Vec3b>(row,col) = Vec3b(newValue,newValue,newValue); }
262 if( image.depth() == CV_8U ){ image.at<Vec3b>(row,col)[channel] = newValue; }
274 else if( image.depth() == CV_8U && channel < 4 ){ image.at<Vec3b>(row,col)[channel] = newValue; }

Completed in 426 milliseconds

1 2