din14970/pyMatchSeries

Error when run ‘calculation.run()’

Closed this issue · 3 comments

have solved

your images are very very small, 64x64, so you should not have to do registration at very high levels (power of 2). For some reason it's starting at level 6, so something went wrong creating the config file, because 2^6 is much larger than the number of pixels you have. From the output it seems you already have some folder with data and some config file. Perhaps delete that entire folder created by instantiating MatchSeries and try again. If that doesn't work, maybe share the generated config file here, it might be a bug that the levels are not correctly set.

Unfortunately it seems attachments are not forwarded in this way. I also don't see any images. Please copy paste pure text from errors and code in between ``` YOUR TEXT HERE ``` ticks. For sharing files, please upload them to a shared drive or something, e.g. google drive, and share the link.

Sorry for the belated reply.

In the first case, the issue is probably that you set numTemplates to 50, when you only have 10 images. You use this when you want to limit the number of images (i.e. if you have more).

In the last case, the issue is that it expects the spectrum map to be of shape [number of frames, x, y, channels], so I think the number of frames axis is in the wrong position for it to work. I should make this more robust, like allowing you to provide your own axis ordering.