Skip to content

Possibility to export user defined metadata entries when exporting measurements through the dialog#2057

Closed
zindy wants to merge 1 commit intoqupath:mainfrom
zindy:save-measurements-and-metadata
Closed

Possibility to export user defined metadata entries when exporting measurements through the dialog#2057
zindy wants to merge 1 commit intoqupath:mainfrom
zindy:save-measurements-and-metadata

Conversation

@zindy
Copy link
Contributor

@zindy zindy commented Jan 3, 2026

Hello,

The request for this feature was made on https://forum.image.sc/t/qupath-metadata/80733

This implementation enables the "Populate" button in the "Export Measurements" dialog to add user defined metadata entries to the "Columns to include (optional)" set and lets the user choose exactly which relevant metadata entries they want to add.

image

To avoid potential naming collisions and distinguish metadata entries from other QuPath columns, the suffix " (metadata)" is added to the displayed names and also columns in the exported file header.

In MeasurementExporter.addRows() , presence of " (metadata)" in a column name is used for triggering the addition of a metadata value instead of a measurement.

I haven't looked at implementing this in QPEx.saveMeasurements() yet and my implementation is not particularly clever...

Basically, just a first draft to (maybe) get the ball rolling.

Kind regards,
Egor

@petebankhead
Copy link
Member

Thanks for this - I've tried to address the main need in #2087 so I'll close the PR, but do let me know if you find problems with the alternative way of doing things.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants