Skip to content

Commit

Permalink
support newer cimg
Browse files Browse the repository at this point in the history
  • Loading branch information
fredroy committed Dec 13, 2023
1 parent 3a64b00 commit 57d8cf4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ void IntensityProfileRegistrationForceField<DataTypes,ImageTypes>::udpateProfile
{
Coord Tp = inT->toImage(p);
if(!in->isInside(Tp[0],Tp[1],Tp[2])) for(unsigned int k=0;k<dims[3];k++) { prof(j,i,0,k) = OutValue; msk(j,i,0,k) = 1; }
else for(unsigned int k=0;k<dims[3];k++) prof(j,i,0,k) = (T)img.cubic_atXYZ(Tp[0],Tp[1],Tp[2],k,OutValue,cimg::type<T>::min(),cimg::type<T>::max());
else for(unsigned int k=0;k<dims[3];k++) prof(j,i,0,k) = (T)img.cubic_atXYZ(Tp[0],Tp[1],Tp[2],k,OutValue);
p+=dp;
}
}
Expand Down

0 comments on commit 57d8cf4

Please sign in to comment.