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 |
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#L477 Michael ________________________________________________________________ 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 |
Hi Michael,
How are you doing? The way I would rather expect things to work is the following as inputs within the range NumericField: - "50" to only select the picture of the slice 50 - "-50" to select the pictures from the begining up to the slice 50 - "50-" to select the pictures from the slice 50 up to the end Also if I choose my slice position to 50 and launch Image>Duplicate... (through Shift + D) I would rather expect that it gives me 50 as default within the NumericField and thus duplicates me only this picture in the case I hit the Enter button right away (I'm quite a keyboard freak). And that it gets me the whole range as default (i.e. 1-114) in the case I the first slice is currently selected. At last I think that the Duplicate_stack CheckBoxis kind of "overkilling" but given compatibilities with older codes I know I can forget this. Neverthless I fully agree the code is working as you described it. Kindest regards, Philippe ----- Mail original ----- De: "Michael Schmid" <[hidden email]> À: "imagej" <[hidden email]> Envoyé: Jeudi 10 Septembre 2020 13:01:57 Objet: Re: Understanding issues with the range of Image>Duplicate... 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#L477 Michael ________________________________________________________________ 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 -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Free forum by Nabble | Edit this page |