How minsikaw/sam_delamquantification works
This is a Windows Forms sample-mapping and image-analysis application. Its main workflow is to load project images, detect sample regions, review or correct ROIs, and use the resulting geometry in image combination and spreadsheet output. Separate capabilities cover configurable CV models, delamination analysis and quantification, and ZGT batch conversion. The graph uses the source index and excerpts for relationships; unsampled forms and services are included where the tree identifies their product role, but are not given speculative connections.
Main entry points: MainForm.cs Application shell · SampleRoiReviewForm.cs ROI editor · SampleDetectionReviewForm.cs Detection review · CvModelRegistry.cs CV model registry
Components 27
Mapping workflow
- Application shell
MainForm.cs - Source selection
Forms/SourceModeSelectionForm.cs - Detection review
Forms/SampleDetectionReviewForm.cs - ROI editor
Forms/SampleRoiReviewForm.cs
Detection and models
- Sample detection
Services/SamSampleDetector.cs - Final ROI detection
Services/SamFinalRoiDetector.cs - CV detection service
Services/CvModels/SampleDetectionService.cs - OpenCV backend
Services/CvModels/ClassicalOpenCvDetectionBackend.cs - CV model registry
Services/CvModels/CvModelRegistry.cs - Model manager
Forms/CvModelManagerForm.cs - Model test mode
Forms/CvModelTestModeForm.cs
Analysis and review
- ROI confidence
Services/RoiConfidenceService.cs - ROI review policy
Services/RoiReviewPolicy.cs - ROI correction store
Services/RoiCorrectionStore.cs - Delamination review
Forms/DelamAnalysisReviewForm.cs - Delamination analysis
Services/DelamAnalysisService.cs - Color quantification
Services/ColorDelamQuantifier.cs - Analysis store
Services/DelamAnalysisStore.cs
Presets and output
- Preset manager
Models/PresetManager.cs - Unified presets
Services/UnifiedSampleDetectionPresetStore.cs - Image mapping
Services/ImageMapper.cs - Image combination
Services/ImageCombiner.cs - Spreadsheet output
Services/ExcelService.cs
Conversion and support
- ZGT batch conversion
Forms/ZgtBatchConvertForm.cs - ZGT parser
Services/ZgtParser.cs - Logging
Services/LoggerHelper.cs
Other components
- User
Connections 34
- User → Application shell: uses
- Application shell → Source selection: opens
MainForm.cs - Application shell → Detection review: opens
MainForm.cs - Application shell → ROI editor: opens
MainForm.cs - Application shell → Image mapping: maps images
MainForm.cs - Application shell → Image combination: combines images
MainForm.cs - Application shell → Spreadsheet output: exports results
MainForm.cs - Application shell → Preset manager: manages presets
MainForm.cs - Application shell → ZGT batch conversion: opens
MainForm.cs - Detection review → ROI editor: opens
Forms/SampleDetectionReviewForm.cs - Detection review → ROI correction store: reads corrections
Forms/SampleDetectionReviewForm.cs - Detection review → ROI review policy: checks review
Forms/SampleDetectionReviewForm.cs - Detection review → ROI confidence: evaluates confidence
Forms/SampleDetectionReviewForm.cs - ROI editor → ROI correction store: loads and saves
Forms/SampleRoiReviewForm.cs - ROI editor → ROI review policy: checks review
Forms/SampleRoiReviewForm.cs - ROI editor → ROI confidence: builds confidence
Forms/SampleRoiReviewForm.cs - ROI editor → Final ROI detection: detects ROI
Forms/SampleRoiReviewForm.cs - ROI confidence → Preset manager: selects presets
Services/RoiConfidenceService.cs - Final ROI detection → CV detection service: requests detection
Services/SamFinalRoiDetector.cs - CV detection service → CV model registry: gets model
Services/CvModels/SampleDetectionService.cs - CV detection service → OpenCV backend: creates backend
Services/CvModels/SampleDetectionService.cs - OpenCV backend → Unified presets: uses geometry
Services/CvModels/ClassicalOpenCvDetectionBackend.cs - Model manager → CV model registry: manages models
Forms/CvModelManagerForm.cs - CV model registry → Unified presets: uses preset geometry
Services/CvModels/CvModelRegistry.cs - CV model registry → Preset manager: bridges presets
Models/PresetManager.cs - Delamination review → Analysis store: loads analyses
Forms/DelamAnalysisReviewForm.cs - Delamination review → Delamination analysis: reviews analysis
- Delamination analysis → Color quantification: quantifies color
Services/DelamAnalysisService.cs - Delamination analysis → ROI correction store: reads corrections
Services/DelamAnalysisService.cs - Image combination → ROI correction store: reads corrections
Services/ImageCombiner.cs - Spreadsheet output → Image combination: uses combined images
Services/ExcelService.cs - ZGT batch conversion → ZGT parser: parses ZGT
- Application shell → Sample detection: runs detection
- Model manager → Model test mode: offers testing