Duplicate vs Reduce_Dimensionality

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Duplicate vs Reduce_Dimensionality

Philippe CARL
Dear all,

Please consider the following macro :

                run("Mitosis (26MB, 5D stack)");

                run("Duplicate...", "duplicate channels=2 slices=3
frames=25");

                saveAs("Tiff", folder + "Duplicate.tif");

                close();

                Stack.setPosition(2, 3, 25);

                run("Reduce Dimensionality...", "keep");

                saveAs("Tiff", folder + "Reduce.tif");

                close();

Which is basically extracting the picture at the position "channels=2
slices=3 frames=25" from the hyperstack picture "Mitosis” by using either
the "Duplicate..." or "Reduce Dimensionality..." tools and then saving the
resulting picture on the HD.

When I check the file sizes on disk they are slightly different and looking
more into the details, I see that the meta data of the Duplicate picture is
more complete (i.e. still containing this text: "Drosophila S2 cell
expressing GFP-Aurora B and mCherry-tubulin fusion protein undergoing
mitosis. Courtesy of Eric Griffis." which is gone in the Reduce picture).

Is there a reason for this difference?

Are there other differences between these 2 tools?

What is the recommended tool to use and why?

I thank you very much in advance for your lightings.

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 41 84


--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: Duplicate vs Reduce_Dimensionality

Wayne Rasband-2
> On Apr 6, 2018, at 4:34 AM, Philippe CARL <[hidden email]> wrote:
>
> Dear all,
>
> Please consider the following macro :
>
>                run("Mitosis (26MB, 5D stack)");
>
>                run("Duplicate...", "duplicate channels=2 slices=3
> frames=25");
>
>                saveAs("Tiff", folder + "Duplicate.tif");
>
>                close();
>
>                Stack.setPosition(2, 3, 25);
>
>                run("Reduce Dimensionality...", "keep");
>
>                saveAs("Tiff", folder + "Reduce.tif");
>
>                close();
>
> Which is basically extracting the picture at the position "channels=2
> slices=3 frames=25" from the hyperstack picture "Mitosis” by using either
> the "Duplicate..." or "Reduce Dimensionality..." tools and then saving the
> resulting picture on the HD.
>
> When I check the file sizes on disk they are slightly different and looking
> more into the details, I see that the meta data of the Duplicate picture is
> more complete (i.e. still containing this text: "Drosophila S2 cell
> expressing GFP-Aurora B and mCherry-tubulin fusion protein undergoing
> mitosis. Courtesy of Eric Griffis." which is gone in the Reduce picture).
>
> Is there a reason for this difference?

The difference is caused by a bug that is fixed in the latest ImageJ daily build (1.52a35).

-wayne


> Are there other differences between these 2 tools?
>
> What is the recommended tool to use and why?
>
> I thank you very much in advance for your lightings.
>
> My best regards,
>
> Philippe
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html