suite2p icon indicating copy to clipboard operation
suite2p copied to clipboard

big changes in intensity range after bilinear interpolation in non-rigid registration

Open pwang724 opened this issue 3 years ago • 1 comments

After non-rigid registration I noticed that the pixel intensity ranges are dramatically different compared to the raw image. I took the raw fluorescence by multiplying the binary roi mask (unweighted) with either the raw tifs or with registered tifs outputted by suite2p after non-rigid registration (reg_tif = True). I found that the fluorescence measurements significantly differed between the two. My expectation is that intensity values should be more or less halved, as per tiff_to_binary.py, but they are instead higher. For example,

This is the fluorescence from raw images:

image

This is the fluorescence from non-rigid registered tifs:

image

Moreover, a significant amount of pixel intensities are negative.

Is this some odd behavior from bilinear interpolation? Is this reproducible in your hands?

pwang724 avatar Dec 01 '21 07:12 pwang724

could this be when the tiff is saved it is a different format? have you checked the fluorescence values from stat?

carsen-stringer avatar Jun 01 '22 10:06 carsen-stringer