If I understand correctly, 'Open URL' can't do what you'd like - at least not now, or not directly. Nevertheless, it potentially helps make that possible... and certainly the ability to access images that aren't stored locally could be very useful indeed.
To read images remotely, you'd need two things:
- a 'tile server' - which has direct access to the image files, and can extract the pixels and then return these on demand
- a QuPath extension that knows how to make requests to that tile server
In any case, tile servers tend to require requests to be made in different ways, and QuPath has no built-in support for any of them. However, the 'Open URL' command means that adding support wouldn't require any core changes to QuPath (because no assumption is made that an image is always stored in a local file), and so support certainly could be added. It would have to be tailored to whatever tile server is used, and so is only worthwhile creating if there is a direct need.
If you or anyone would like to discuss handling the QuPath side of this, just let me know - I can certainly help with that. But a few considerations are:
- there would need to be documentation for how the tile server wants requests to be made (and no barriers to using this documentation in an open source project)
- it's a lot easier to add support for 8-bit RGB images; multichannel fluorescence images (for example) would be trickier
- it's common for the tile server to extract pixels, then (re)compress them as JPEG images before sending them to the client (i.e. QuPath in this case). The compression step means that the pixel values may not be exactly the same as if the image was accessed directly. Assuming the compression is set to a reasonably high quality level I expect that the impact this would have on analysis results is likely to be negligible, at least for brightfield images... but it's something to be aware of.
In the meantime, the (much less interesting) occasional use I have for 'Open URL' is to get the path to the image I currently have open, and then copy/paste either from or to this field.