Classifier Cropping Issue

Moderators: afraser, mbray, David Logan, Anne Carpenter

Classifier Cropping Issue

Postby asa » Mon Jun 21, 2010 2:57 pm

Hi,

When using CellProfiler Analyst 2.0, I noticed the classifier doesn't properly return my objects when I try to fetch them. Instead, the tiles are centered on x, y coordinates that are shifted away from my objects. I think the problem is that my original image is un-cropped, but I identify objects on a cropped version of the image (I cropped using a rectangle with coordinates and cropped from the edges, removing empty edges afterward). Since the classifier takes tiles from the original image, I think the x and y coordinates of the fetched objects are relative to the original un-cropped image rather than the cropped image.

If I crop the image before using CellProfiler or CellProfiler Analyst, the problem goes away and the tiles that are returned are the objects I'm looking for. Although I could save cropped versions of all my images manually, I figured this could be an easy fix to a possible bug in CellProfiler Analyst by maybe doing some conversion from relative to absolute coordinates in Classifier. Thanks and I hope this helps!

Best,
Asa
asa
 
Posts: 2
Joined: Mon Jun 21, 2010 2:18 pm

Re: Classifier Cropping Issue

Postby thouis » Wed Jun 23, 2010 1:25 pm

If you know the offsets, you might be able to put it directly into your properties file. For instance, if you trim 5 pixels on each edge, this should work:

cell_x_loc = Nuclei_Location_CenterX + 5
cell_y_loc = Nuclei_Location_CenterY + 5

Let us know if that doesn't solve the problem.
Thouis (Ray) Jones, Imaging Platform, Broad Institute
thouis
 
Posts: 99
Joined: Tue Jan 02, 2007 5:11 pm
Location: Broad Institute

Re: Classifier Cropping Issue

Postby asa » Fri Jun 25, 2010 9:18 am

That solved the problem! Thanks so much.
Asa
asa
 
Posts: 2
Joined: Mon Jun 21, 2010 2:18 pm

Re: Classifier Cropping Issue

Postby David Logan » Fri Jun 25, 2010 11:02 am

This has been reported in our issue tracking software (IMG-1013), and we will report back here when a more automated fix has been implemented.
Thanks,
David
David Logan
Computational Biologist/Image Assay Developer
Imaging Platform, Broad Institute of MIT and Harvard
Carpenter Lab
David Logan
 
Posts: 255
Joined: Wed Jul 18, 2007 8:39 am
Location: Broad Institute, Cambridge, MA


Return to CellProfiler Analyst Bugs

Who is online

Users browsing this forum: No registered users and 1 guest

cron