예제 #1
0
	def __init__(self, SI = np.array([]), Wavelengths = np.array([]), SEM=np.array([]), survey=np.array([]), fuzzing=False):
		self.fuzzing = fuzzing
		self.SI = SpectrumImage.CLSpectrumImage(SI, Wavelengths)
		self.SEM = SEM
		self.survey = survey
		if self.fuzzing:
			reshapedSEM = np.reshape(self.SEM.data, [int(self.SEM.size[0]/4), 4, int(self.SEM.size[1]/4), 4])
			self.unfuzzedSEM = Image(np.sum(np.sum(reshapedSEM, axis=1), axis=-1), calibration=self.SEM.calibration*4)
		else:
			self.unfuzzedSEM = self.SEM
예제 #2
0
 def __init__(self,
              SI=np.array([]),
              Wavelengths=np.array([]),
              SEM=np.array([]),
              survey=np.array([]),
              fuzzing=False):
     self.fuzzing = fuzzing
     self.SI = SpectrumImage.CLSpectrumImage(SI, Wavelengths * 1e9)
     self.SEM = Image(SEM)
     self.survey = Image(survey)