Posted by
Michael Schmid on
Sep 10, 2020; 11:01am
URL: http://imagej.273.s1.nabble.com/Understanding-issues-with-the-range-of-Image-Duplicate-tp5023924p5023925.html
Hi Philippe,
for me, the "Duplicate Stack" checkbox works well. If it is unchecked,
the current slice gets duplicated. Note, however, that "Duplicate Stack"
gets checked when you type into the "Range" field. I consider this a
very nice feature: The "Range" field is used only with "Duplicate
Stack", so one can't forget to check "Duplicate Stack" if one wants to
duplicate a range.
If you want to duplicate slice 50, enter "50-50" as a range.
The Duplicate command seems to interpret a single number "50" or "50-"
as "from slice 50 to the end". Also "-50" is interpreted as "50 to end",
not as "start to 50".
That's because decoding the 'Range' field is rather simple code:
https://github.com/imagej/imagej1/blob/master/ij/plugin/Duplicator.java#L477Michael
________________________________________________________________
On 10.09.20 11:09, CARL Philippe (LBP) wrote:
> Dear all,
> Let's say I have a stack picture I would like to duplicate : run("Bat Cochlea Volume"); as example.
> So if in the case I would like to duplicate a range of it and I set "10-20" within the tool range NumericField and all is working as expected.
> Also in this case I don't really understand the meaning of the Duplicate_stack CheckBox given that I will get the same result whether it is activated or not.
> But where I have more understanding issues is when I just put a single number within the range NumericField in which case I get an output I don't really understand.
> As in this case I would rather be expecting to get only the picture within the defined defined slice position.
> Am I missing or misunderstanding something here?
> My best regards,
> Philippe
>
> Philippe CARL
> Laboratoire de Bioimagerie et Pathologies
> UMR 7021 CNRS - Université de Strasbourg
> Faculté de Pharmacie
> 74 route du Rhin
> 67401 ILLKIRCH
> Tel : +33(0)3 68 85 42 89
>
> --
> ImageJ mailing list:
http://imagej.nih.gov/ij/list.html>
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html