Search in sources :

Example 21 with ImageFloat

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;
}
Also used : ImageHandler(mcib3d.image3d.ImageHandler) ImageShort(mcib3d.image3d.ImageShort) ImageFloat(mcib3d.image3d.ImageFloat)

Aggregations

ImageFloat (mcib3d.image3d.ImageFloat)21 AtomicInteger (java.util.concurrent.atomic.AtomicInteger)3 ImageByte (mcib3d.image3d.ImageByte)3 ImageHandler (mcib3d.image3d.ImageHandler)3 Chrono (mcib3d.utils.Chrono)2 AbstractLog (mcib3d.utils.Logger.AbstractLog)2 ImageStack (ij.ImageStack)1 FloatProcessor (ij.process.FloatProcessor)1 ImageProcessor (ij.process.ImageProcessor)1 Objects3DPopulation (mcib3d.geom.Objects3DPopulation)1 Point3D (mcib3d.geom.Point3D)1 Vector3D (mcib3d.geom.Vector3D)1 ImageInt (mcib3d.image3d.ImageInt)1 ImageShort (mcib3d.image3d.ImageShort)1