-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Image related methods #1323
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
What metadata would you get from images? If we added this, we would want to defer all the image reading out to an external library such as skimage, e.g., by leveraging
You're definitely not the first person to ask about this: Yes, this would definitely be welcome in some form. |
@shoyer Thank you for the comment.
I'm currently use tag data in tiff files. I guess some people may use exif metadata in jpg files.
Yes, I agree. open_image method is possibly overkill...?
My second request seems more general. |
When I open up a tiff file, it only shows a few attributes. I have some images which have extensive provenance metadata. How do you access them? eg: |
thank you. I had stumbled onto the "tags" yesterday and had not had time to post back here that I had found it, and sorted through all the tags(), tags(1), and tags(ns="something"). The thing that was quite confusing was you access them in GDAL via GetMetadata, and not GetTags. So, I think I am sorted now. I would agree that there needs to be more info there, but it is possible that it is already available, but not in a single place. |
Hey Devs and Users... Just about to embark on a project where I want to populate an X-Array data set with a set of images.. Did this progress? Just trying to save an hour building my own hook to skimage |
On Jun 22 2018 10:10 AM, Scott wrote:
Hey Devs and Users... Just about to embark on a project where I want
to populate an X-Array data set with a set of images.. Did this
progress? Just trying to save an hour building my own hook to skimage
I have not built hooks into skimage. If you get that to work I would
if you could share with me 8-) I'm not fully sure of how to make that
work in production, but I would be glad to help test.
|
In order to maintain a list of currently relevant issues, we mark issues as stale after a period of inactivity If this issue remains relevant, please comment here or remove the |
I am looking at using xarray for managing image data. it looks like the equivalent of an xr.open_image hasn't been developed so consider this a vote in favor 👍 |
Currently I'm using xarray to handle multiple images (typically, a sequence of images),
and I feel it would be convenient if xarray supports image related functions.
There may be many possibilities, but particular methods I want to have in xarray are
xr.open_image(File)
Currently, I open image by PILLOW, convert to np.ndarray, extract its attributes, then construct xr.DataArray from them.
If I can do it by 1 line, it would be very great.
xr.DataArray.expand_dims(dim)
I want to add additional channel dimension to grey scale images (size [W x H] -> [W x H x 1]),
in order to pass them into convolutional neural network, which usually accepts 4-dimensional tensor [Batch x W x H x channel].
Image (possibly also video?) is naturally high-dimensional and
I guess it would fit xarray's concept.
Is this sufficiently broad interest?
The text was updated successfully, but these errors were encountered: