Loading autocnet/__init__.py +0 −5 Original line number Diff line number Diff line Loading @@ -34,11 +34,6 @@ import autocnet.transformation import autocnet.utils 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): # Classes/Methods that can vary if GPU is available Loading autocnet/cg/cg.py +4 −1 Original line number Diff line number Diff line Loading @@ -314,6 +314,7 @@ def xy_in_polygon(x,y, geom): """ return geom.contains(Point(x, y)) def generate_random(number, polygon): points = [] minx, miny, maxx, maxy = polygon.bounds Loading @@ -326,6 +327,7 @@ def generate_random(number, polygon): i += 1 return np.asarray(points) def distribute_points_classic(geom, nspts, ewpts, use_mrr=True, **kwargs): """ This is a decision tree that attempts to perform a Loading Loading @@ -396,6 +398,7 @@ def distribute_points_classic(geom, nspts, ewpts, use_mrr=True, **kwargs): valid = generate_random(ewpts * nspts, original_geom) return valid def distribute_points_new(geom, nspts, ewpts, Session): """ This is a decision tree that attempts to perform a Loading Loading @@ -471,7 +474,7 @@ def distribute_points_in_geom(geom, method="classic", sides of the geometry. 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. Parameters Loading autocnet/cg/change_detection.py +1 −1 Original line number Diff line number Diff line Loading @@ -8,7 +8,7 @@ from sklearn.cluster import OPTICS from sklearn.cluster import DBSCAN 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 hoggorm.mat_corr_coeff import RVcoeff import math Loading autocnet/graph/network.py +3 −3 Original line number Diff line number Diff line Loading @@ -50,7 +50,7 @@ from autocnet.io.db.model import (Images, Keypoints, Matches, Cameras, Points, JsonEncoder, try_db_creation) from autocnet.io.db.connection import new_connection, Parent 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.control import control from autocnet.spatial.overlap import compute_overlaps_sql Loading Loading @@ -2718,13 +2718,13 @@ class NetworkCandidateGraph(CandidateGraph): subpixel.subpixel_register_measure(self.Session, measureid, **kwargs) def propagate_control_network(self, control_net, **kwargs): cim.propagate_control_network(self.Session, ground.propagate_control_network(self.Session, self.config, self.dem, control_net) 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): overlap.place_points_in_overlaps(self.Session, Loading autocnet/graph/tests/test_node.py +0 −5 Original line number Diff line number Diff line import os import sys import unittest from unittest.mock import Mock, MagicMock, patch, PropertyMock import warnings import numpy as np import pandas as pd import pytest from shapely.geometry import LinearRing from autocnet.examples import get_path from plio.io.io_gdal import GeoDataset Loading Loading
autocnet/__init__.py +0 −5 Original line number Diff line number Diff line Loading @@ -34,11 +34,6 @@ import autocnet.transformation import autocnet.utils 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): # Classes/Methods that can vary if GPU is available Loading
autocnet/cg/cg.py +4 −1 Original line number Diff line number Diff line Loading @@ -314,6 +314,7 @@ def xy_in_polygon(x,y, geom): """ return geom.contains(Point(x, y)) def generate_random(number, polygon): points = [] minx, miny, maxx, maxy = polygon.bounds Loading @@ -326,6 +327,7 @@ def generate_random(number, polygon): i += 1 return np.asarray(points) def distribute_points_classic(geom, nspts, ewpts, use_mrr=True, **kwargs): """ This is a decision tree that attempts to perform a Loading Loading @@ -396,6 +398,7 @@ def distribute_points_classic(geom, nspts, ewpts, use_mrr=True, **kwargs): valid = generate_random(ewpts * nspts, original_geom) return valid def distribute_points_new(geom, nspts, ewpts, Session): """ This is a decision tree that attempts to perform a Loading Loading @@ -471,7 +474,7 @@ def distribute_points_in_geom(geom, method="classic", sides of the geometry. 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. Parameters Loading
autocnet/cg/change_detection.py +1 −1 Original line number Diff line number Diff line Loading @@ -8,7 +8,7 @@ from sklearn.cluster import OPTICS from sklearn.cluster import DBSCAN 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 hoggorm.mat_corr_coeff import RVcoeff import math Loading
autocnet/graph/network.py +3 −3 Original line number Diff line number Diff line Loading @@ -50,7 +50,7 @@ from autocnet.io.db.model import (Images, Keypoints, Matches, Cameras, Points, JsonEncoder, try_db_creation) from autocnet.io.db.connection import new_connection, Parent 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.control import control from autocnet.spatial.overlap import compute_overlaps_sql Loading Loading @@ -2718,13 +2718,13 @@ class NetworkCandidateGraph(CandidateGraph): subpixel.subpixel_register_measure(self.Session, measureid, **kwargs) def propagate_control_network(self, control_net, **kwargs): cim.propagate_control_network(self.Session, ground.propagate_control_network(self.Session, self.config, self.dem, control_net) 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): overlap.place_points_in_overlaps(self.Session, Loading
autocnet/graph/tests/test_node.py +0 −5 Original line number Diff line number Diff line import os import sys import unittest from unittest.mock import Mock, MagicMock, patch, PropertyMock import warnings import numpy as np import pandas as pd import pytest from shapely.geometry import LinearRing from autocnet.examples import get_path from plio.io.io_gdal import GeoDataset Loading