Skip to content

Conversation

@drcandacemakedamoore
Copy link
Contributor

This PR changes places in episides 2 and 3 where the image variable name was image. Additionally, it corrects for refering to the sodoku image as a jpg although it is a png, and uses picture.copy() after creating certain images so they can be properly accessed (without this the accessing can create :ValueError: assignment destination is read-only)

@mkcor
Copy link
Contributor

mkcor commented Mar 27, 2023

This PR addresses #258.

> >
> > # load and display original image
> > image = iio.imread(uri="data/maize-root-cluster.jpg")
> > root = iio.imread(uri="data/maize-root-cluster.jpg")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe maize_root?

> > import imageio.v3
> >
> > image = iio.imread(uri="data/sudoku.jpg", mode="L")
> > sodoku = iio.imread(uri="data/sudoku.png")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was updated in PR #253 (hence the conflict). Would you mind merging gh-pages to sync up your branch? Thanks!

@uschille uschille linked an issue Apr 8, 2023 that may be closed by this pull request
@uschille uschille added the status:waiting for response Waiting for Contributor to respond to maintainers' comments or update PR label Apr 8, 2023
Comment on lines +199 to +200
eight_tiff = iio.imread(uri="data/eight.tif")
plt.imshow(eight_tiff)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
eight_tiff = iio.imread(uri="data/eight.tif")
plt.imshow(eight_tiff)
eight = iio.imread(uri="data/eight.tif")
plt.imshow(eight)

Comment on lines +229 to +230
print(eight_tiff.shape)
print(eight_tiff)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
print(eight_tiff.shape)
print(eight_tiff)
print(eight.shape)
print(eight)

> > # display images
> > fig, ax = plt.subplots()
> > plt.imshow(image)
> > plt.imshow(chair_jpg)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would suggest to use chair instead of chair_jpg.

{: .language-python}
The NumPy command to ignore all low-intensity pixels is `image[image < 128] = 0`.
The NumPy command to ignore all low-intensity pixels is `roots[roots < 128] = 0`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would suggest maize_roots instead of roots (roots could be confused with the mathematical sense, e.g., roots of an equation).

@tobyhodges
Copy link
Member

Closing this one in favour of #265, which has been merged.

@tobyhodges tobyhodges closed this Apr 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status:waiting for response Waiting for Contributor to respond to maintainers' comments or update PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Using image as a variable name

4 participants