JinghaoLu / MIN1PIPE

A MINiscope 1-photon-based Calcium Imaging Signal Extraction PIPEline.
GNU General Public License v3.0
59 stars 27 forks source link

Error with video from inscopix #6

Open jtalley24 opened 6 years ago

jtalley24 commented 6 years ago

Hi, I am also trying to analyze the video from inscopix (1000 frame, 20fps, tiff format). During the analysis, this error popped up that doesn't have before.

Warning: Maximum number of trials reached. Consider increasing the maximum distance or decreasing the desired confidence.

In vision.internal.ransac.msac (line 117) In estimateGeometricTransform (line 129) In klt_geo (line 16) In klt2_reg (line 10) In klt_ref_track (line 26) In parallel_function (line 478) In logdemons_loop (line 56) In lk_ld_hier (line 82) In parallel_function>make_general_channel/channel_general (line 917) In remoteParallelFunction (line 46)

and it is continuously generated, and eventually crashed. Do you know why?

JinghaoLu commented 6 years ago

@jtalley24 This is a warning message not an error. It says the matlab function that estimates the rigid transformation between the two frames reaches the maximum number of iteration, but still does not have a convergent result. It will then use what it has to return as an output.

The possible reason of this might be that in your video, a good number of frames do not contain much information for the KLT tracker to track between certain frames, so the tracking might be inconsistent. Then when it tries to convert all the tracking features into a transform matrix, it uses RANSAC. Because the tracking is inconsistent, the RANSAC cannot find convergent result, thus it throws a warning saying the above thing.

I am not sure why it crashes. Could you please be specific how the matlab behaves afterwards?

J