File tree 2 files changed +8
-0
lines changed
2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -275,6 +275,10 @@ export class Roi {
275
275
return ( 2 * Math . sqrt ( this . surface * Math . PI ) ) / this . perimeter ;
276
276
}
277
277
278
+ get filledSurface ( ) {
279
+ return this . surface + this . holesInfo . surface ;
280
+ }
281
+
278
282
/**
279
283
* Calculates solidity of the ROI
280
284
*/
@@ -327,6 +331,7 @@ export class Roi {
327
331
perimeter : this . perimeter ,
328
332
convexHull : this . convexHull ,
329
333
mbr : this . mbr ,
334
+ filledSurface : this . filledSurface ,
330
335
centroid : this . centroid ,
331
336
} ;
332
337
}
Original file line number Diff line number Diff line change @@ -66,6 +66,7 @@ exports[`3x3 mask 1`] = `
66
66
},
67
67
},
68
68
" fillRatio" : 1 ,
69
+ " filledSurface" : 4 ,
69
70
" height" : 2 ,
70
71
" id" : 1 ,
71
72
" mbr" : {
@@ -165,6 +166,7 @@ exports[`3x3 mask 1`] = `
165
166
},
166
167
},
167
168
" fillRatio" : 1 ,
169
+ " filledSurface" : 1 ,
168
170
" height" : 1 ,
169
171
" id" : 2 ,
170
172
" mbr" : {
@@ -277,6 +279,7 @@ exports[`3x3 mask 2`] = `
277
279
},
278
280
},
279
281
" fillRatio" : 1 ,
282
+ " filledSurface" : 4 ,
280
283
" height" : 2 ,
281
284
" id" : - 1 ,
282
285
" mbr" : {
You can’t perform that action at this time.
0 commit comments