Skip to content

Commit

Permalink
fix: planar freehand roi undefined unit (#1839)
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrokohler authored Feb 20, 2025
1 parent c31c5a2 commit ace8933
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/tools/src/tools/annotation/PlanarFreehandROITool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -987,13 +987,13 @@ class PlanarFreehandROITool extends ContourSegmentationBaseTool {
modalityUnit,
calibratedScale,
}) {
const { scale, units } = calibratedScale;
const { scale, unit } = calibratedScale;

cachedStats[targetId] = {
Modality: metadata.Modality,
length: calculatePerimeter(canvasCoordinates, false) / scale,
modalityUnit,
getPixelValueUnitunit: units,
unit,
};
}

Expand Down

0 comments on commit ace8933

Please sign in to comment.