Login  Register

Re: How to flatten an ImageCanvas?

Posted by Jerome Mutterer-3 on Nov 24, 2016; 4:13pm
URL: http://imagej.273.s1.nabble.com/How-to-flatten-an-ImageCanvas-tp5017622p5017627.html

Hi Philippe from across Strasbourg.
Maybe look at the screen grabber code :
https://imagej.nih.gov/ij/source/ij/plugin/ScreenGrabber.java

Jerome.

On 24 November 2016 at 16:52, John Hayes <[hidden email]> wrote:

> Can you post a simple example of your code then? Also, if you show your
> ImagePlus in the GUI and use the “Flatten” command from the Image->Overlay
> menu, does that work? Last idea: if your ImagePlus contains a
> stack/hyperstack, you may have to use the ImagePlus::flattenStack command.
>
> John
>
> > On Nov 24, 2016, at 10:45 AM, CARL Philippe (PHA) <
> [hidden email]> wrote:
> >
> > Dear John,
> > I had already tried it, and it wasn't working. Unfortunately...
> > My best regards,
> > Philippe
> >
> > Le Jeudi 24 Novembre 2016 15:33 CET, John Hayes <[hidden email]> a
> écrit:
> >
> >> Hi Philippe,
> >>
> >> I believe the easiest way is to simply call the “flatten” method of the
> corresponding ImagePlus instance:
> >> https://imagej.nih.gov/ij/developer/api/ij/ImagePlus.html#flatten--
> >>
> >> Cheers,
> >> John
> >>
> >>> On Nov 24, 2016, at 9:25 AM, Philippe CARL <[hidden email]>
> wrote:
> >>>
> >>> Dear all,
> >>>
> >>> I have an ImagePlus for which lines (= drawLine(int x1, int y1, int
> x2, int
> >>> y2))are drawn on its ImageCanvas.
> >>>
> >>> How is it possible to make a kind of flatten of these drawn lines in
> order
> >>> to be able to save them on top of the ImagePlus?
> >>>
> >>> I thank you very much in advance for your help.
> >>>
> >>> My best regards,
> >>>
> >>> Philippe
> >>>
> >>>
> >>>
> >>> Philippe CARL
> >>>
> >>> Laboratoire de Biophotonique et Pharmacologie
> >>>
> >>> UMR 7213 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
> >>
> >> --
> >> 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
>



--
Jerome Mutterer
CNRS - Institut de biologie moléculaire des plantes
12, rue du Général Zimmer
67084 Strasbourg Cedex
www.ibmp.cnrs.fr

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