EOGrady21 / VPR_viewer

A shiny app to visualize plankton data and images from the Video Plankton Recorder
MIT License
1 stars 0 forks source link

Allow image sorting #11

Closed EOGrady21 closed 2 years ago

EOGrady21 commented 2 years ago

Requested by @kevinsorochan

Allow users to sort the image gallery by image size. This will allow quick and easy visualization of particular groups of ROIs (eg. If a user is interested in krill they could sort the images large to small and view all the large krill images first).

Images should remain default sorted by time. I will attempt to add a drop down menu in the gallery tab, where users can select default sorting (by time), small to large or large to small sorting.

In the backend this will require looking at the image metadata, preferably before the images are read in to make processing faster. I will attempt to use exiftools (and exiftoolr ) to do this. I can use this functionality to read in the image dimensions, then order them based on an average of the two dimensions (some ROIs have very odd shapes - so using (width + height) /2 should keep things balanced).

There should be some associated help documentation or warnings to let the user know that images displayed are only the images associated with their custom subset of CTD data visible in the plotting tab.

I would also like to add a progress or loading bar / icon as this additional image processing may take >20 seconds.