예제 #1
0
파일: ucc.py 프로젝트: magnunor/analyzarr
 def locate_peaks(self):
     peaks=[]
     progress = ProgressDialog(title="Peak finder progress", message="Finding peaks on %s images"%self.numfiles, max=self.numfiles, show_time=True, can_cancel=False)
     progress.open()
     for idx in xrange(self.numfiles):
         self.controller.set_active_index(idx)
         self.data = self.controller.get_active_image()[:]
         self.CC = cv_funcs.xcorr(self.template, self.data)
         # peak finder needs peaks greater than 1.  Multiply by 255 to scale them.
         pks=pc.two_dim_findpeaks(self.CC*255, peak_width=self.peak_width, medfilt_radius=None)
         pks[:,2]=pks[:,2]/255.
         peaks.append(pks)
         progress.update(idx+1)
     #ipdb.set_trace()
     self.peaks=peaks
     self.redraw_plots()
예제 #2
0
파일: ucc.py 프로젝트: magnunor/analyzarr
 def update_CC(self):
     if self.ShowCC:
         self.CC = cv_funcs.xcorr(self.template, self.data)
         self.img_plotdata.set_data("imagedata",self.CC)