/external/opencv3/modules/videoio/perf/ |
perf_output.cpp | 25 Mat image = imread(filename, 1); local 28 25, cv::Size(image.cols, image.rows), isColor); 31 25, cv::Size(image.cols, image.rows), isColor); 34 TEST_CYCLE() { image = imread(filename, 1); writer << image; } local
|
/external/opencv3/samples/cpp/ |
edge.cpp | 12 Mat image, gray, edge, cedge; variable 23 image.copyTo(cedge, edge); 36 "{@image |../data/fruits.jpg|input image name}" 46 image = imread(filename, 1); 47 if(image.empty()) 49 printf("Cannot read image file: %s\n", filename.c_str()); 53 cedge.create(image.size(), image.type()); 54 cvtColor(image, gray, COLOR_BGR2GRAY) [all...] |
image_sequence.cpp | 14 << "Image mask defines the name variation for the input images that have to be read as a sequence. \n" 32 cerr << "Failed to open the image sequence!\n" << endl; 36 Mat image; local 37 namedWindow("Image sequence | press ESC to close", 1); 41 // Read in image from sequence 42 sequence >> image; local 44 // If no image was retrieved -> end of sequence 45 if(image.empty()) 51 imshow("Image sequence | press ESC to close", image); [all...] |
/external/opencv3/samples/cpp/tutorial_code/ImgProc/ |
BasicLinearTransforms.cpp | 22 /// Read image given by user 23 Mat image = imread( argv[1] ); local 24 Mat new_image = Mat::zeros( image.size(), image.type() ); 33 /// Do the operation new_image(i,j) = alpha*image(i,j) + beta 35 /// image.convertTo(new_image, -1, alpha, beta); 37 for( int y = 0; y < image.rows; y++ ) 38 { for( int x = 0; x < image.cols; x++ ) 41 new_image.at<Vec3b>(y,x)[c] = saturate_cast<uchar>( alpha*( image.at<Vec3b>(y,x)[c] ) + beta ); 47 namedWindow("Original Image", 1) [all...] |
/external/proguard/src/proguard/gui/splash/ |
ImageSprite.java | 26 * This Sprite represents an animated image. 32 private final Image image; field in class:ImageSprite 41 * @param image the Image to be painted. 42 * @param x the variable x-coordinate of the upper-left corner of the image. 43 * @param y the variable y-coordinate of the upper-left corner of the image. 44 * @param scaleX the variable x-scale of the image. 45 * @param scaleY the variable y-scale of the image. 47 public ImageSprite(Image image [all...] |
/external/deqp/framework/delibs/deimage/ |
deImage.c | 2 * drawElements Image Library 21 * \brief Image library. 36 static void* getPixelAddress (const deImage* image, int x, int y) 38 int offset = ((y*image->width) + x) * deImageFormat_getBytesPerPixel(image->format); 39 DE_ASSERT(deInBounds32(x, 0, image->width)); 40 DE_ASSERT(deInBounds32(y, 0, image->height)); 41 return (void*)((deUint8*)image->pixels + offset); 46 deImage* image = DE_NEW(deImage); local 48 if (!image) [all...] |
/external/opencv3/modules/imgcodecs/src/ |
grfmt_gdal.cpp | 218 Mat& image, 224 double newValue = range_cast(gdalType, image.depth(), pixelValue ); 227 if( gdalChannels == 1 && image.channels() == 1 ){ 228 if( image.depth() == CV_8U ){ image.at<uchar>(row,col) = newValue; } 229 else if( image.depth() == CV_16U ){ image.at<unsigned short>(row,col) = newValue; } 230 else if( image.depth() == CV_16S ){ image.at<short>(row,col) = newValue; } 231 else if( image.depth() == CV_32S ){ image.at<int>(row,col) = newValue; [all...] |
/frameworks/av/include/ndk/ |
NdkImage.h | 46 * AImage is an opaque type that provides access to image generated by {@link AImageReader}. 94 * 16 bits per pixel raw camera sensor image format, usually representing a single-channel 95 * Bayer-mosaic image. 98 * values of the raw pixel data, the color space of the image, and all other 99 * needed information to interpret a raw sensor image must be queried from 100 * the {@link ACameraDevice} which produced the image.</p> 105 * Private raw camera sensor image format, a single channel image with implementation depedent 108 * <p>AIMAGE_FORMAT_RAW_PRIVATE is a format for unprocessed raw image buffers coming from an 109 * image sensor. The actual structure of buffers of this format is implementation-dependent.</p [all...] |
/external/opencv3/modules/cudafeatures2d/src/ |
feature2d_async.cpp | 49 void cv::cuda::Feature2DAsync::detectAsync(InputArray image, 54 if (image.empty()) 60 detectAndComputeAsync(image, mask, keypoints, noArray(), false, stream); 63 void cv::cuda::Feature2DAsync::computeAsync(InputArray image, 68 if (image.empty()) 74 detectAndComputeAsync(image, noArray(), keypoints, descriptors, true, stream); 77 void cv::cuda::Feature2DAsync::detectAndComputeAsync(InputArray /*image*/,
|
/external/opencv3/modules/python/test/ |
ticket_6.py | 5 import Image 13 pilim = Image.open("large.jpg") 21 image = cv.CreateImage(self.size, cv.IPL_DEPTH_8U, 1) 22 cnt=cv.CountNonZero(image) 23 self.assertEqual(cnt, 0, msg="Created image is not black. CountNonZero=%i" % cnt) 28 image = cv.CreateImage(self.size, cv.IPL_DEPTH_8U, 1) 29 cnt+=cv.CountNonZero(image) 36 image = cv.CreateImage(self.size, cv.IPL_DEPTH_8U, 1) 37 cv.FillPoly(image, [[(0, 0), (0, 100), (100, 0)]], 0) 38 cnt+=cv.CountNonZero(image) [all...] |
/frameworks/base/core/java/android/widget/ |
ImageSwitcher.java | 38 ImageView image = (ImageView)this.getNextView(); local 39 image.setImageResource(resid); 45 ImageView image = (ImageView)this.getNextView(); local 46 image.setImageURI(uri); 52 ImageView image = (ImageView)this.getNextView(); local 53 image.setImageDrawable(drawable);
|
/external/opencv3/samples/cpp/tutorial_code/features2D/AKAZE_tracking/ |
utils.h | 11 void drawBoundingBox(Mat image, vector<Point2f> bb); 12 void drawStatistics(Mat image, const Stats& stats); 16 void drawBoundingBox(Mat image, vector<Point2f> bb) 19 line(image, bb[i], bb[i + 1], Scalar(0, 0, 255), 2); 21 line(image, bb[bb.size() - 1], bb[0], Scalar(0, 0, 255), 2); 24 void drawStatistics(Mat image, const Stats& stats) 33 putText(image, str1.str(), Point(0, image.rows - 90), font, 2, Scalar::all(255), 3); 34 putText(image, str2.str(), Point(0, image.rows - 60), font, 2, Scalar::all(255), 3) [all...] |
/external/opencv3/samples/cpp/tutorial_code/ml/introduction_to_svm/ |
introduction_to_svm.cpp | 14 Mat image = Mat::zeros(height, width, CV_8UC3); local 41 for (int i = 0; i < image.rows; ++i) 42 for (int j = 0; j < image.cols; ++j) 48 image.at<Vec3b>(i,j) = green; 50 image.at<Vec3b>(i,j) = blue; 58 circle( image, Point(501, 10), 5, Scalar( 0, 0, 0), thickness, lineType ); 59 circle( image, Point(255, 10), 5, Scalar(255, 255, 255), thickness, lineType ); 60 circle( image, Point(501, 255), 5, Scalar(255, 255, 255), thickness, lineType ); 61 circle( image, Point( 10, 501), 5, Scalar(255, 255, 255), thickness, lineType ); 73 circle( image, Point( (int) v[0], (int) v[1]), 6, Scalar(128, 128, 128), thickness, lineType) [all...] |
/hardware/bsp/intel/peripheral/libupm/examples/java/ |
SSD1308_oledSample.java | 90 byte[] image = new byte[IntelLogo.length]; 92 image[i] = (byte) IntelLogo[i]; 95 lcd.draw(image);
|
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/layout/gle2/ |
ImageUtilsTest.java | 26 import java.awt.image.BufferedImage; 36 BufferedImage image = new BufferedImage(100, 100, BufferedImage.TYPE_INT_ARGB_PRE); local 37 Graphics g = image.getGraphics(); 39 g.fillRect(0, 0, image.getWidth(), image.getHeight()); 42 BufferedImage crop = ImageUtils.cropBlank(image, null); 47 BufferedImage image = new BufferedImage(100, 100, BufferedImage.TYPE_INT_ARGB_PRE); local 48 Graphics g = image.getGraphics(); 50 g.fillRect(0, 0, image.getWidth(), image.getHeight()) 58 BufferedImage image = new BufferedImage(100, 100, BufferedImage.TYPE_INT_ARGB_PRE); local 71 BufferedImage image = new BufferedImage(100, 100, BufferedImage.TYPE_INT_ARGB_PRE); local 88 BufferedImage image = new BufferedImage(100, 100, BufferedImage.TYPE_INT_ARGB_PRE); local 105 BufferedImage image = new BufferedImage(100, 100, BufferedImage.TYPE_INT_ARGB_PRE); local 122 BufferedImage image = new BufferedImage(100, 100, BufferedImage.TYPE_INT_ARGB_PRE); local 133 BufferedImage image = new BufferedImage(100, 100, BufferedImage.TYPE_INT_ARGB_PRE); local 146 BufferedImage image = new BufferedImage(100, 100, BufferedImage.TYPE_INT_ARGB_PRE); local 162 BufferedImage image = new BufferedImage(100, 100, BufferedImage.TYPE_INT_ARGB_PRE); local 173 BufferedImage image = new BufferedImage(100, 100, BufferedImage.TYPE_INT_ARGB_PRE); local 276 BufferedImage image = new BufferedImage(100, 100, BufferedImage.TYPE_INT_ARGB_PRE); local 321 BufferedImage image = new BufferedImage(100, 100, BufferedImage.TYPE_INT_ARGB_PRE); local 361 BufferedImage image = ImageUtils.createColoredImage(120, 110, new RGB(0xFE, 0xFD, 0xFC)); local [all...] |
/external/opencv3/modules/imgcodecs/include/opencv2/imgcodecs/ |
ios.h | 53 UIImage* MatToUIImage(const cv::Mat& image); 54 void UIImageToMat(const UIImage* image,
|
/external/vboot_reference/scripts/image_signing/ |
insert_au_publickey.sh | 7 # Install an update payload verification public key to the image. 15 local image="$1" 19 Usage: $PROG <image.bin> <au_public_key.pem> 20 Installs the update verification public key <au_public_key.pem> to <image.bin>. 26 mount_image_partition "$image" 3 "$rootfs" 31 echo "AU verification key was installed. Do not forget to resign the image!"
|
set_chronos_password.sh | 7 # Customizes a Chrome OS release image by setting the chronos user password. 9 # Usage: ./set_chronos_password.sh <image.bin> <chronos_password> [--force] 30 local image=$1 33 echo "Usage: $PROG <image.bin> <chronos_password> [--force]" 39 mount_image_partition_ro "$image" 3 "$rootfs" 47 mount_image_partition "$image" 3 "$rootfs" 49 touch "$image" # Updates the image modification time.
|
/external/webrtc/webrtc/modules/desktop_capture/ |
mouse_cursor.cc | 21 MouseCursor::MouseCursor(DesktopFrame* image, const DesktopVector& hotspot) 22 : image_(image), 32 return cursor.image() 33 ? new MouseCursor(BasicDesktopFrame::CopyOf(*cursor.image()),
|
mouse_cursor.h | 26 // Takes ownership of |image|. |hotspot| must be within |image| boundaries. 27 MouseCursor(DesktopFrame* image, const DesktopVector& hotspot); 33 void set_image(DesktopFrame* image) { image_.reset(image); } 34 const DesktopFrame* image() const { return image_.get(); } function in class:webrtc::MouseCursor
|
/frameworks/av/media/libstagefright/omx/ |
OMXUtils.cpp | 71 void MediaImage2::initFromV1(const MediaImage &image) { 74 if (image.mType != MediaImage::MEDIA_IMAGE_TYPE_YUV) { 79 for (size_t ix = 0; ix < image.mNumPlanes; ++ix) { 80 if (image.mPlane[ix].mHorizSubsampling > INT32_MAX 81 || image.mPlane[ix].mVertSubsampling > INT32_MAX) { 87 mType = (MediaImage2::Type)image.mType; 88 mNumPlanes = image.mNumPlanes; 89 mWidth = image.mWidth; 90 mHeight = image.mHeight; 91 mBitDepth = image.mBitDepth [all...] |
/system/extras/verity/fec/tests/ |
fec.py | 26 def corrupt(image, offset, length): 28 f = os.open(image, os.O_WRONLY) 33 def corruptmax(image, roots): 34 size = os.stat(image).st_size 42 corrupt(image, offset, max_errors) 44 def encode(image, fec, roots): 45 if subprocess.call([ "fec", "--roots= " + str(roots), image, fec ]) != 0: 48 def decode(image, fec, output): 49 return subprocess.call([ "fec", "--decode", image, fec, output ]) 54 def simg2img(image, output) [all...] |
/external/libunwind/src/coredump/ |
_UCD_elf_map_image.c | 41 ei->image = mmap(NULL, phdr->p_memsz, PROT_READ, MAP_PRIVATE, ui->coredump_fd, phdr->p_offset); 42 if (ei->image == MAP_FAILED) 44 ei->image = NULL; 51 void *remainder_base = (char*) ei->image + phdr->p_filesz; 63 ei->image = mmap(NULL, phdr->backing_filesize, PROT_READ, MAP_PRIVATE, phdr->backing_fd, 0); 64 if (ei->image == MAP_FAILED) 66 ei->image = NULL; 75 munmap(ei->image, ei->size); 76 ei->image = NULL;
|
/sdk/hierarchyviewer/src/com/android/hierarchyviewer/ui/util/ |
IconLoader.java | 7 import java.awt.image.BufferedImage; 31 public static BufferedImage toCompatibleImage(BufferedImage image) { 33 return image; 36 if (image.getColorModel().equals( 38 return image; 42 image.getWidth(), image.getHeight(), image.getTransparency()); 44 g.drawImage(image, 0, 0, null);
|
/external/pdfium/third_party/libopenjpeg20/ |
image.c | 35 opj_image_t *image = (opj_image_t*)opj_calloc(1, sizeof(opj_image_t)); local 36 return image; 41 opj_image_t *image = NULL; local 43 image = (opj_image_t*) opj_calloc(1, sizeof(opj_image_t)); 44 if(image) { 45 image->color_space = clrspc; 46 image->numcomps = numcmpts; 48 image->comps = (opj_image_comp_t*)opj_calloc(1,image->numcomps * sizeof(opj_image_comp_t)); 49 if(!image->comps) 210 opj_image_t *image = 00; local [all...] |