public int[] getHistogram() { if (mask!=null) return getHistogram(mask); int[] histogram = new int[256]; for (int y=roiY; y<(roiY+roiHeight); y++) { int i = y * width + roiX; for (int x=roiX; x<(roiX+roiWidth); x++) { int v = pixels[i++] & 0xff; histogram[v]++; } } return histogram; }
public int[] getHistogram() { if (mask!=null) return getHistogram(mask); int[] histogram = new int[256]; for (int y=roiY; y<(roiY+roiHeight); y++) { int i = y * width + roiX; for (int x=roiX; x<(roiX+roiWidth); x++) { int v = pixels[i++] & 0xff; histogram[v]++; } } return histogram; }
final int[] histogram = bp.getHistogram(); // Get histogram from the ROI
final int[] histogram = bp.getHistogram(); // Get histogram from the ROI
histogram = bp.getHistogram(); setup(ip, cal); double minT = ip.getMinThreshold();
int[] histogram = ip.getHistogram(); int arraySize = width*height - histogram[0] -histogram[255]; int[] coordinates = new int[arraySize]; //from pixel coordinates, low bits x, high bits y
histogram = bp.getHistogram(); setup(ip, cal); double minT = ip.getMinThreshold();
int[] histogram = ip.getHistogram(); int arraySize = width*height - histogram[0] -histogram[255]; int[] coordinates = new int[arraySize]; //from pixel coordinates, low bits x, high bits y
int[] histogram = ip.getHistogram(); int arraySize = width*height - histogram[0] -histogram[255]; int[] coordinates = new int[arraySize]; //from pixel coordinates, low bits x, high bits y