MCPcopy Create free account
hub / github.com/Project-MONAI/MONAI / __init__

Method __init__

monai/auto3dseg/analyzer.py:567–584  ·  view source on GitHub ↗
(self, stats_name: str = DataStatsKeys.IMAGE_STATS, average: bool | None = True)

Source from the content-addressed store, hash-verified

565 """
566
567 def __init__(self, stats_name: str = DataStatsKeys.IMAGE_STATS, average: bool | None = True):
568 self.summary_average = average
569 report_format = {
570 ImageStatsKeys.SHAPE: None,
571 ImageStatsKeys.CHANNELS: None,
572 ImageStatsKeys.CROPPED_SHAPE: None,
573 ImageStatsKeys.SPACING: None,
574 ImageStatsKeys.SIZEMM: None,
575 ImageStatsKeys.INTENSITY: None,
576 }
577 super().__init__(stats_name, report_format)
578
579 self.update_ops(ImageStatsKeys.SHAPE, SampleOperations())
580 self.update_ops(ImageStatsKeys.CHANNELS, SampleOperations())
581 self.update_ops(ImageStatsKeys.CROPPED_SHAPE, SampleOperations())
582 self.update_ops(ImageStatsKeys.SPACING, SampleOperations())
583 self.update_ops(ImageStatsKeys.SIZEMM, SampleOperations())
584 self.update_ops(ImageStatsKeys.INTENSITY, SummaryOperations())
585
586 def __call__(self, data: list[dict]) -> dict:
587 """

Callers

nothing calls this directly

Calls 4

SampleOperationsClass · 0.90
SummaryOperationsClass · 0.90
update_opsMethod · 0.80
__init__Method · 0.45

Tested by

no test coverage detected