use of mcib3d.image3d.ImageFloat in project mcib3d-core by mcib3d.
the class Objects3DPopulation method drawPopulation.
public ImageHandler drawPopulation() {
// Will return 32-bit image if max value of objects > 65,535
ImageHandler drawImage = null;
int[] sizes = this.getMaxSizeAllObjects();
if (getMaxValueObjects() > 65535)
drawImage = new ImageFloat("population", sizes[0] + 1, sizes[1] + 1, sizes[2] + 1);
else
drawImage = new ImageShort("population", sizes[0] + 1, sizes[1] + 1, sizes[2] + 1);
drawPopulation(drawImage);
return drawImage;
}
Aggregations