Project

General

Profile

Actions

Bug #749

closed

pyami cross_correlate does not work on rectangular images

Added by Neil Voss over 14 years ago. Updated about 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Pyami
Start date:
07/19/2010
Due date:
% Done:

0%

Estimated time:
Affected Version:
Pre-2.0
Show in known bugs:
No
Workaround:

Description

broken code:

pc=correlator.cross_correlate(binned1,binned2)
peak = peakfinder.findSubpixelPeak(pc, lpf=0.0)
subpixpeak = peak['subpixel peak']
shift=correlator.wrap_coord(subpixpeak, pc.shape)
peak['scalefactor'] = dimension2/float(dimension1)
peak['shift'] = numpy.array((shift[0]*shrinkfactor1, shift[1]*shrinkfactor1))

Actions

Also available in: Atom PDF