Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Function for average spot intensity #258

Closed
jbogomolovas2 opened this issue May 5, 2023 · 4 comments · Fixed by #286
Closed

Function for average spot intensity #258

jbogomolovas2 opened this issue May 5, 2023 · 4 comments · Fixed by #286

Comments

@jbogomolovas2
Copy link

First of all: great tool! I am using it to track and extract ratiometric intensity data from motile cells. I have two channels: 32bit masks from Cellpose and 32bit ratiometric intensities to measure. The issue is that i set my ratiometric channel background to NaN and when Trackmate calculates average intensity it ignores spots with NaN values, yet for median (as NaNs are rare) it is not problem. Would it be possible to change the average intensity calculation function similar to fiji one, that it would ignore Nans in ROIs, when calculating, not otherwise: ignore ROIs(aka spots) with Nan values

@tinevez
Copy link
Member

tinevez commented Jul 3, 2023

Hello @jbogomolovas2 and thank you for your kind words.
I am sorry I am not sure I properly get what should be changed. Could you re-explain it to me?

@jbogomolovas2
Copy link
Author

Thank you for your response @tinevez! So basically when doing statistics on spots from 32bit images, is it possible to ignore NAN pixels and work only with integers. I included the sketch explaining the issue.
IMG_3621

@tinevez
Copy link
Member

tinevez commented Jul 16, 2023

It's ready to be ported in the next TrackMate release.
Just so that you know it's one of the best issue message I got :)

@jbogomolovas2
Copy link
Author

Dear @tinevez,

sorry to pester you again. After measuring cells manually I circled back to Trackmate. I am using the Trackmate v 7.11 and it seems it is still picking NaNs with 32bit images in spot intensity statistics. Is there any way around that. I included screenshot to illustrate ongoing problem. Black pixels is NAN, colored are >=0.
Screenshot 2024-01-24 at 9 24 38 AM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants