Example #1
0
	def selectImage(self, number, load=True):
		filename = self.files[number]
		self.current_file = SkyCameraFile.uniqueName(filename)
		
		if self.current_file not in self.correspondences:
			self.correspondences[self.current_file] = []
		
		if load:
			self.image = cv2.imread(filename)
			
		self.calibration.selectImage(filename)
Example #2
0
    def selectImage(self, number, load=True):
        filename = self.files[number]
        self.current_file = SkyCameraFile.uniqueName(filename)

        if self.current_file not in self.correspondences:
            self.correspondences[self.current_file] = []

        if load:
            self.image = cv2.imread(filename)

        self.calibration.selectImage(filename)
Example #3
0
	def __init__(self, files, location = None, catalog = None):
		if files == None:
			files = []
		
		self.files = files
		
		if len(self.files) > 0:
			self.current_file = SkyCameraFile.uniqueName(files[0])
			self.correspondences = {self.current_file: []}
		else:
			self.current_file = None
			self.correspondences = {}
		
		self.min_max_range = 5
		self.orders = 1
		self.nonlinear = True
		self.parameter_set = 0
		self.image = None
		
		self.calibration = Calibration(location, catalog)
Example #4
0
    def __init__(self, files, location=None, catalog=None):
        if files == None:
            files = []

        self.files = files

        if len(self.files) > 0:
            self.current_file = SkyCameraFile.uniqueName(files[0])
            self.correspondences = {self.current_file: []}
        else:
            self.current_file = None
            self.correspondences = {}

        self.min_max_range = 5
        self.orders = 1
        self.nonlinear = True
        self.parameter_set = 0
        self.image = None

        self.calibration = Calibration(location, catalog)