-
Notifications
You must be signed in to change notification settings - Fork 301
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: dynamic threshold sphere #1598
base: main
Are you sure you want to change the base?
Conversation
* Add dynamic sphere * fix: Performance issues on threshold sphere * performance * feat: Create segmentation voxel manager in initial create of volume * Faster fill for fixing features * performance: Fix the performance of island removal * fix restore of mixed islands * fix external island removal on non-acquisition * Performance and planar filling improvements * Fix flood fill not being planar * Remove invalid points in shape * feat: Add a labelmap statistics calculator (#2) * fix: Change to names for statistics so that other implementations can be added * Fix build issues * feat: Add working statistics calcs * fix: Add stats to the labelmap calculator * Compute labelmap statistics and lesion glycolysis * PR comments * PR comments * PR - comments added * PR review comments * PR fixes - mostly cleanup * Improvements to threshold out of plane * Missed a fix on the sphere change
Run & review this pull request in StackBlitz Codeflow. |
❌ Deploy Preview for cornerstone-3d-docs failed. Why did it fail? →
|
@@ -16,7 +16,9 @@ export default class VolumetricCalculator extends BasicStatsCalculator { | |||
|
|||
// Add the volumetric units | |||
const volumeUnit = spacing ? 'mm\xb3' : 'voxels\xb3'; | |||
const volumeScale = spacing ? spacing[0] * spacing[1] * spacing[2] : 1; | |||
const volumeScale = spacing | |||
? spacing[0] * spacing[1] * spacing[2] * 1000 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@wayfarer3130 i fixed it here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
everything looks updated, and good to me
I couldn't figure out the
await volumeLoader.createAndCacheDerivedLabelmapVolume(volumeId, {
volumeId: segmentationId,
voxelRepresentation: Enums.VoxelManagerEnum.RLE,
});
It does not work after cornerstone3D 2.0 for some reason.
This pull request includes a variety of changes to the
common/reviews/api/core.api.md
file and several other files, focusing on adding new functionality, improving existing interfaces, and making minor corrections. The most important changes include adding new methods and types to theVoxelManager
andRLEVoxelMap
classes, introducing theVoxelManagerEnum
, and making some minor adjustments to existing types and functions.Additions to
VoxelManager
andRLEVoxelMap
:RLEVoxelMap
such asdelete
,fillFrom
,findAdjacents
,floodFill
,forEach
, andforEachRow
to enhance its functionality. [1] [2]VoxelManagerEnum
to manage different voxel representations, and addedcreateRLEHistoryVoxelManager
static method toVoxelManager
. [1] [2]Enhancements to types and interfaces:
getTypedArray
method toPointsManager
to retrieve the underlying data array. [1] [2]PixelDataTypedArrayString
to include'none'
as a valid type. [1] [2]Minor corrections and improvements:
multiVolumeCanvasToWorld/index.ts
.VoxelManagerEnum
to theenums/index.ts
export list. [1] [2]These changes improve the functionality and flexibility of the voxel management system and enhance the overall codebase.