Neural-Systems-at-UIO / nutil

https://nutil.readthedocs.io/en/latest/
GNU General Public License v3.0
12 stars 5 forks source link

Problem about "count of pixels 0" from process output #318

Closed soomin2189 closed 3 months ago

soomin2189 commented 3 months ago

Hi, I am currently using QUINT workflow for quantifying stained cells from a mouse brain. I've been trying to run Nutil with my data, however, I kept getting a message that 'Count of pixels: 0'. I'm not sure why this error happens even though I turned off the object splitting and set the python path correctly. Another weird thing is that the software did run but did not count the cells.

001 002

These are the screenshots from my Nutil software. Thank you!

sharoncy commented 3 months ago

Hi @soomin2189. It looks like Nutil has run as it should, but has failed to detect any objects. In the Nutil software, the objects-of-interest are specified using an RBG colour-code, so the fact it isn't finding any suggests the colour specified in Nutil (the RGB colour code) isn't found in your segmentations. A common pitfall here is that the segmentations have been generated with the ilastik software, but they haven't been colourised using the Glasbey LUT (https://quint-workflow.readthedocs.io/en/latest/Ilastik.html#applying-the-glasbey-lookup-table). If this is the case here, apply the Glasbey LUT using Fiji and then try again. If you've already done this step, please check that the RGB code specified in Nutil and in your segmentations match exactly. If you still have problems, I'd be happy to troubleshoot for you (send me an example dataset with all the required input files to s.c.yates@medisin.uio.no). Best regards, Sharon

soomin2189 commented 3 months ago

Hi Sharon,

Thank you for the advice! I solved the issue and I think the issue happened because I didn't choose the right RGB colour code when I tried to run Nutil. After converting my images using Glasbey LUT and assigning the exact object colour, it worked!

Thank you for helping me again!

Best, Soomin

2024년 7월 29일 (월) 오후 8:41, Sharon Yates @.***>님이 작성:

Hi @soomin2189 https://github.com/soomin2189. It looks like Nutil has run as it should, but has failed to detect any objects. In the Nutil software, the objects-of-interest are specified using an RBG colour-code, so the fact it isn't finding any suggests the colour specified in Nutil (the RGB colour code) isn't found in your segmentations. A common pitfall here is that the segmentations have been generated with the ilastik software, but they haven't been colourised using the Glasbey LUT ( https://quint-workflow.readthedocs.io/en/latest/Ilastik.html#applying-the-glasbey-lookup-table). If this is the case here, apply the Glasbey LUT using Fiji and then try again. If you've already done this step, please check that the RGB code specified in Nutil and in your segmentations match exactly. If you still have problems, I'd be happy to troubleshoot for you (send me an example dataset with all the required input files to @.***). Best regards, Sharon

— Reply to this email directly, view it on GitHub https://github.com/Neural-Systems-at-UIO/nutil/issues/318#issuecomment-2255706460, or unsubscribe https://github.com/notifications/unsubscribe-auth/BKDC4BXEEZFMHVQSHAF4QSDZOYS5BAVCNFSM6AAAAABLN6YRLKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENJVG4YDMNBWGA . You are receiving this because you were mentioned.Message ID: @.***>

sharoncy commented 3 months ago

Issue solved, closed 06.08.24