Skip to content

Commit cd207f4

Browse files
committed
BUG: Too much bias.
1 parent 844f456 commit cd207f4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

R/dataAugmentation.R

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -252,9 +252,8 @@ dataAugmentation <- function( inputImageList,
252252
if( j == 1 )
253253
{
254254
logField <- simulateBiasField( image, numberOfPoints = 10,
255-
sdBiasField = sdSimulatedBiasField, numberOfFittingLevels = 2, meshSize = 10 ) %>%
256-
iMath( "Normalize" )
257-
biasField <- ( exp( logField ) )^sample( c( 2, 3, 4 ), 1 )
255+
sdBiasField = sdSimulatedBiasField, numberOfFittingLevels = 2, meshSize = 10 )
256+
biasField <- exp( logField )
258257
}
259258
image <- image * biasField
260259
}

0 commit comments

Comments
 (0)