NOTICE! This is a static HTML version of a legacy Fiji BugZilla bug.

The Fiji project now uses GitHub Issues for issue tracking.

Please file all new issues there.

Bug 1054 - roiManager("update") does not work on OSX
roiManager("update") does not work on OSX
Status: RESOLVED WONTFIX
Product: Fiji
Classification: Unclassified
Component: ImageJ2
unspecified
Macintosh Mac OS
: P3 enhancement
Assigned To: Wayne Rasband
Depends on:
Blocks:
 
Reported: 2015-04-13 00:56 CDT by KASAI Masatoshi
Modified: 2015-04-15 11:20 CDT
3 users (show)

See Also:

Description KASAI Masatoshi 2015-04-13 00:56:11 CDT
When I selected a ROI on a list of  ROIs of the roiManager and draw new one to update a roi shape and position,  the update button of roiManager does not respond. This update function  worked in Fiji for Windows-64 bit  , but  does not work in OSX version or no-JREs version running in OSX.


Information about your version of Java:

os.arch => x86_64
os.name => Mac OS X
os.version => 10.9.5
java.version => 1.6.0_65
java.vendor => Apple Inc.
java.runtime.name => Java(TM) SE Runtime Environment
java.runtime.version => 1.6.0_65-b14-462-11M4609
java.vm.name => Java HotSpot(TM) 64-Bit Server VM
java.vm.version => 20.65-b04-462
java.vm.vendor => Apple Inc.
java.vm.info => mixed mode
java.awt.graphicsenv => apple.awt.CGraphicsEnvironment
java.specification.name => Java Platform API Specification
java.specification.version => 1.6
sun.cpu.endian => little
sun.desktop => null
file.separator => /

The up-to-date check says: REMIND_LATER

Information relevant to JAVA_HOME related problems:

JAVA_HOME is set to: null
imagej.dir => /Applications/Fiji_OSX.app

Information about the version of each plugin:

Activated update sites:
ImageJ: http://update.imagej.net/ (last check:20150328135348)
Fiji: http://fiji.sc/update/ (last check:20150408231651)

Files not up-to-date:
1ad3be0d (LOCAL_ONLY) 20141223080641 jars/jpedalSTD.jar
09003d5e (LOCAL_ONLY) 20150413093037 macros/StartupMacros.txt
101bbbef (LOCAL_ONLY) 20140701225953 plugins/ijpb_plugins-1.0.0.jar
Comment 1 Curtis Rueden 2015-04-13 12:56:40 CDT
I cannot reproduce on my OS X 10.10.2 system:

- Open Blobs (Shift+B)
- Draw a rectangular ROI
- Press T to add it to ROI Manager
- Draw other rectangular ROI
- Press T to add it to ROI Manager
- Select one of the ROIs in the Manager by clicking it
- Draw one of the ROI's grippers to resize it
- Click the Update button in the ROI manager to confirm the changes
- Click the other ROI in the Manager; watch it change
- Click the first ROI again; confirm that the ROI was updated

Can you post a list of steps that illustrate the issue for you? Or does the above recipe not work as described for you?
Comment 2 KASAI Masatoshi 2015-04-13 19:33:55 CDT
Thank you for the responding.

I want use freehand selection and renew selected ROI. The recipe is below.

- Open Blobs (Shift+B)
- Draw a Freehand ROI
- Press T to add it to ROI Manager
- Draw other Freehand ROIs
- Press T to add them to ROI Manager
- Select one of the ROIs in the Manager by clicking it
- Draw a new ROI (Any selection type)
- Click the Update button in the ROI manager to change
-> This does not work.

I thought it was not necessary to press 'update' for reshaping (resizing) selected ROI or just moving ROI and update it. In your example, ROI information appears to be automatically updated just after resizing.

Thanks,
Masatoshi
Comment 3 Wayne Rasband 2015-04-13 20:51:29 CDT
The "Update" command does work on OS X and it is required to update a selection after it has been moved or resized. What you can't do anymore, on all platforms, is use "Update" to replace one selection with one of a different type. For example, you can't replace a rectangular selection with a line selection. This is because of this change made in ImageJ 1.49g:

   * Thanks to Philippe Carl, an ROI selected in the ROI 
   Manager is deselected when it is removed from the image.

Why do you need to replace a selection in the ROI Manager with a different type of selection?
Comment 4 Wayne Rasband 2015-04-13 21:11:34 CDT
I was wrong. You can use "Update" to replace a selection in the ROI Manager with another selection as long as the alt or shift key is down when you start to create the new selection. Holding down alt or shift causes the previous selection's entry in the ROI Manager to not be de-selected.
Comment 5 KASAI Masatoshi 2015-04-13 21:36:45 CDT
Thanks. I tested by using mautimeasure command after reshaping or removing a ROI without applying 'Update' command. I thought 'Update' did not need in that case because the results of multimeasure was changed. 

I analyzed several time series images that were take from almost same site. I wrote ROIs by Freehand selection. I wanted to match the number of each ROI for all images. Shapes and position of ROIs in each series of image were slightly changed thus I wanted to adjust them. In Fiji running on Windows 7, I "can" do this, but I wanted to use Mac if possible.
(For selection type, I didn't think about "line". Sorry.)
Comment 6 KASAI Masatoshi 2015-04-13 21:38:26 CDT
I didn't notice the new comment.

Thanks, it is tricky but I can use update using optoin(alt) key!
Comment 7 Curtis Rueden 2015-04-15 11:20:50 CDT
Great, I am closing the issue since there is an existing workflow that meets your needs!