Lines Matching refs:height

294 +int loadImages(const char* basename, int &width, int &height)
303 + ImageType rgbFrame = ImageUtils::readBinaryPPM(filename, width, height);
304 + yvuFrames[i] = ImageUtils::allocateImage(width, height,
306 + ImageUtils::rgb2yvu(yvuFrames[i], rgbFrame, width, height);
316 + int width, height;
331 + int totalFrames = loadImages(basename, width, height);
346 + mosaic.initialize(blendingType, stripType, width, height, -1, false, 0);
2007 + width = height = 0;
2027 +int Align::initialize(int width, int height, bool _quarter_res, float _thresh_still)
2036 + int nrvert = height/60; // and vertical buckets for harris corner detection.
2054 + reg.Init(width, height, motion_model_type, 20, linear_polish, quarter_res,
2060 + this->height = height;
2062 + imageGray = ImageUtils::allocateImage(width, height, 1);
2072 + ImageUtils::rgb2gray(imageGray, imageRGB, width, height);
2081 + ImageType *m_rows = ImageUtils::imageTypeToRowPointers(imageGray_, width, height);
2270 + int initialize(int width, int height, bool quarter_res, float thresh_still);
2294 + int width,height;
2355 + this->height = frame_height;
2372 …dShort::allocatePyramidPacked(m_wb.nlevs, (unsigned short) width, (unsigned short) height, BORDER);
2373 …t::allocatePyramidPacked(m_wb.nlevsC, (unsigned short) (width), (unsigned short) (height), BORDER);
2374 …t::allocatePyramidPacked(m_wb.nlevsC, (unsigned short) (width), (unsigned short) (height), BORDER);
2468 + FrameToMosaicRect(mb->width, mb->height, mb->trs, mb->brect);
2474 + FrameToMosaic(mb->trs, 0.0, mb->height-1.0, x1, y1);
2475 + FrameToMosaic(mb->trs, mb->width-1.0, mb->height-1.0, x2, y2);
2555 + memset(imgMos->Y.ptr[0], 255, (imgMos->Y.width * imgMos->Y.height));
2557 + memset(imgMos->V.ptr[0], 128, (imgMos->V.width * imgMos->V.height) << 1);
2561 + int n = m_Triangulator.triangulate(&edge, numCenters, width, height);
2580 + ret = DoMergeAndBlend(frames, numCenters, width, height, *imgMos, fullRect,
2607 + if (Mwidth < width || Mheight < height) {
2611 + if ((Mwidth * Mheight) > (width * height * sizeMultiplier)) {
2620 + if (shortSide > height * heightMultiplier) {
2637 + for(h=0; h<height; h++)
2670 + int width, int height, YUVinfo &imgMos, MosaicRect &rect,
2748 + for(int y = 0; y < imgMos.Y.height; y++)
2805 + // is set to imgMos.Y.height - tw, so that y+1 below
2807 + for(int y = tw; y < imgMos.Y.height - tw; )
2946 + bool **b = new bool*[imgMos.Y.height];
2948 + for(int j=0; j<imgMos.Y.height; j++)
2960 + for (j = 0; j < imgMos.Y.height; j++)
3011 + for (j = 0; j < imgMos.Y.height; j++)
3029 + for (j = imgMos.Y.height-1; j >= 0; j--)
3088 + for(int j=0; j<imgMos.Y.height; j++)
3099 + int height = rect.bottom - rect.top + 1;
3100 + int residue = height & 7;
3133 + t = (t >= dptr->height) ? dptr->height + BORDER - 1 : t + BORDER;
3134 + else if (t >= dptr->height + BORDER)
3135 + t = dptr->height + BORDER - 1;
3151 + (unsigned) jj < imgMos.Y.height) ? 1 : 0;
3216 + t = (t >= dptr->height) ? dptr->height + BORDER - 1 : t + BORDER;
3217 + else if (t >= dptr->height + BORDER)
3218 + t = dptr->height + BORDER - 1;
3233 + (unsigned) jj < imgMos.Y.height) ? 1 : 0;
3273 + if (xx < 0.0 || yy < 0.0 || xx > width - 1.0 || yy > height - 1.0)
3293 + inSegment(y1, sptr->height, BORDER-1))
3308 + if(inSegment(x1, sptr->width, BORDER) && inSegment(y1, sptr->height, BORDER))
3341 + clipToSegment(y1, sptr->height, BORDER);
3471 +void Blend::FrameToMosaicRect(int width, int height, double trs[3][3], BlendRect &brect)
3477 + double lasty = height - 1.0;
3489 + for (i = height; i--;)
3506 + double midY = last->height / 2.0;
3561 + double midY = last->height / 2.0;
3672 + z = ProjZ(last->trs, midX, last->height - 1.0, 1.0);
3673 + prevX = ProjX(last->trs, midX, last->height - 1.0, z, 1.0);
3674 + prevY = ProjY(last->trs, midX, last->height - 1.0, z, 1.0);
3794 + int width, height;
3802 + void FrameToMosaicRect(int width, int height, double trs[3][3], BlendRect &brect);
3806 + int DoMergeAndBlend(MosaicFrame **frames, int nsite, int width, int height, YUVinfo &imgMos, M…
3942 +int CDelaunay::triangulate(SEdgeVector **edges, int n_sites, int width, int height)
3952 + return constructList(cep, width, height);
4490 +int CDelaunay::constructList(EdgePointer last, int width, int height)
4512 + (int) fabs(sa[currv->first].getVCenter().y - sa[currv->second].getVCenter().y) <= height
4639 + int constructList(EdgePointer e, int width, int height);
4647 + int triangulate(SEdgeVector **edge, int nsite, int width, int height);
4831 + // the mass is the base * height
4904 +void ImageUtils::rgba2yvu(ImageType out, ImageType in, int width, int height)
4908 + ImageType vimg = yimg + width*height;
4909 + ImageType uimg = vimg + width*height;
4912 + for (int ii = 0; ii < height; ii++) {
4949 +void ImageUtils::rgb2yvu(ImageType out, ImageType in, int width, int height)
4953 + ImageType vimg = yimg + width*height;
4954 + ImageType uimg = vimg + width*height;
4957 + for (int ii = 0; ii < height; ii++) {
4992 +ImageType ImageUtils::rgb2gray(ImageType in, int width, int height)
4996 + ImageType out = ImageUtils::allocateImage(width, height, 1);
4999 + for (int ii = 0; ii < height; ii++) {
5021 +ImageType ImageUtils::rgb2gray(ImageType out, ImageType in, int width, int height)
5027 + for (int ii = 0; ii < height; ii++) {
5050 +ImageType *ImageUtils::imageTypeToRowPointers(ImageType in, int width, int height)
5053 + int m_h = height;
5064 +void ImageUtils::yvu2rgb(ImageType out, ImageType in, int width, int height)
5068 + unsigned char *vimg = yimg + width*height;
5069 + unsigned char *uimg = vimg + width*height;
5072 + for (int i = 0; i < height; i++) {
5109 +void ImageUtils::yvu2bgr(ImageType out, ImageType in, int width, int height)
5113 + unsigned char *vimg = yimg + width*height;
5114 + unsigned char *uimg = vimg + width*height;
5117 + for (int i = 0; i < height; i++) {
5155 +ImageType ImageUtils::readBinaryPPM(const char *filename, int &width, int &height)
5174 + eret = fscanf(imgin, "%d %d\n", &width, &height);
5176 + ret = allocateImage(width, height, IMAGE_TYPE_NUM_CHANNELS);
5177 + eret = fread(ret, sizeof(ImageTypeBase), IMAGE_TYPE_NUM_CHANNELS*width*height, imgin);
5185 +void ImageUtils::writeBinaryPPM(ImageType image, const char *filename, int width, int height, int …
5195 + fprintf(imgout, "P6\n%d %d\n255\n", width, height);
5197 + fprintf(imgout, "P5\n%d %d\n255\n", width, height);
5201 + fwrite(image, sizeof(ImageTypeBase), numChannels*width*height, imgout);
5207 +ImageType ImageUtils::allocateImage(int width, int height, int numChannels, short int border)
5210 + return (ImageType) calloc(width*height*numChannels+overallocation, sizeof(ImageTypeBase));
5229 +YUVinfo *YUVinfo::allocateImage(unsigned short width, unsigned short height)
5234 + heightUV = height;
5237 + int size = ((width * height * 3) + 8);
5247 + yuv->Y.height = height;
5250 + yuv->U.height = yuv->V.height = heightUV;
5253 + sizeof(unsigned char *) * (height + heightUV + heightUV) +
5261 + yuv->V.ptr = &y[height];
5262 + yuv->U.ptr = &y[height + heightUV];
5274 + for (i = 0; i < img->Y.height; i++, position += img->Y.width)
5276 + for (i = 0; i < img->V.height; i++, position += img->V.width)
5278 + for (i = 0; i < img->U.height; i++, position += img->U.width)
5348 + * height: Height of input image
5350 + static void rgb2yvu(ImageType out, ImageType in, int width, int height);
5352 + static void rgba2yvu(ImageType out, ImageType in, int width, int height);
5362 + * height: Height of input image
5364 + static void yvu2rgb(ImageType out, ImageType in, int width, int height);
5365 + static void yvu2bgr(ImageType out, ImageType in, int width, int height);
5373 + * height: Height of input image
5379 + static ImageType rgb2gray(ImageType in, int width, int height);
5380 + static ImageType rgb2gray(ImageType out, ImageType in, int width, int height);
5385 + static ImageType readBinaryPPM(const char *filename, int &width, int &height);
5390 + static void writeBinaryPPM(ImageType image, const char *filename, int width, int height, int num…
5395 + static ImageType allocateImage(int width, int height, int numChannels, short int border = 0);
5402 + static ImageType *imageTypeToRowPointers(ImageType out, int width, int height);
5432 + unsigned short height;
5442 + static YUVinfo *allocateImage(unsigned short width, unsigned short height);
5787 +int Mosaic::initialize(int blendingType, int stripType, int width, int height, int nframes, bool q…
5800 + this->height = height;
5813 + frames[i] = new MosaicFrame(this->width,this->height,false); // Do no allocate memory …
5828 + aligner->initialize(width, height,quarter_res,thresh_still);
5835 + blender->initialize(blendingType, stripType, width, height);
5850 + imageYVU = ImageUtils::allocateImage(this->width, this->height, ImageUtils::IMAGE_TYPE_NUM_CHA…
5851 + ImageUtils::rgb2yvu(imageYVU, imageRGB, width, height);
5867 + frames[frames_size] = new MosaicFrame(this->width,this->height,false);
5954 +ImageType Mosaic::getMosaic(int &width, int &height)
5957 + height = mosaicHeight;
6036 + int height = 480;
6044 + mosaic.initialize(blendingType, stripType, width, height, -1, false, 5.0f);
6083 + * \param height Height of input images (note: all images must be same size)
6089 + int initialize(int blendingType, int stripType, int width, int height, int nframes = -1, bool qu…
6115 + * \param height Height of the resulting mosaic (returned)
6118 + ImageType getMosaic(int &width, int &height);
6148 + int width, height;
6295 + int width, height;
6304 + height = _height;
6307 + image = ImageUtils::allocateImage(width, height, ImageUtils::IMAGE_TYPE_NUM_CHANNELS);
6323 + return (image + (width*height));
6331 + return (image + (width*height*2));
6339 + ImageType U = image + (width*height);
6348 + ImageType U = image + (width*height*2);
6411 + real width, real height, real border)
6414 + int lines, size = calcStorage(width, height, border2, levels, &lines);
6426 + curr->height = height;
6432 + for (int j = height + border2; j--; y++, position += curr->pitch) {
6437 + height >>= 1;
6445 +PyramidShort *PyramidShort::allocateImage(real width, real height, real border)
6449 + calloc(sizeof(PyramidShort) + sizeof(short *) * (height + border2) +
6450 + sizeof(short) * (width + border2) * (height + border2), 1);
6454 + short *position = (short *) &y[height + border2];
6456 + img->height = height;
6463 + for (int j = height + border2; j--; y++, position += img->pitch) {
6479 +unsigned int PyramidShort::calcStorage(real width, real height, real border2, int levels, int *l…
6486 + size += (width + border2) * (height + border2);
6487 + *lines += height + border2;
6489 + height >>= 1;
6498 + int off, off2, height, h, w;
6505 + height = pyr->height + (h << 1);
6509 + for (h = height; h--; base += pyr->pitch) {
6524 + base = pyr->ptr[pyr->height + pyr->border - bot] - pyr->border;
6538 + for (j = -off; j < in->height + off; j++) {
6553 + int limit = out->height + out->border;
6572 + PyramidShort *scr = allocateImage(pyr[1].width, pyr[0].height, pyr->border);
6579 + scr->height = tpyr[-1].height;
6587 + scr->height = pyr[-1].height;
6603 + ls = scr->ptr[scr->height + scr->border - 1] + scr->pitch - (off >> 1);
6621 + ls = s + out->pitch * (out->height + off);
6639 + PyramidShort *scr = allocateImage(pyr[1].width, pyr[0].height, pyr->border);
6648 + scr->height = pyr[0].height;
6694 + real width, height; // Width and height of input images
6699 + static PyramidShort *allocatePyramidPacked(real width, real height, real levels, real border = 0…
6700 + static PyramidShort *allocateImage(real width, real height, real border);
6704 + static unsigned int calcStorage(real width, real height, real border2, int levels, int *lines);
6901 +bool FrameBuffer::Init(int width, int height, GLenum format) {
6914 + height,
6942 + mHeight = height;
6999 + bool Init(int width, int height, GLenum format);
7135 +// set the viewport size to be the given width and height (pixels).
7136 +bool Renderer::SetupGraphics(int width, int height)
7154 + mSurfaceHeight = height;
7166 +// set the viewport size to be the width and height of this FBO.
7243 +void Renderer::SetInputTextureDimensions(int width, int height)
7246 + mInputTextureHeight = height;
7274 + bool SetupGraphics(int width, int height);
7280 + void SetInputTextureDimensions(int width, int height);
8078 +int width=0, height=0;
8228 +void YUV420toYVU24(ImageType yvu24, ImageType yuv420sp, int width, int height)
8230 + int frameSize = width * height;
8236 + for (int j = 0, yp = 0; j < height; j++)
8259 + int height)
8261 + int frameSize = width * height;
8269 + for (int j = 0; j < height; j += 2)
8297 + JNIEnv* env, jobject thiz, jint width, jint height)
8300 + tHeight[HR] = height;
8302 + tHeight[LR] = int(height / H2L_FACTOR);
8329 + int height)
8331 + int frameSize = width * height;
8333 + for (int j = 0, yp = 0; j < height; j++)
8367 + int height)
8369 + int planeSize = width * height;
8595 + int height = mosaicHeight;
8596 + int imageSize = width * height;
8603 + LOGV("MosBytes: %d, W = %d, H = %d", imageSize, width, height);
8608 + for(y=0; y<height; y++)
8618 + dims[1] = height;
8640 + int height;
8643 + height = mosaicHeight;
8645 + int imageSize = 1.5*width * height;
8659 + LOGV("MosBytes: %d, W = %d, H = %d", imageSize, width, height);
8668 + dims[4] = (unsigned char)(height >> 24);
8669 + dims[5] = (unsigned char)(height >> 16);
8670 + dims[6] = (unsigned char)(height >> 8);
8671 + dims[7] = (unsigned char)height;
9383 +right and bottom have to be at most width-4,height-4*/
9425 +right and bottom have to be at most width-4,height-4. The left of the region in s should
9823 +and with width w and height h. img[left] should be 16 byte aligned*/
10594 + * \param im_height height
14253 + * \param im_height height
14339 + * \param im_height height
17524 + * \param h image height
17531 + * \param h height
17539 + * \param h image height (number of rows)
17546 + * \param h image height
17553 + * \param h height
17561 + * \param h image height (number of rows)
17571 + \param h height
17664 + * \param h height
17844 +\param im_height image height
18192 …e DB_POINT_STANDARDDEV (1.0/(826.0)) /*1 pixel for CIF (fraction of (image width+image height)/2)*/
22586 +void db_FrameToReferenceRegistration::Init(int width, int height,
22621 + height = height/2;
22623 + m_horz_smooth_subsample_image = db_AllocImage_u(width,height*2,m_over_allocation);
22624 + m_quarter_res_image = db_AllocImage_u(width,height,m_over_allocation);
22628 + m_im_height = height;
23375 + * \param height image height
23392 + void Init(int width, int height,
23667 + \param h height
23714 + * \param h height
24203 + * \param vsize height of the image being aligned
24259 + * \param vsize height of the image
25525 + // image width, height:
25928 +// Low-Res & high-res preview image height
25937 +// Off-screen preview FBO height (large enough to store the entire
25999 +// the image frame is correctly scaled to the full UI layout height while
26348 + JNIEnv * env, jobject obj, jint width, jint height,
26389 +void calculateUILayoutScaling(int width, int height, bool isLandscape) {
26395 + // Scale the preview FBO's height to the height of view and
26399 + // Note that OpenGL scales a texture to view's width and height automatically.
26400 + // The "width / height" inverts the scaling, so as to maintain the aspect ratio
26404 + / ((float) width / height);
26412 + // Scale the preview FBO's height to the width of view and
26416 + // Note that OpenGL scales a texture to view's width and height automatically.
26417 + // The "height / width" inverts the scaling, so as to maintain the aspect ratio
26421 + / ((float) height / width);
26427 + JNIEnv * env, jobject obj, jint width, jint height, jboolean isLandscapeOrientation)
26430 + calculateUILayoutScaling(width, height, gIsLandscapeOrientation);
26497 + gPreview.SetupGraphics(width, height);
26501 + // Scale the previewFBO so that the viewfinder window fills the layout height