diff --git a/README.md b/README.md index 9574dfc..920b4d0 100644 --- a/README.md +++ b/README.md @@ -222,7 +222,6 @@ imageName = Ext.getName("image", imageIds[0]); print(imageName); ``` - ### Creating projects, datasets and tags Projects can be created with *Ext.createProject*: @@ -273,6 +272,14 @@ Pixel intensities can be retrieved from images: imageplusID = Ext.getImage(imageIds[0]); ``` +Images can also be cropped on import by specifying the ROI as a String of the form: +"x:xstart:xend,y:ystart:yend,c:cstart:cend,z:zstart:zend,t:tstart:tend". +For example, cropping a 512x512x3x100x5 image starting at (0,0,0,50,3) and ending at (100,100,2,99,3) can be done with: + +``` +imageplusID = Ext.getImage(imageIds[0], "x:0:100,y::100,z:50:,t:3"); +``` + ROIs from OMERO can also be added to the ROI manager or to the Overlay of the current image (boolean toOverlay). ROIs composed of multiple shapes (eg 3D/4D) will share the same values in the "ROI" and "ROI_ID" properties in ImageJ. These can be optionally changed with the "property" parameter: local indices will be in "property" while OMERO IDs will be