Commit 7aaaaed5 authored by Rodriguez, Kelvin's avatar Rodriguez, Kelvin
Browse files

Merge branch 'subpixelapi' into 'subpixelapi'

removed unused stuff

See merge request astrogeology/autocnet!655
parents d03aa207 17eb7d37
Loading
Loading
Loading
Loading
+0 −5
Original line number Original line Diff line number Diff line
@@ -34,11 +34,6 @@ import autocnet.transformation
import autocnet.utils
import autocnet.utils
import autocnet.spatial
import autocnet.spatial


def get_data(filename):
    packagdir = autocnet.__path__[0]
    dirname = os.path.join(os.path.dirname(packagdir), 'data')
    fullname = os.path.join(dirname, filename)
    return fullname


def cuda(enable=False, gpu=0):
def cuda(enable=False, gpu=0):
    # Classes/Methods that can vary if GPU is available
    # Classes/Methods that can vary if GPU is available
+4 −1
Original line number Original line Diff line number Diff line
@@ -314,6 +314,7 @@ def xy_in_polygon(x,y, geom):
    """
    """
    return geom.contains(Point(x, y))
    return geom.contains(Point(x, y))



def generate_random(number, polygon):
def generate_random(number, polygon):
    points = []
    points = []
    minx, miny, maxx, maxy = polygon.bounds
    minx, miny, maxx, maxy = polygon.bounds
@@ -326,6 +327,7 @@ def generate_random(number, polygon):
        i += 1
        i += 1
    return np.asarray(points)
    return np.asarray(points)



def distribute_points_classic(geom, nspts, ewpts, use_mrr=True, **kwargs):
def distribute_points_classic(geom, nspts, ewpts, use_mrr=True, **kwargs):
    """
    """
    This is a decision tree that attempts to perform a
    This is a decision tree that attempts to perform a
@@ -396,6 +398,7 @@ def distribute_points_classic(geom, nspts, ewpts, use_mrr=True, **kwargs):
        valid = generate_random(ewpts * nspts, original_geom)
        valid = generate_random(ewpts * nspts, original_geom)
    return valid
    return valid



def distribute_points_new(geom, nspts, ewpts, Session):
def distribute_points_new(geom, nspts, ewpts, Session):
    """
    """
    This is a decision tree that attempts to perform a
    This is a decision tree that attempts to perform a
@@ -471,7 +474,7 @@ def distribute_points_in_geom(geom, method="classic",
    sides of the geometry.
    sides of the geometry.


    This algorithm does not know anything about the units being used
    This algorithm does not know anything about the units being used
    so the caller is responsible for acocunting for units (if appropriate)
    so the caller is responsible for accounting for units (if appropriate)
    in the passed funcs.
    in the passed funcs.


    Parameters
    Parameters
+1 −1
Original line number Original line Diff line number Diff line
@@ -8,7 +8,7 @@ from sklearn.cluster import OPTICS
from sklearn.cluster import DBSCAN
from sklearn.cluster import DBSCAN
from sklearn.neighbors import NearestNeighbors
from sklearn.neighbors import NearestNeighbors


from skimage.feature import blob_log, blob_doh
from skimage.feature import blob_log
from math import sqrt, atan2, pi
from math import sqrt, atan2, pi
from hoggorm.mat_corr_coeff import RVcoeff
from hoggorm.mat_corr_coeff import RVcoeff
import math
import math
+3 −3
Original line number Original line Diff line number Diff line
@@ -50,7 +50,7 @@ from autocnet.io.db.model import (Images, Keypoints, Matches, Cameras, Points,
                                  JsonEncoder, try_db_creation)
                                  JsonEncoder, try_db_creation)
from autocnet.io.db.connection import new_connection, Parent
from autocnet.io.db.connection import new_connection, Parent
from autocnet.matcher import subpixel
from autocnet.matcher import subpixel
from autocnet.matcher import cross_instrument_matcher as cim
from autocnet.matcher import ground 
from autocnet.vis.graph_view import plot_graph, cluster_plot
from autocnet.vis.graph_view import plot_graph, cluster_plot
from autocnet.control import control
from autocnet.control import control
from autocnet.spatial.overlap import compute_overlaps_sql
from autocnet.spatial.overlap import compute_overlaps_sql
@@ -2718,13 +2718,13 @@ class NetworkCandidateGraph(CandidateGraph):
        subpixel.subpixel_register_measure(self.Session, measureid, **kwargs)
        subpixel.subpixel_register_measure(self.Session, measureid, **kwargs)


    def propagate_control_network(self, control_net, **kwargs):
    def propagate_control_network(self, control_net, **kwargs):
        cim.propagate_control_network(self.Session,
        ground.propagate_control_network(self.Session,
                                      self.config,
                                      self.config,
                                      self.dem,
                                      self.dem,
                                      control_net)
                                      control_net)


    def generate_ground_points(self, ground_mosaic, **kwargs):
    def generate_ground_points(self, ground_mosaic, **kwargs):
        cim.generate_ground_points(self.Session, ground_mosaic, **kwargs)
        ground.generate_ground_points(self.Session, ground_mosaic, **kwargs)


    def place_points_in_overlaps(self, nodes, **kwargs):
    def place_points_in_overlaps(self, nodes, **kwargs):
        overlap.place_points_in_overlaps(self.Session,
        overlap.place_points_in_overlaps(self.Session,
+0 −5
Original line number Original line Diff line number Diff line
import os
import os
import sys
import sys


import unittest
from unittest.mock import Mock, MagicMock, patch, PropertyMock
from unittest.mock import Mock, MagicMock, patch, PropertyMock
import warnings



import numpy as np
import numpy as np
import pandas as pd
import pandas as pd
import pytest
import pytest
from shapely.geometry import LinearRing



from autocnet.examples import get_path
from autocnet.examples import get_path
from plio.io.io_gdal import GeoDataset
from plio.io.io_gdal import GeoDataset
Loading