Squiz Matrix  4.12.2
 All Data Structures Namespaces Functions Variables Pages
ColorStatistics.java
1 package ij.process;
2 import ij.measure.Calibration;
3 
5 public class ColorStatistics extends ImageStatistics {
6 
11  this(ip, AREA+MEAN+MODE+MIN_MAX, null);
12  }
13 
17  public ColorStatistics(ImageProcessor ip, int mOptions, Calibration cal) {
19  histogram = cp.getHistogram();
20  setup(ip, cal);
21  getRawStatistics(0,255);
22  if ((mOptions&MIN_MAX)!=0)
23  getRawMinAndMax(0,255);
24  if ((mOptions&ELLIPSE)!=0)
25  fitEllipse(ip);
26  else if ((mOptions&CENTROID)!=0)
27  getCentroid(ip);
28  }
29 
30 }