io.github.mianalysis.mia.process.voxel.SphereSolid Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mia-algorithms Show documentation
Show all versions of mia-algorithms Show documentation
ModularImageAnalysis (MIA) is an ImageJ plugin which provides a modular framework for assembling image and object analysis workflows. Detected objects can be transformed, filtered, measured and related. Analysis workflows are batch-enabled by default, allowing easy processing of high-content datasets.
package io.github.mianalysis.mia.process.voxel;
public class SphereSolid extends AbstractSphere {
public SphereSolid(int r) {
for (int xx = -r; xx < r; xx++) {
for (int yy = -r; yy < r; yy++) {
for (int zz= -r; zz < r; zz++) {
if (inSphere(xx,yy,zz,r)) {
x.add(xx);
y.add(yy);
z.add(zz);
}
}
}
}
}
}