"Parameter peak_fit_radius should be at least 1, given: %d instead."%peak_fit_radius
)
peak_fit_radius=1
self._check_img_pair_sizes(img_1,img_2)
used_type=img_1.dtype
...
...
@@ -717,78 +722,85 @@ class CenterOfRotationAdaptiveSearch(CenterOfRotation):
dim_radio=img_1.shape[1]
ifmarginsisNone:
lim1,lim2=10,dim_radio-1-10
lim_1,lim_2=10,dim_radio-1-10
else:
lim1,lim2=margins
lim2=dim_radio-1-lim2
lim_1,lim_2=margins
lim_2=dim_radio-1-lim_2
iflim1<1:
lim1=1
iflim2>dim_radio-2:
lim2=dim_radio-2
iflim_1<1:
lim_1=1
iflim_2>dim_radio-2:
lim_2=dim_radio-2
iflim2<=lim1:
iflim_2<=lim_1:
message=(
"Image shape or cropped selection too small for global search. After removal of the margins the search limit collide. The cropped size is %d\n"%(dim_radio)
"Image shape or cropped selection too small for global search. After removal of the margins the search limit collide. The cropped size is %d\n"