Home | History | Annotate | Download | only in MagickCore

Lines Matching defs:centroid

1379     centroid[MaxPixelChannels+1];
1395 (void) memset(centroid,0,sizeof(centroid));
1417 Compute center of mass (centroid).
1448 Compute center of mass (centroid).
1453 centroid[channel].x=(double) image->columns/2.0;
1454 centroid[channel].y=(double) image->rows/2.0;
1458 centroid[channel].x=M10[channel]/M00[channel];
1459 centroid[channel].y=M01[channel]/M00[channel];
1488 M11[channel]+=(x-centroid[channel].x)*(y-centroid[channel].y)*
1490 M11[MaxPixelChannels]+=(x-centroid[channel].x)*(y-centroid[channel].y)*
1492 M20[channel]+=(x-centroid[channel].x)*(x-centroid[channel].x)*
1494 M20[MaxPixelChannels]+=(x-centroid[channel].x)*(x-centroid[channel].x)*
1496 M02[channel]+=(y-centroid[channel].y)*(y-centroid[channel].y)*
1498 M02[MaxPixelChannels]+=(y-centroid[channel].y)*(y-centroid[channel].y)*
1500 M21[channel]+=(x-centroid[channel].x)*(x-centroid[channel].x)*
1501 (y-centroid[channel].y)*QuantumScale*p[i];
1502 M21[MaxPixelChannels]+=(x-centroid[channel].x)*(x-centroid[channel].x)*
1503 (y-centroid[channel].y)*QuantumScale*p[i];
1504 M12[channel]+=(x-centroid[channel].x)*(y-centroid[channel].y)*
1505 (y-centroid[channel].y)*QuantumScale*p[i];
1506 M12[MaxPixelChannels]+=(x-centroid[channel].x)*(y-centroid[channel].y)*
1507 (y-centroid[channel].y)*QuantumScale*p[i];
1508 M22[channel]+=(x-centroid[channel].x)*(x-centroid[channel].x)*
1509 (y-centroid[channel].y)*(y-centroid[channel].y)*QuantumScale*p[i];
1510 M22[MaxPixelChannels]+=(x-centroid[channel].x)*(x-centroid[channel].x)*
1511 (y-centroid[channel].y)*(y-centroid[channel].y)*QuantumScale*p[i];
1512 M30[channel]+=(x-centroid[channel].x)*(x-centroid[channel].x)*
1513 (x-centroid[channel].x)*QuantumScale*p[i];
1514 M30[MaxPixelChannels]+=(x-centroid[channel].x)*(x-centroid[channel].x)*
1515 (x-centroid[channel].x)*QuantumScale*p[i];
1516 M03[channel]+=(y-centroid[channel].y)*(y-centroid[channel].y)*
1517 (y-centroid[channel].y)*QuantumScale*p[i];
1518 M03[MaxPixelChannels]+=(y-centroid[channel].y)*(y-centroid[channel].y)*
1519 (y-centroid[channel].y)*QuantumScale*p[i];
1540 channel_moments[channel].centroid=centroid[channel];