simply-view-image-for-python-debugging
simply-view-image-for-python-debugging copied to clipboard
Feature request: Support "non-restricted types" in experimental viewer
Disabling svifpd.restrictImageTypes allows viewing other image types, which is great. Not sure of the extent of what can work, but just for context it works out of the box in my case for a C++ Image type bound with pybind11 that supports the buffer protocol / can be converted to a numpy array using np.asarray(). However, these "extra types", or at least he one I'm using, do not seem to be supported in the "new" image viewer (which is also great by the way). Would it be easy to add this support?
Not sure if my understaning is correct, but from (https://github.com/elazarcoh/simply-view-image-for-python-debugging/blob/369567964238e0e415828ef4cb3b23e8d503bf38/src/python/image_numpy.py#L3) it seems like the "other types" work if they are convertible to numpy arrays and are of correct dimensions. If that is the case, couldn't they use the same visualisation method / data transfer as numpy arrays?
Thanks