Page MenuHomePhabricator

[ImageStatistic] Copy to clipboard from statistic table should be directly usabel in Excel
Closed, ResolvedPublic

Description

Status: Currently the copy to clipboard of statistics table and histogram in the StatisticsView behave differently: The histogram is copied in such a way that it is directly usable in Excel. Content of statistics table is not.

Reason:

  1. Histogram uses tabulator as column seperator
  2. Histogram regards the locale while converting the values to string (e.g. on German system the decimal seperator is , and not .).

I would propose to align both widget and to ensure, for a better UX, to behave like the histogram widget (tab as separator and locale aware number conversion).

Revisions and Commits

rMITK MITK
Restricted Differential Revision
Restricted Differential Revision
Restricted Differential Revision
Restricted Differential Revision
Restricted Differential Revision
Restricted Differential Revision
Restricted Differential Revision
Restricted Differential Revision

Related Objects

StatusAssignedTask
Resolvedfloca

Event Timeline

floca triaged this task as Normal priority.Mar 12 2020, 4:38 PM
floca created this task.

There is also something wrong when having multiple images with masks (commas are put at the end of the mask-values):

Images/Masks, Mean, Median, StandardDeviation, RMS, Max, MaxPosition, Min, MinPosition, #Voxel, Volume [mm^3], Skewness, Kurtosis, Uniformity, Entropy, MPP, UPP, Variance

1
seg1, 255, 255, 0, 255, 255, 3 2 0, 255, 1 -2147483648 -2147483648, 17, 17, -nan(ind), -nan(ind), 1, 0, 255, 1, 0, , , , , , , , , , , , , , , , ,

How did you encounter the different decimal separator?

kalali renamed this task from ImageStatistic: copy to clipboard from statistic table should be directly usabel in Excel to [ImageStatistic] Copy to clipboard from statistic table should be directly usabel in Excel.Mar 13 2020, 2:10 PM
kalali updated the task description. (Show Details)
kalali added a revision: Restricted Differential Revision.Mar 13 2020, 2:23 PM

How did you encounter the different decimal separator?

By copying the content of stats table and histogram to excel. Reason ist that histogram uses QString::arg to convert doubles locale sensitive. The stats widget does not. But this problem roots alread in a stats helper class, because it always converts the values into strings befor passing them to the model. This implies a deeper rework I already have started. I will base it on your work as soon as D264 is merged.

There is also something wrong when having multiple images with masks (commas are put at the end of the mask-values):

Yes, there is something wrotten in the collector class that should iterate over the model. I will have a look when I rework the rest of the model.

kalali removed floca as the assignee of this task.Mar 13 2020, 3:29 PM
kalali assigned this task to floca.

Sorry.

floca added a revision: Restricted Differential Revision.Mar 16 2020, 4:55 PM
floca added a project: Restricted Project.Mar 18 2020, 10:36 AM

Das war von mir, weil ich es ja dann übernehmen wollte ;)

floca moved this task from Restricted Project Column to Restricted Project Column on the Restricted Project board.Mar 18 2020, 10:36 AM

Mixed things up my commits if this branch are not yet in the master. Must still be reviewed and merged.

floca added a parent task: Restricted Maniphest Task.Mar 31 2020, 9:10 PM
floca moved this task from Restricted Project Column to Restricted Project Column on the Restricted Project board.Apr 8 2020, 10:36 AM