Comments (4)
@uschille , a couple notes:
- I went to try to make a fix here, but I couldn't find any examples where we weren't handling the error. Am I missing it somewhere?
- The behavior/bug that leads to read-only images is changed in
imageio
as ofv2.28.1
imageio/imageio#976. The latest isv2.31.1
, so if the learner creates an environment themselves, they will likely get a version ofimageio
that doesn't have the bug. - The version of
imageio
that ships with the base Anaconda distribution is different for Windows and MacOS 😱. https://docs.anaconda.com/free/anaconda/reference/packages/pkg-docs/. Anaconda on Windows still hasimageio v2.26.0
(weird read behavior), but Mac and Linux users getimageio v2.31.1
(consistent read behavior).
I suppose, in light of point 3, we need to keep the np.array(img)
work-around for now, but I put in a request to have Anaconda bump the version for Windows to match Mac+Linux (ContinuumIO/anaconda-issues#13242). I have no idea what the constraints might be to doing that, so we shall see.
from image-processing.
Thanks for pointing this out @shaw2thefloor! The error can be avoided by adding maize = np.array(maize)
after the line with iio.imread
. It seems that I missed a few instances when implementing #247 - I will fix it as soon as I can. If you could point me to any other instances you found that would be a great help. Thank you!
from image-processing.
@deppen8 thanks for taking care of this!
@shaw2thefloor the latest version of the lesson reads:
"""
# read input image
maize_roots = iio.imread(uri="data/maize-root-cluster.jpg")
maize_roots = np.array(maize_roots)
# display original image
fig, ax = plt.subplots()
plt.imshow(maize_roots)
Now we can threshold the image and display the result.
PYTHON
# keep only high-intensity pixels
maize_roots[maize_roots < 128] = 0
"""
Does it run properly for you?
from image-processing.
I am going to close this since we believe the issue had been resolved now. @shaw2thefloor please post back here if you think there is still an issue here, and we'll be happy to re-open.
from image-processing.
Related Issues (20)
- Ep3: Wrong file name `data/sudoku.jpg` HOT 5
- Ep3: iio.imread is unreliable HOT 8
- Convert sudoku.png image to pure RGB (without alpha channel) HOT 9
- Release new version of image dataset on FigShare HOT 2
- Use `uint8` or `float64` for grayscale images? HOT 1
- Using image as a variable name HOT 7
- Carpentries Workbench Transition HOT 22
- Showcase image processing at AUNZ community call HOT 7
- Links need to be fixed in CONTRIBUTING.md
- 'code' folder should be re-established/replaced HOT 5
- Code snippet docstring formatting HOT 4
- Transition to new import convention for sckit-image? HOT 4
- Contributing guide should be customised further
- Ep 5 - Using a Mask for a Histogram exercise error in solution HOT 3
- Link to image publication & analysis checklists HOT 2
- Mask in episode 4 has no shadow HOT 1
- Matplotlib is currently used in a hybrid way (explicit vs. implicit interfaces) HOT 4
- Add Exiftool in list of software that can help handle metadata
- Add "monitoring wading birds in the Everglades using drones" to the list of examples
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from image-processing.