imglib2: more efficent alternative to PointSetRegionOfInterest

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

imglib2: more efficent alternative to PointSetRegionOfInterest

Sara_s
Hi everyone.
I'm using a PointSetRegionOfInterest for selecting points above a threshold value in an Img.
The roi is used as a mask so I often need to call the 'contains' method, which is resulted to be very slow
as the roi is composed of a huge number of points. I wonder if there is a more efficent alternative.
What I need is to select all the points above the threshold value and perform some operations only on those points
of the Img, I think that the View class could be a good alternative but I don't know how to actually use it with sparse points.

Thanks a lot,

Sara
Reply | Threaded
Open this post in threaded view
|

Re: imglib2: more efficent alternative to PointSetRegionOfInterest

ctrueden
Hi all,

For the archives: please note that Barry replied to this same question on
the fiji-devel mailing list:
https://groups.google.com/d/msg/fiji-devel/MfeRqCEzUe8/nRI71RiTU_kJ

Regards,
Curtis

P.S. to Sara: Please feel free to follow up on fiji-devel if you have any
further questions!


On Thu, Dec 5, 2013 at 9:11 AM, Sara_s <[hidden email]> wrote:

> Hi everyone.
> I'm using a PointSetRegionOfInterest for selecting points above a threshold
> value in an Img.
> The roi is used as a mask so I often need to call the 'contains' method,
> which is resulted to be very slow
> as the roi is composed of a huge number of points. I wonder if there is a
> more efficent alternative.
> What I need is to select all the points above the threshold value and
> perform some operations only on those points
> of the Img, I think that the View class could be a good alternative but I
> don't know how to actually use it with sparse points.
>
> Thanks a lot,
>
> Sara
>

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