mahmoodlab / CLAM

Data-efficient and weakly supervised computational pathology on whole slide images - Nature Biomedical Engineering
http://clam.mahmoodlab.org
GNU General Public License v3.0
1.02k stars 340 forks source link

How to maintain reference patch size of 256x256 #159

Closed Tejussurendran closed 5 months ago

Tejussurendran commented 1 year ago

Hello,

I have an image that is too big to process without downsampling, however when I change the patch_level it appears that the reference patch size also changes, thus changing the coordinates of the segmentation. I was wondering if there was a way to downsample the image while maintaining the original patch size of 256x256 for the coordinate locations.

Thank you

Tejussurendran commented 1 year ago

Or is there a way to downsample the entire image before segmenting it and trying to extract coordinates?

fedshyvana commented 5 months ago

hey sorry i missed this, but the coordinates are always with respect to the original magnification no matter which level you use for segmenting or patching.