Open marcoistasy opened 4 years ago
The direct cause would be that the input image to entropy is empty. There might be defective pixels of extreme high intensity that dominate the ROI for entropy calculation so that the ROI window is of size 1. I suggest that you check if this is the case, for some/all frames of your video. For example, you can plot a frame from _frame_all.mat or _reg.mat and if you see almost a blue figure, or most of the neurons are of blue-ish color, then this is the case.
@JinghaoLu thank you for this! how would I fix that? Would I need to create a larger window size?
@JinghaoLu thank you for this! how would I fix that? Would I need to create a larger window size?
also, you are correct - all the frames are blue.
@marcoistasy So it means at some pixel(s), you have a constantly high value. Simple solution would be to find that pixel(s) and set it with its neighbor's value. You probably need to do it in every frame, and once you see enough variance in the figure, you can rerun the program without overwriting the preprocessed data.
@JinghaoLu hmm sorry I still don't quite understand this. Would I be able to share some of the frames with you and you can let me know how I might proceed? I have also tried to change the downsampling factors and will see how it results.
@marcoistasy Sure please send the file or link to min1pipe2018@gmail.com. Thanks!
Ok so the problem is the right and bottom pixel strips in the FOV are most likely software created artifacts. Did you motion correct the video using mosaic before feeding it into MIN1PIPE? If so please crop the effective FOV after doing that. Or you can feed the raw video into MIN1PIPE and use the onboard motion correction module.
hmmm no, I didn't motion correct the video. I ran into this issue while feeding the raw video into MIN1PIPE. Is there an alternative way to running the motion correction module other than running demo_min1pipe.m
? Because that's what I have been running.
Well that's not important. The only thing you need to do is to crop the FOV, as a separate pre-preprocessing step. Usually the video will not be like this, which contains too much weird artifacts.
makes sense! thank you!
Hello,
I am running the MIN1Pipeline as coded in the
demo_min1pipe.m
and am running into this error:Below are my parameters:
I'm not sure what this issue means and how I might fix it. Please advise.