Commit 95c54a82 authored by Otmane Lahlou's avatar Otmane Lahlou

ENH : casting double values

parent 99b0a2ee
......@@ -125,7 +125,7 @@ NeighborhoodScalarProductFilter<TInputImage,TOutputModulus,TOutputDirection>
// Compute the scalar product
scalarCurrentValue = -(pixel1[0]*pixel2[0]+pixel1[1]*pixel2[1]);
// If the value is upper than the current max value
if (scalarCurrentValue > scalarMaxValue)
{
......@@ -146,7 +146,7 @@ NeighborhoodScalarProductFilter<TInputImage,TOutputModulus,TOutputDirection>
}
}
// Compute the direction
double angle = (1+neighborhoodNumberMax) * M_PI_4;
double angle = static_cast<double>((1+neighborhoodNumberMax)) * static_cast<double>(M_PI_4);
if (flagPosNegDirection)
{
angle -= M_PI;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment