imagej - Adding ROI outlines and labels to a grayscale stack and creating montage -
i have grayscale image stack ~100 slices. in selected slices, have indicated rois using freehand tool , added label measurement.
what generate montage contains selected slices rois , labels indicated overlay. tried make substack, add overlays roi manager , generate montage montage doesn't show overlays. tried 'flatten' command requires rgb image. if convert grayscale image rgb, overlaps rois on top of first image rather placing them on right slice.
any ideas on how can this?
thanks!
the following macro code creates montage of flattened views of every roi in roi manager:
mytitle = gettitle(); (i=0; i<roimanager("count"); i++) { selectwindow(mytitle); roimanager("select", i); run("select none"); run("duplicate...", "title=single-slice"); run("restore selection"); run("flatten"); rename("ready-for-stack"); } run("images stack", "name=stack title=ready-for-stack use"); selectwindow("stack"); run("make montage...", "scale=1 increment=1 border=1");
to try it, paste code script editor (part of fiji/imagej2), choose language > ij1 macro , press run.
Comments
Post a Comment