Commit dbd27b46 authored by Lauren Adoram-Kershner's avatar Lauren Adoram-Kershner
Browse files

ensuring that that source measure and image are consistent for all measure subpixel registers

parent 942f2e83
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -9,7 +9,7 @@ from plurmy import Slurm
from autocnet import Session, config
from autocnet.matcher import naive_template
from autocnet.matcher import ciratefi
from autocnet.io.db.model import Points, Images, JsonEncoder
from autocnet.io.db.model import Measures, Points, Images, JsonEncoder
from autocnet.graph.node import NetworkNode

import geopandas as gpd
@@ -230,9 +230,6 @@ def subpixel_template(sx, sy, dx, dy, s_img, d_img, image_size=(251, 251), templ

    return dx, dy, metrics

    x_shift, y_shift, strength = naive_template.pattern_match(template, image, **kwargs)
    return x_shift, y_shift, strength

def subpixel_ciratefi(sx, sy, dx, dy, s_img, d_img, search_size=251, template_size=51, **kwargs):
    """
    Uses a pattern-matcher on subsets of two images determined from the passed-in keypoints and optional sizes to