Skip to content

Commit

Permalink
fix: bug EllipticalROITool (#1011)
Browse files Browse the repository at this point in the history
* Update getPixelData.ts

* Update ScaleOverlayTool.ts

* Update createImage.ts

fix: Calibrate RGB pixelData and be fault tolerant

* fix: update EllipticalROITool.ts bug about preventHandleOutsideImage

After dragging the ellipse out of the boundary,a new elliptical ROI cannot be drawn in the viewport

* Rollback code createImage.ts

Rollback code

* callback createImage.ts

* Update createImage.ts

* Update createImage.ts
  • Loading branch information
baokeyu123 authored Jan 19, 2024
1 parent 4b3d112 commit a072ebc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/tools/src/tools/annotation/EllipticalROITool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1044,6 +1044,8 @@ class EllipticalROITool extends AnnotationTool {
// Some area to do stats over.

if (this._isInsideVolume(worldPos1Index, worldPos2Index, dimensions)) {
this.isHandleOutsideImage = false;

const iMin = Math.min(worldPos1Index[0], worldPos2Index[0]);
const iMax = Math.max(worldPos1Index[0], worldPos2Index[0]);

Expand Down

0 comments on commit a072ebc

Please sign in to comment.