Skip to content

Commit e4dde39

Browse files
authored
Merge pull request #243 from uschille/145-warn-learners-about-using-approximated-intensities
Add a note that resizing an image yields approximate pixel values
2 parents 6a9c8de + 92b1a37 commit e4dde39

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

_episodes/03-skimage-images.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,16 @@ In this case, the `.tif` extension causes the image to be saved as a TIFF.
157157
> the image to transform, `image`,
158158
> the dimensions we want the new image to have, `new_shape`.
159159
>
160+
> > Note that the pixel values in the new image are an approximation of
161+
> > the original values and should not be confused with actual, observed
162+
> > data. This is because `skimage` interpolates the pixel values when
163+
> > reducing or increasing the size of an
164+
> > image. `skimage.transform.resize` has a number of optional
165+
> > parameters that allow the user to control this interpolation. You
166+
> > can find more details in the [scikit-image
167+
> > documentation](https://scikit-image.org/docs/stable/api/skimage.transform.html#skimage.transform.resize).
168+
> {: .callout}
169+
>
160170
> Image files on disk are normally stored as whole numbers for space efficiency,
161171
> but transformations and other math operations often result in
162172
> conversion to floating point numbers.

0 commit comments

Comments
 (0)