Login  Register

Re: DICOM Roi to Tiff

Posted by Guido Lütke Wöstmann on Dec 14, 2007; 10:27am
URL: http://imagej.273.s1.nabble.com/DICOM-Roi-to-Tiff-tp3697763p3697767.html

Johannes Hermen schrieb:
>>> Why not just open the DICOM to an ImagePlus, then set the ROI to the
>>> ImagePlus and do a dublicate() to the ImagePlus.
>> I can't find a du(p/b)licate()-Method in the ImagePlus-Class!?
>
> sorry, my fault.
>
> imagePlus.getProcessor().dublicate();

Thank you for your quick help, but:

imagePlus.getProcessor().duplicate()

returns an ImageProcessor and saving this one saves the WHOLE Image ;-)
But I can display the resulting Image, so your Code is an Improvement.

>
> -----------------------------------------------------------------
> Johannes Hermen  -  Ingenieur de Recherche
> [hidden email]
> -----------------------------------------------------------------
> CRP Henri Tudor  http://www.santec.tudor.lu
> 29, Avenue John F. Kennedy
> L-1855 Luxembourg
> -----------------------------------------------------------------