Lines Matching refs:object

141     *object;  in ConnectedComponentsImage()  local
215 object=(CCObjectInfo *) AcquireQuantumMemory(MaxColormapSize,sizeof(*object)); in ConnectedComponentsImage()
216 if (object == (CCObjectInfo *) NULL) in ConnectedComponentsImage()
222 (void) memset(object,0,MaxColormapSize*sizeof(*object)); in ConnectedComponentsImage()
225 object[i].id=i; in ConnectedComponentsImage()
226 object[i].bounding_box.x=(ssize_t) image->columns; in ConnectedComponentsImage()
227 object[i].bounding_box.y=(ssize_t) image->rows; in ConnectedComponentsImage()
228 GetPixelInfo(image,&object[i].color); in ConnectedComponentsImage()
390 if (x < object[id].bounding_box.x) in ConnectedComponentsImage()
391 object[id].bounding_box.x=x; in ConnectedComponentsImage()
392 if (x >= (ssize_t) object[id].bounding_box.width) in ConnectedComponentsImage()
393 object[id].bounding_box.width=(size_t) x; in ConnectedComponentsImage()
394 if (y < object[id].bounding_box.y) in ConnectedComponentsImage()
395 object[id].bounding_box.y=y; in ConnectedComponentsImage()
396 if (y >= (ssize_t) object[id].bounding_box.height) in ConnectedComponentsImage()
397 object[id].bounding_box.height=(size_t) y; in ConnectedComponentsImage()
398 object[id].color.red+=QuantumScale*GetPixelRed(image,p); in ConnectedComponentsImage()
399 object[id].color.green+=QuantumScale*GetPixelGreen(image,p); in ConnectedComponentsImage()
400 object[id].color.blue+=QuantumScale*GetPixelBlue(image,p); in ConnectedComponentsImage()
402 object[id].color.alpha+=QuantumScale*GetPixelAlpha(image,p); in ConnectedComponentsImage()
404 object[id].color.black+=QuantumScale*GetPixelBlack(image,p); in ConnectedComponentsImage()
405 object[id].centroid.x+=x; in ConnectedComponentsImage()
406 object[id].centroid.y+=y; in ConnectedComponentsImage()
407 object[id].area++; in ConnectedComponentsImage()
436 object=(CCObjectInfo *) RelinquishMagickMemory(object); in ConnectedComponentsImage()
443 object[i].bounding_box.width-=(object[i].bounding_box.x-1); in ConnectedComponentsImage()
444 object[i].bounding_box.height-=(object[i].bounding_box.y-1); in ConnectedComponentsImage()
445 object[i].color.red=QuantumRange*(object[i].color.red/object[i].area); in ConnectedComponentsImage()
446 object[i].color.green=QuantumRange*(object[i].color.green/object[i].area); in ConnectedComponentsImage()
447 object[i].color.blue=QuantumRange*(object[i].color.blue/object[i].area); in ConnectedComponentsImage()
449 object[i].color.alpha=QuantumRange*(object[i].color.alpha/object[i].area); in ConnectedComponentsImage()
451 object[i].color.black=QuantumRange*(object[i].color.black/object[i].area); in ConnectedComponentsImage()
452 object[i].centroid.x=object[i].centroid.x/object[i].area; in ConnectedComponentsImage()
453 object[i].centroid.y=object[i].centroid.y/object[i].area; in ConnectedComponentsImage()
481 if ((double) object[i].area >= area_threshold) in ConnectedComponentsImage()
484 object[j].census=0; in ConnectedComponentsImage()
485 bounding_box=object[i].bounding_box; in ConnectedComponentsImage()
507 object[j].census++; in ConnectedComponentsImage()
514 if (census < object[j].census) in ConnectedComponentsImage()
516 census=object[j].census; in ConnectedComponentsImage()
519 object[id].area+=object[i].area; in ConnectedComponentsImage()
557 component_image->colormap[i]=object[i].color; in ConnectedComponentsImage()
566 object[i].census=0; in ConnectedComponentsImage()
585 object[first].census++; in ConnectedComponentsImage()
589 if (object[i].census != 0) in ConnectedComponentsImage()
638 object[i].bounding_box.width=0; in ConnectedComponentsImage()
639 object[i].bounding_box.height=0; in ConnectedComponentsImage()
640 object[i].bounding_box.x=(ssize_t) component_image->columns; in ConnectedComponentsImage()
641 object[i].bounding_box.y=(ssize_t) component_image->rows; in ConnectedComponentsImage()
642 object[i].centroid.x=0; in ConnectedComponentsImage()
643 object[i].centroid.y=0; in ConnectedComponentsImage()
644 object[i].area=0; in ConnectedComponentsImage()
670 if (x < object[id].bounding_box.x) in ConnectedComponentsImage()
671 object[id].bounding_box.x=x; in ConnectedComponentsImage()
672 if (x > (ssize_t) object[id].bounding_box.width) in ConnectedComponentsImage()
673 object[id].bounding_box.width=(size_t) x; in ConnectedComponentsImage()
674 if (y < object[id].bounding_box.y) in ConnectedComponentsImage()
675 object[id].bounding_box.y=y; in ConnectedComponentsImage()
676 if (y > (ssize_t) object[id].bounding_box.height) in ConnectedComponentsImage()
677 object[id].bounding_box.height=(size_t) y; in ConnectedComponentsImage()
678 object[id].centroid.x+=x; in ConnectedComponentsImage()
679 object[id].centroid.y+=y; in ConnectedComponentsImage()
680 object[id].area++; in ConnectedComponentsImage()
686 object[i].bounding_box.width-=(object[i].bounding_box.x-1); in ConnectedComponentsImage()
687 object[i].bounding_box.height-=(object[i].bounding_box.y-1); in ConnectedComponentsImage()
688 object[i].centroid.x=object[i].centroid.x/object[i].area; in ConnectedComponentsImage()
689 object[i].centroid.y=object[i].centroid.y/object[i].area; in ConnectedComponentsImage()
692 qsort((void *) object,component_image->colors,sizeof(*object), in ConnectedComponentsImage()
705 if (object[i].area <= area_threshold) in ConnectedComponentsImage()
707 GetColorTuple(&object[i].color,MagickFalse,mean_color); in ConnectedComponentsImage()
710 object[i].id,(double) object[i].bounding_box.width,(double) in ConnectedComponentsImage()
711 object[i].bounding_box.height,(double) object[i].bounding_box.x, in ConnectedComponentsImage()
712 (double) object[i].bounding_box.y,object[i].centroid.x, in ConnectedComponentsImage()
713 object[i].centroid.y,(double) object[i].area,mean_color); in ConnectedComponentsImage()
718 object=(CCObjectInfo *) RelinquishMagickMemory(object); in ConnectedComponentsImage()
720 *objects=object; in ConnectedComponentsImage()