Searched defs:image (Results 226 - 250 of 551) sorted by relevance

1234567891011>>

/external/opencv3/samples/cpp/
H A Dfacial_features.cpp55 // Load image and cascade classifier files
56 Mat image; local
57 image = imread(input_image_path);
61 detectFaces(image, faces, face_cascade_path);
62 detectFacialFeaures(image, faces, eye_cascade_path, nose_cascade_path, mouth_cascade_path);
64 imshow("Result", image);
102 "IMAGE\n\tPath to the image of a face taken as input.\n"
112 "(1) ./cpp-example-facial_features image.jpg face.xml -eyes eyes.xml -mouth mouth.xml\n"
113 "\tThis will detect the face, eyes and mouth in image.jpg.\n"
114 "(2) ./cpp-example-facial_features image
[all...]
H A Dgrabcut.cpp19 "\tr - restore the original image\n"
67 const Mat* image; member in class:GCApplication
97 image = &_image;
99 mask.create( image->size(), CV_8UC1);
105 if( image->empty() || winName->empty() )
111 image->copyTo( res );
115 image->copyTo( res, binMask );
140 rect.width = min(rect.width, image->cols-rect.x);
141 rect.height = min(rect.height, image->rows-rect.y);
249 grabCut( *image, mas
290 Mat image = imread( filename, 1 ); local
[all...]
H A Dimage_alignment.cpp3 * findTransformECC that implements the image alignment ECC algorithm
6 * The demo loads an image (defaults to ../data/fruits.jpg) and it artificially creates
7 * a template image based on the given motion type. When two images are given,
8 * the first image is the input image and the second one defines the template image.
34 static void draw_warped_roi(Mat& image, const int width, const int height, Mat& W);
47 "{@inputImage | ../data/fruits.jpg | input image filename }"
48 "{@templateImage | | template image filename (optional)}"
55 "{w warpedImfile | warpedECC.png | warped input image }"
131 draw_warped_roi(Mat& image, const int width, const int height, Mat& W) argument
[all...]
H A Dintelperc_capture.cpp36 cout << " -isp IDX, set profile index of the image stream" << endl;
39 cout << " -imb VAL, set brighness value for a image stream" << endl;
40 cout << " -imc VAL, set contrast value for a image stream" << endl;
65 else if ((0 == strcmp( argv[i], "--image-stream-prof")) || (0 == strcmp( argv[i], "-isp")))
155 static void imshowImage(const char *winname, Mat &image, VideoCapture &capture) argument
163 int x = (int)((*uvmap) * image.cols); uvmap++;
164 int y = (int)((*uvmap) * image.rows);
169 for (int row = y; row < min(y + pointSize, image.rows); row++)
171 uchar* ptrDst = image.ptr(row) + x * 3 + 2;//+2 -> Red
172 for (int col = 0; col < min(pointSize, image
184 Mat image; local
232 Mat image; local
[all...]
H A Dsmiledetect.cpp23 " [--scale=<image scale greater or equal to 1, try 2.0 for example. The larger the faster the processing>]\n"
43 Mat frame, frameCopy, image; local
82 cout << " will try to flip image horizontally to detect assymetric objects\n";
234 // The number of detected neighbors depends on image size (and also illumination, etc.). The
243 // Draw rectangle on the left side of the image reflecting smile intensity
H A Dufacedetect.cpp25 " [--scale=<image scale greater or equal to 1, try 1.3 for example>]\n"
44 UMat frame, image; local
86 cout << " will try to flip image horizontally to detect assymetric objects\n";
115 image = imread( inputName, 1 ).getUMat(ACCESS_READ);
116 if( image.empty() )
143 if( !image.empty() )
145 detectAndDraw( image, canvas, cascade, nestedCascade, scale, tryflip );
151 list of the image filenames to be processed - one per line */
163 image = imread( buf, 1 ).getUMat(ACCESS_READ);
164 if( !image
[all...]
/external/opencv3/samples/gpu/
H A Dcascadeclassifier.cpp25 cout << "Usage: ./cascadeclassifier_gpu \n\t--cascade <cascade_file>\n\t(<image>|--video <video>|--camera <camera_id>)\n"
185 Mat image; local
189 image = imread(inputName);
190 CV_Assert(!image.empty());
228 (image.empty() ? frame : image).copyTo(frame_cpu);
229 frame_gpu.upload(image.empty() ? frame : image);
/external/opencv3/samples/tapi/
H A Dcamshift.cpp11 static cv::UMat image; variable
30 selection &= cv::Rect(0, 0, image.cols, image.rows);
114 frame.copyTo(image);
118 cv::cvtColor(image, hsv, cv::COLOR_BGR2HSV);
175 cv::cvtColor(backproj, image, cv::COLOR_GRAY2BGR);
178 cv::Mat _image = image.getMat(cv::ACCESS_RW);
188 cv::UMat roi(image, selection);
192 cv::imshow("CamShift Demo", image);
/external/pdfium/xfa/src/fxbarcode/common/
H A DBC_WhiteRectangleDetector.cpp30 CBC_CommonBitMatrix* image) {
31 m_image = image;
32 m_height = image->GetHeight();
33 m_width = image->GetWidth();
47 CBC_CommonBitMatrix* image,
51 m_image = image;
52 m_height = image->GetHeight();
53 m_width = image->GetWidth();
29 CBC_WhiteRectangleDetector( CBC_CommonBitMatrix* image) argument
46 CBC_WhiteRectangleDetector( CBC_CommonBitMatrix* image, int32_t initSize, int32_t x, int32_t y) argument
/external/pdfium/xfa/src/fxbarcode/oned/
H A DBC_OneDReader.cpp34 CFX_ByteString CBC_OneDReader::Decode(CBC_BinaryBitmap* image, int32_t& e) { argument
35 CFX_ByteString strtemp = Decode(image, 0, e);
39 CFX_ByteString CBC_OneDReader::Decode(CBC_BinaryBitmap* image, argument
42 CFX_ByteString strtemp = DeDecode(image, hints, e);
46 CFX_ByteString CBC_OneDReader::DeDecode(CBC_BinaryBitmap* image, argument
49 int32_t height = image->GetHeight();
69 row = image->GetBlackRow(rowNumber, NULL, e);
/external/pdfium/xfa/src/fxbarcode/qrcode/
H A DBC_QRDetector.cpp36 CBC_QRDetector::CBC_QRDetector(CBC_CommonBitMatrix* image) : m_image(image) {} argument
106 CBC_CommonBitMatrix* image,
129 image, dimension, dimension, 3.5f, 3.5f, dimMinusThree, 3.5f,
105 SampleGrid( CBC_CommonBitMatrix* image, CBC_ResultPoint* topLeft, CBC_ResultPoint* topRight, CBC_ResultPoint* bottomLeft, CBC_ResultPoint* alignmentPattern, int32_t dimension, int32_t& e) argument
/external/skia/gm/
H A Ddrawbitmaprect.cpp83 SkImage* image = surface->newImageSnapshot(); local
88 if (image->getTexture()) {
89 GrWrapTextureInBitmap(image->getTexture(),
90 image->width(), image->height(), image->isOpaque(), &tempBM);
94 image->asLegacyBitmap(&tempBM, SkImage::kRO_LegacyBitmapMode);
101 return image;
109 static void imageproc(SkCanvas* canvas, SkImage* image, const SkBitmap&, const SkIRect& srcR, argument
111 canvas->drawImageRect(image, src
[all...]
/external/skia/src/core/
H A DSkBitmapCache.cpp48 * This function finds the bounds of the image. Today this is just the entire bounds,
49 * but in the future we may support subsets within an image, in which case this should
52 static SkIRect get_bounds_from_image(const SkImage* image) { argument
53 return SkIRect::MakeWH(image->width(), image->height());
69 SkBitmapCacheDesc SkBitmapCacheDesc::Make(const SkImage* image, int width, int height) { argument
71 desc.fImageID = image->uniqueID();
74 desc.fBounds = get_bounds_from_image(image);
78 SkBitmapCacheDesc SkBitmapCacheDesc::Make(const SkImage* image) { argument
79 return Make(image, imag
[all...]
H A DSkSpecialImage.cpp36 static inline const SkSpecialImage_Base* as_IB(const SkSpecialImage* image) { argument
37 return static_cast<const SkSpecialImage_Base*>(image);
94 SkSpecialImage_Image(SkImageFilter::Proxy* proxy, const SkIRect& subset, const SkImage* image) argument
95 : INHERITED(proxy, subset, image->uniqueID())
96 , fImage(SkRef(image)) {
165 SkSpecialImage* SkSpecialImage::NewFromImage(const SkIRect& subset, const SkImage* image) { argument
166 SkASSERT(rect_fits(subset, image->width(), image->height()));
167 return new SkSpecialImage_Image(nullptr, subset, image);
/external/skia/src/effects/
H A DGrCircleBlurFragmentProcessor.cpp172 float image = disk(t - kernelOff + x, -kernelOff + y, halfWidth); local
174 acc += kernel * image;
/external/skia/src/gpu/
H A DGrBatchAtlas.cpp44 bool GrBatchAtlas::BatchPlot::addSubImage(int width, int height, const void* image, argument
61 const unsigned char* imagePtr = (const unsigned char*)image;
198 int width, int height, const void* image, SkIPoint16* loc) {
208 if (plot->addSubImage(width, height, image, loc)) {
223 SkDEBUGCODE(bool verify = )plot->addSubImage(width, height, image, loc);
252 SkDEBUGCODE(bool verify = )newPlot->addSubImage(width, height, image, loc);
197 addToAtlas(AtlasID* id, GrDrawBatch::Target* batchTarget, int width, int height, const void* image, SkIPoint16* loc) argument
/external/skia/src/gpu/text/
H A DGrBatchFontCache.h65 // get the actual glyph image itself when we get the glyph metrics.
161 GrMaskFormat format, int width, int height, const void* image,
164 return this->getAtlas(format)->addToAtlas(id, target, width, height, image, loc);
159 addToAtlas(GrBatchTextStrike* strike, GrBatchAtlas::AtlasID* id, GrDrawBatch::Target* target, GrMaskFormat format, int width, int height, const void* image, SkIPoint16* loc) argument
/external/skia/src/image/
H A DSkImage_Gpu.cpp40 extern void SkTextureImageApplyBudgetedDecision(SkImage* image) { argument
41 if (as_IB(image)->getTexture()) {
42 ((SkImage_Gpu*)image)->applyBudgetDecision();
298 // No way to check whether a image is premul or not?
H A DSkImage_Raster.cpp158 // we only try if we (the image) cover the entire area of the pixelRef
259 SkImage* image = nullptr; local
264 image = SkImage::NewRasterCopy(tmp.info(), tmp.getPixels(), tmp.rowBytes(),
268 image = new SkImage_Raster(bm);
270 return image;
273 const SkPixelRef* SkBitmapImageGetPixelRef(const SkImage* image) { argument
274 return ((const SkImage_Raster*)image)->getPixelRef();
H A DSkSurface.cpp82 SkImage* image = this->newImageSnapshot(SkBudgeted::kYes); local
83 if (image) {
84 canvas->drawImage(image, x, y, paint);
85 image->unref();
100 // the cached image. Note: we only call if there is an outstanding owner
101 // on the image (besides us).
107 // regardless of copy-on-write, we must drop our cached image now, so
113 // Our content isn't held by any image now, so we can consider that content mutable.
/external/skia/src/utils/mac/
H A DSkCreateCGImageRef.cpp248 CGImageRef image) {
276 CGContextDrawImage(cg, CGRectMake(0, 0, info.width(), info.height()), image);
281 bool SkCreateBitmapFromCGImage(SkBitmap* dst, CGImageRef image, SkISize* scaleToFit) { argument
282 const int width = scaleToFit ? scaleToFit->width() : SkToInt(CGImageGetWidth(image));
283 const int height = scaleToFit ? scaleToFit->height() : SkToInt(CGImageGetHeight(image));
291 if (!SkCopyPixelsFromCGImage(tmp.info(), tmp.rowBytes(), tmp.getPixels(), image)) {
295 CGImageAlphaInfo cgInfo = CGImageGetAlphaInfo(image);
247 SkCopyPixelsFromCGImage(const SkImageInfo& info, size_t rowBytes, void* pixels, CGImageRef image) argument
/external/vboot_reference/firmware/stub/
H A Dvboot_api_stub.c128 const uint8_t **image, int *image_size)
131 *image = fake_image;
146 VbError_t VbExEcUpdateRW(int devidx, const uint8_t *image, int image_size) argument
127 VbExEcGetExpectedRW(int devidx, enum VbSelectFirmware_t select, const uint8_t **image, int *image_size) argument
/external/vboot_reference/tests/
H A Dvboot_api_kernel3_tests.c151 const uint8_t **image, int *image_size)
154 *image = fake_image;
177 VbError_t VbExEcUpdateRW(int devidx, const uint8_t *image, int image_size) argument
221 VBNV_RECOVERY_EC_UNKNOWN_IMAGE, "Unknown EC image");
233 TEST_EQ(ec_run_image, 0, " ec run image");
284 VBNV_RECOVERY_EC_EXPECTED_IMAGE, "Can't fetch image");
304 TEST_EQ(ec_run_image, 1, " ec run image");
334 TEST_EQ(ec_run_image, 1, " ec run image");
150 VbExEcGetExpectedRW(int devidx, enum VbSelectFirmware_t select, const uint8_t **image, int *image_size) argument
/external/webp/src/enc/
H A Ddelta_palettization.c311 static uint32_t Predict(int x, int y, uint32_t* image) { argument
312 const uint32_t t = (y == 0) ? ARGB_BLACK : image[x];
313 const uint32_t l = (x == 0) ? ARGB_BLACK : image[x - 1];
/external/webrtc/webrtc/examples/peerconnection/client/
H A Dmain_wnd.h124 const uint8_t* image() const { return image_.get(); } function in class:MainWnd::VideoRenderer

Completed in 874 milliseconds

1234567891011>>