add intro numpy example
All threads resolved!
All threads resolved!
Basic intro exercise for numpy. The example images are in the repo under data/ @stamper @ralves @ext.bauer - happy for review from anyone!
Merge request reports
Activity
Filter activity
Great! thank you @meechan. I'd suggest a couple minor changes:
- I think the preface text & code snippets, reading the images in with
imread
, would be better kept outside the exercise block, i.e.
## Reading data to a numpy array We'll use the popular image analysis package scikit-image, to read two example images into numpy arrays. ~~~ from skimage.io import imread raw = imread('cilliated_cell.png') nuclei = imread('cilliated_cell_nuclei.png') # if you want to see what these images look like - we can use matplotlib (more to come later!) import matplotlib.pyplot as plt plt.imshow(raw, cmap='gray') plt.imshow(nuclei) ~~~ {: .language-python } > ## Exploring Image Arrays > * What are the dimensions of these arrays? > * What data type are these arrays? [...]
- Code blocks don't need to be blockquoted (
>
), only wrapped in~~~
- I've adjusted this in the example above.
- I think the preface text & code snippets, reading the images in with
added 1 commit
- 6a97b745 - move initial setup outside of exercise block
Since writing that last comment, I learned that we need blank lines in the exercise blocks.
- Resolved by Kimberly Isobel Meechan
- Resolved by Kimberly Isobel Meechan
- Resolved by Kimberly Isobel Meechan
mentioned in commit b64c9d1f
Please register or sign in to reply