Skip to content
Snippets Groups Projects
Commit b928c898 authored by Romain Garrigues's avatar Romain Garrigues
Browse files

nomsg

parent c4c86882
Branches
Tags
No related merge requests found
...@@ -172,17 +172,18 @@ void FrostImageFilter< TInputImage, TOutputImage>::ThreadedGenerateData( ...@@ -172,17 +172,18 @@ void FrostImageFilter< TInputImage, TOutputImage>::ThreadedGenerateData(
NormFiltre = NormFiltre + CoefFiltre; NormFiltre = NormFiltre + CoefFiltre;
FrostFiltre = FrostFiltre + (CoefFiltre * dPixel); FrostFiltre = FrostFiltre + (CoefFiltre * dPixel);
} }
} }
/* Modif pour VC++
dPixel = (FrostFiltre/NormFiltre); dPixel = (FrostFiltre/NormFiltre);
if (finite(dPixel)==0){ if (finite(dPixel)==0){
dPixel = 0.; dPixel = 0.;
}*/ }
if (NormFiltre==0.) // Modif pour VC++
dPixel=0.; /*if (NormFiltre==0.)
else dPixel=0.;
dPixel=FrostFiltre/NormFiltre; else
dPixel=FrostFiltre/NormFiltre;*/
it.Set( static_cast<OutputPixelType>( dPixel ) ); it.Set( static_cast<OutputPixelType>( dPixel ) );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment