|
Bugzilla – Bug 957 |
3D viewer | Session file doesn't keep records of images filenames |
Last modified: 2014-11-10 18:13:48 CST |
| ⚠ |
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. |
| 3D viewer | Session file doesn't keep records of images filenames | |
|
|
|
||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
Hello, I have a problem with the "Save session" command of 3D viewer. Basically, the .scene file doesn't keep track of the image filename. Reproducing the bug: 1) Create a stack, save it (temp folder), close it, open it again and import it to 3D viewer: close("*"); newImage("Untitled", "8-bit black", 256, 256, 50); setSlice(25); makeOval(59, 70, 121, 115); setForegroundColor(255, 255, 255); run("Fill", "slice"); temp = getDirectory("temp"); saveAs("Tiff", temp + File.separator + "stack.tif"); run("Close"); open(temp + File.separator + "stack.tif"); run("3D Viewer"); call("ij3d.ImageJ3DViewer.add", "stack.tif", "None", "stack.tif", "0", "true", "true", "true", "2", "0"); 2) Save the session and load it again (don't know how to do it in a macro, sorry). => "Cannot load image: Untitled". Here's what the .scene session file looks like (beginning omitted for conciseness): BeginView [...] imgfile = Untitled EndContentInstant EndContent The image filename is indeed untitled. Now, if the value of imgfile is set to the correct path, it works. Various alternatives give the same outcome: - Opening the stack within 3D viewer, than saving the session. - Leaving the stack open after saving it, importing it into 3d viewer, then saving the session. - Working with several stacks or images. Thank you for your help and for the plugin, which otherwise works perfectly. *************** Information about your version of Java: os.arch => amd64 os.name => Windows 7 os.version => 6.1 java.version => 1.6.0_24 java.vendor => Sun Microsystems Inc. java.runtime.name => Java(TM) SE Runtime Environment java.runtime.version => 1.6.0_24-b07 java.vm.name => Java HotSpot(TM) 64-Bit Server VM java.vm.version => 19.1-b02 java.vm.vendor => Sun Microsystems Inc. java.vm.info => mixed mode java.awt.graphicsenv => sun.awt.Win32GraphicsEnvironment java.specification.name => Java Platform API Specification java.specification.version => 1.6 sun.cpu.endian => little sun.desktop => windows file.separator => \ The up-to-date check says: REMIND_LATER Information relevant to JAVA_HOME related problems: JAVA_HOME is set to: C:\Users\NVANDE~1\Desktop\Fiji.app/java/win64/jdk1.6.0_24//jre imagej.dir => C:\Users\NVANDE~1\Desktop\Fiji.app Information about the version of each plugin: Activated update sites: ImageJ: http://update.imagej.net/ (last check:20141110001443) Fiji: http://fiji.sc/update/ (last check:20141110053746) 3D ImageJ Suite: http://sites.imagej.net/Tboudier/ (last check:20141003004536) Morphology: http://sites.imagej.net/Landini/ (last check:20140723105558) Files not up-to-date: 31beac84 (LOCAL_ONLY) 20140523110906 luts/255_red.lut 8f04217e (LOCAL_ONLY) 20140730160025 macros/AutoRun/quick_segmentation.ijm 07b34393 (LOCAL_ONLY) 20140729162244 macros/binarize.ijm ee9202e4 (LOCAL_ONLY) 20140627145944 macros/fusion_centers_of_grid.ijm d4f4e312 (LOCAL_ONLY) 20140218154529 macros/manualModif.ijm 29c2eab0 (LOCAL_ONLY) 20140801181242 macros/overlay_red.ijm a73e44c5 (LOCAL_ONLY) 20140620135929 macros/saveImageFile.ijm 2d99fc1d (LOCAL_ONLY) 20140627161532 macros/terminal_branches_skel.ijm 6964f24e (LOCAL_ONLY) 20140826140950 plugins/ActionBar/Action_Bar$1.class 5f0d9b2f (LOCAL_ONLY) 20140826140950 plugins/ActionBar/Action_Bar$2.class d75b6ac7 (LOCAL_ONLY) 20140826140950 plugins/ActionBar/Action_Bar$3.class 721175f6 (LOCAL_ONLY) 20140826140950 plugins/ActionBar/Action_Bar.class 55edd78e (LOCAL_ONLY) 20140826100114 plugins/ActionBar/Close_AB.class 5f528b8a (LOCAL_ONLY) 20121111202706 plugins/ActionBar/Code_Bar.txt bf42f6f3 (LOCAL_ONLY) 20130111104432 plugins/ActionBar/Magic_Montage.txt da8b6c01 (LOCAL_ONLY) 20121111202630 plugins/ActionBar/_AnimationBar.txt ae0b8ebb (LOCAL_ONLY) 20140127110708 plugins/ActionBar/_Demo.txt 34f09b1f (LOCAL_ONLY) 20121111202630 plugins/ActionBar/_StickyBarDemo1.txt 1496e128 (LOCAL_ONLY) 20121111202630 plugins/ActionBar/_StickyBarDemo2.txt 4c0331a3 (LOCAL_ONLY) 20121111202630 plugins/ActionBar/_ZoomBar.txt b3fcedf1 (LOCAL_ONLY) 20121111202630 plugins/ActionBar/_lookuptables.txt 2e285230 (LOCAL_ONLY) 20140826140544 plugins/ActionBar/createAB.txt a16f6bc4 (LOCAL_ONLY) 20121111202706 plugins/ActionBar/design_action_bar.txt d59b3d17 (LOCAL_ONLY) 20140828102026 plugins/ActionBar/quick_segmentation.txt 5c08b2d7 (LOCAL_ONLY) 20140609112752 plugins/IO/IOSettings-12.jar 0f8f7174 (LOCAL_ONLY) 20140609112752 plugins/IO/Macro_IO_Settings-12.jar 355d395c (LOCAL_ONLY) 20140609112752 plugins/IO/mri-base-lib-150.jar b832d4ce (LOCAL_ONLY) 20140609112752 plugins/IO/mri-comp-lib-150.jar 8c8fb725 (LOCAL_ONLY) 20140609112752 plugins/IO/mri-util-lib-150.jar 93fb435c (LOCAL_ONLY) 20140801145840 plugins/Mean_Shift.class 9ac96a54 (LOCAL_ONLY) 20140522112600 plugins/OrientationJ.txt c8bd9352 (LOCAL_ONLY) 20140520145938 plugins/OrientationJ_.jar 30180f68 (LOCAL_ONLY) 20141110104727 plugins/fourier2.5_.jar