Unverified Commit f602246b authored by Jesse Mapel's avatar Jesse Mapel Committed by GitHub
Browse files

Accounted for extra output from template matcher (#428)

* Accounted for extra output from template matcher

* Ignored subpixel_template output elsewhere
parent 97f09ba5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -483,7 +483,7 @@ class Edge(dict, MutableMapping):
                    new_y[i] = res[1]
                    strengths[i] = res[2]
            elif method == 'template':
                new_x[i], new_y[i], strengths[i] = sp.subpixel_template(sx, sy, dx, dy, s_img, d_img,
                new_x[i], new_y[i], strengths[i], _ = sp.subpixel_template(sx, sy, dx, dy, s_img, d_img,
                                                                     search_size=search_size,
                                                                     template_size=template_size, **kwargs)

+2 −2
Original line number Diff line number Diff line
@@ -398,7 +398,7 @@ def subpixel_register_measure(measureid, iterative_phase_kwargs={}, subpixel_tem
    res = session.query(Images).filter(Images.id == sourceid).one()
    source_node = NetworkNode(node_id=sourceid, image_path=res.path)

    new_template_x, new_template_y, template_metric = subpixel_template(source.sample,
    new_template_x, new_template_y, template_metric, _ = subpixel_template(source.sample,
                                                            source.line,
                                                            destination.sample,
                                                            destination.line,
@@ -497,7 +497,7 @@ def subpixel_register_point(pointid, iterative_phase_kwargs={}, subpixel_templat
            measure.ignore = True # Unable to phase match
            continue

        new_template_x, new_template_y, template_metric = subpixel_template(source.sample,
        new_template_x, new_template_y, template_metric, _ = subpixel_template(source.sample,
                                                                source.line,
                                                                new_phase_x,
                                                                new_phase_y,