use of mcib3d.image3d.ImageHandler in project mcib3d-core by mcib3d.
the class Object3DLabel method drawIntersection.
/**
* @param mask
* @param other
* @param red
* @param green
* @param blue
*/
@Deprecated
public void drawIntersection(ImageStack mask, Object3DLabel other, int red, int green, int blue) {
ImageProcessor tmp;
ImageHandler otherSeg = other.getLabelImage();
int otherValue = other.getValue();
Color col = new Color(red, green, blue);
for (int z = zmin; z <= zmax; z++) {
tmp = mask.getProcessor(z + 1);
tmp.setColor(col);
for (int x = xmin; x <= xmax; x++) {
for (int y = ymin; y <= ymax; y++) {
if ((labelImage.getPixel(x, y, z) == value) && (otherSeg.getPixel(x, y, z) == otherValue)) {
tmp.drawPixel(x, y);
}
}
}
}
}
Aggregations