Hi all,
Hope you’re going well, with all this shit!
So here is what I want to do : I have several time-lapse stacks with random blurry acquisitions. I need to register these movies (with multistackreg). Registration can not be done properly with the blurry images, so I wrote a macro to locate these blurry images (based on standard deviation or kurtosis). First thing I tried was to locate, delete these frames and replace it with black frames, in order not to lose the temporal information (because I do tracking on these movies). The issue is that registration can not be done properly with the black frames too. So what I want now is to locate, delete, replace with black frames and then, remove these black frames to do the registration, then put it back in the stacks. But I have troubles to save these black frames with the correct label so that I can put them back automatically at the good location in the stack after. I tried to add labels before removing the slices, then put back the back frames at the end of the movie and “sort by label”, but it doesn’t work.
I will paste my code here and it would be very nice if someone cold help me to achieve this.
Thank you all!