Deevyankar commited on
Commit
7823b62
·
verified ·
1 Parent(s): 427cfd0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -29,7 +29,7 @@ def pre_process(image):
29
  with st.spinner('Reading the image...'):
30
  y = ants.image_read(image)
31
  with st.spinner('Bias field correction ongoing...'):
32
- y = ants.utils.n4_bias_field_correction(y)
33
  with st.spinner('Denoising the image...'):
34
  yn = y + np.random.randn(*y.shape).astype('float32')*5
35
  y = ants.denoise_image(yn, ants.get_mask(y))
 
29
  with st.spinner('Reading the image...'):
30
  y = ants.image_read(image)
31
  with st.spinner('Bias field correction ongoing...'):
32
+ y = ants.n4_bias_field_correction(y)
33
  with st.spinner('Denoising the image...'):
34
  yn = y + np.random.randn(*y.shape).astype('float32')*5
35
  y = ants.denoise_image(yn, ants.get_mask(y))