Support pathlib Path input in dask_image.imread.imread()
See original GitHub issueIt would be good if we supported pathlib Path inputs into the dask-image imread()
function. I don’t think it should be too complicated to add, so this could be a good first issue for contributors to dask-image
.
Issue Analytics
- State:
- Created 3 years ago
- Comments:11 (6 by maintainers)
Top Results From Across the Web
skimage.io.imread behaving differently when giving a string or ...
imread . I was trying to open a MultiPage TIFF (dimensions: 96x512x512) like this: import argparse from pathlib import ...
Read more >dask-image Documentation
Provides support for loading image files. ... images = dask_image.imread.imread(filename_pattern) ... fname (str or pathlib.Path) – A glob ...
Read more >imageio.v2.imread
The resource to load the image from, e.g. a filename, pathlib.Path, http address ... See help() to see what arguments are available for...
Read more >Python Path – How to Use the Pathlib Module with Examples
PurePath() is the root node that provides handling operations to every path object in Pathlib. When you instantiate PurePath() , it creates two ......
Read more >Python imread(): Different ways to load an image using the ...
In this tutorial, we will learn how to use imread() method of OpenCV-Python in detail and different ways to load an image using...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yeah that’s what I figured you meant by support as well. That’s what I was trying to respond to in the first line. So yeah let’s support pathlib.
Was trying to say more involved solutions are probably something we want to handle in a proper image reading library.
os.fspath
is almost identical toisinstance(urlpath, Path)
; then again, pathlib only appeared in py34.Does dask-image support remote reading at all?