Spaces:
Build error
Build error
Update app.py
Browse files
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.
|
| 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))
|