ROIUtil deprecation

15 views
Skip to first unread message

Davide Heller

unread,
Nov 30, 2015, 4:00:28 AM11/30/15
to Icy imaging
Hi guys, 

I noticed the deprecation of many ROIUtil methods with icy 1.7. Specifically I have been using the following

intensity_readout = ROIUtil.getMaxIntensity(sequence, roi, z, t, c);

Could you show me the preferred way to substitute this line? I saw the static ROIMaxIntensityDescriptor.computeMaxIntensity method but it lacks t, z, c parametrization. 

Thanks a lot,
Davide

Stephane

unread,
Nov 30, 2015, 5:14:39 AM11/30/15
to Icy imaging
Hi Davide,

Indeed now we use the ROIDescriptor interface to get computation information from ROI.
In your case as you discovered you have to use
ROIMaxIntensityDescriptor.computeMeanIntensity(ROI roi, Sequence sequence)
and to specify a specific t, z, c parameter you need to use roi.getSubROI(z, t, c) so you will retrieve a ROI only for the specified Z, T, C position.

Best,

- Stephane
Message has been deleted

Davide Heller

unread,
Nov 30, 2015, 8:18:20 AM11/30/15
to Icy imaging
Hi Stephane, 

thanks for your fast reply. I will apply the changes you suggested. Can you give me an approximate date when the ROIUtil methods will be removed? (looks like the getCopy mechanism in ROI2D.getSubROI is not appreciated by one of my wrapper classes:-)

Cheers, 
Davide

Stephane

unread,
Nov 30, 2015, 9:57:13 AM11/30/15
to Icy imaging
Hi Davide,

We keep the deprecations for a *long* time so don't worry about it if you can't get your getCopy() method working quickly.
Still internally Icy uses a lot the ROI.getCopy() method (ROI statistics calculation and others operations) so you may look if your wrapper does not miss some results here.

Cheers,

- Stephane
Reply all
Reply to author
Forward
0 new messages