VirtualPlants / timagetk

3D and 2D Image processing algorithms in Python for tissues
https://virtualplants.github.io/timagetk
Other
13 stars 5 forks source link

Temporal tracking fails on 2D images #20

Open rosscarter3 opened 6 years ago

rosscarter3 commented 6 years ago

I'm getting the following error when trying to track two segmented images:

Traceback (most recent call last):
  File "../scripts/register_leaves.py", line 289, in <module>
    matches_dict = track_2(tr_im_1, im_2)
  File "../scripts/register_leaves.py", line 127, in track_2
    criterion=criterion)
  File "/home/ross/home3/tools/timagetk/timagetk/algorithms/temporal_matching.py", line 808, in compute_normalized_cost
    pairwise_cost_list = self.compute_pairwise_cost(adm_match_list, criterion)
  File "/home/ross/home3/tools/timagetk/timagetk/algorithms/temporal_matching.py", line 703, in compute_pairwise_cost
    n1, n2 = pairwise_cost_dict[key]['Node 1'], pairwise_cost_dict[key]['Node 2']
KeyError: 'Node 1'

Any help would be greatly appreciated P.S. I have also submitted this issue to the gitlab version of timagetk