Skip to content

Commit

Permalink
fix: Roi.solidity was not caching result (#468)
Browse files Browse the repository at this point in the history
  • Loading branch information
lpatiny authored Jun 4, 2024
1 parent cca4975 commit acd6fd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/roi/Roi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ export class Roi {
* @returns Solidity value.
*/
get solidity() {
return this.surface / getConvexHull(this.getMask()).surface;
return this.surface / this.convexHull.surface;
}
//TODO Should be refactored to not need creating a new Mask.

Expand Down

0 comments on commit acd6fd2

Please sign in to comment.