I get a ROI from a image by
aRoi = ips.getRoi; aSizeX = ips.getWidth; aSizeY = ips.getHeight;
Then I create a empty imageplus:
ips_new = ij.IJ.createImage('plate',aSizeX,aSizeY,1,8); ips.setRoi(aRoi); aMask = aRoi.getMask.getFloatArray == 255;
I want to get a 2D mask of the same size with [aSizeX,aSizeY], but I found that the size of aMask is much smaller than the image size.
Is there a way to get the mask with correct size?