Re: Overriding the keyboard presettings - sorry, had wrong topic before
Posted by
Rasband, Wayne (NIH/NIMH) [E] on
Jul 21, 2010; 1:18am
URL: http://imagej.273.s1.nabble.com/Overriding-the-keyboard-shortcut-where-page-up-down-cause-image-to-zoom-in-out-tp3687524p3687529.html
On Jul 20, 2010, at 10:43 AM, Herbert M. Geller wrote:
> To all:
>
> I have found that the file names after "Split Channels" depend upon
> the file type. If I apply this command to an RGB file named "X", it
> then creates three channels: X (red), X (green), X (blue). However, if
> I apply the command to a 16-bit color image named '"Y", the resulting
> files are C1-Y, C2-Y, C3-Y. I have written a macro that uses names, and
> so this has caused some confusion on the part of the users who are not
> that familiar with file types.
> Any way to have the names the same?
Use image numbers instead of names. Here is an example:
run("Split Channels");
selectImage(nImages-2); // selects the red channel
selectImage(nImages-1); // selects the green channel
selectImage(nImages); // selects the blue channel
-wayne