Replies: 1 comment 2 replies
-
Could you perhaps link a shorter video please? Also, would sort the ROIs by X position work in your case? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi folks!
I am working on a project to monitor drosophila embryo development over long periods of time.
setup:
problem 1:
Sometimes the ROI indexes change overtime (I think this is due to the fact that they have similar sizes), even though I am not using any type of sort for them. When that happens, my datastreams get mixed and so I would like to avoid this automatic changes in the ROI indexes.
As one solution for this, we improved lighting conditions and everything looks quite stable now. However it would be good to know if there is a way to manually fix ROI indexes/locations in software. The reason being that if other people use this pipeline and are not careful with lighting they are going to get data that is mixed and looks good enough for analysis (the worst kind of data)
problem2:
The embryos hatch at different times, and when the first one out of the 24 hatches and moves out of its original place, that ROI is "lost" and an exception is thrown since that specific ROI index does not exist anymore.
Question:
Is there an easy way to handle this exception? maybe put all the values related to that ROI and index to zeros?
I have addded a sample video to a dropbox folder. This can be accessed here
I hope all of this is clear. Thanks for developing Bonsai and for the support here!!
Update 1:
Seems Problem 1 can be solved by using a conversion to grayscale and then simple thresholding, instead of using HSV thresholding. From what I was able to put together, as the embryos develop and get brighter in their center, the HSV threshold method was giving out dark spots in the middle which was significantly changing the contours detected by "find contours" and therefore giving out ROI changes...
Update 2:
Seems I was not correct with Update 1. The problem is not as pronounced when I use simple grayscale and thresholding, but it is still there... here is a small gif showing what is going on:
Beta Was this translation helpful? Give feedback.
All reactions