this is my first post in this forum.
E. g. after switching to 'Modern Mode', the shortcut 'Control I' shows the metadata that I set with setProperty, but 'Image > Show Info...' does not. Instead first a new window is opened that shows only a small part of the image (the rest is a white area), then the Info window opens but shows only ImageJ's info.
Next example: applying 'Image > Adjust > Auto-Contrast' also opens a new window showing only a small part of the image. The Auto-Contrast is applied only to this new image. 'Image > Adjust > Brightness/Contrast' then indicates a negative brightness value.
Next example: when I zoom in, the indicated coordinates do not match with the location of the cursor (the indicated coordinates are too large). Only when the complete image suites into the window, correact coordinates are shown.
// here the image header is read and analyzed:
// fPath: file path
// sF: sample format
// wi: width
// he: height
// of: offset
// de: depth
// ch: number of channels
// then the image data are read:
if (ch == 1)
var params = "open=" + fPath + " image=[" + sF + "] width=" + wi + " height=" + he + " offset=" + of + " number=" + de + " gap=0 little-endian";
var nb = de*ch;
params = "open=" + fPath + " image=[" + sF + "] width=" + wi + " height=" + he + " offset=" + of + " number=" + nb + " gap=0 little-endian use";
IJ.run("Stack to Hyperstack...", "order=xyczt(default) channels=" + ch + " slices=" + de + " frames=1 display=Composite");
var imp = WindowManager.getCurrentImage();
Why does it work for 'Old Mode' but not for 'Modern Mode'?
What have I to do in order that it works for both modes?
What have I to do in order to construct a reader plugin?
(ImageJ 2.0.0-rc-43/1.51n, Java 1.8.0_131 (64-bit), Windows 7)