bioMedImage buildSurface

High-Fidelity Organ Mapping with Smoothing

Scénario de test & Cas d'usage

Business Context

Research requires a 3D model of a human heart for fluid dynamics simulation. The raw scan data is noisy, resulting in a jagged surface that disrupts simulation. We need to generate a smooth surface over a range of tissue densities to create a watertight, aerodynamic model.
About the Set : bioMedImage

Processing and analysis of biomedical images (e.g., DICOM).

Discover all actions of bioMedImage
Data Preparation

Creation of a synthetic dataset representing a heart scan with noise.

Copied!
1 
2DATA casuser.heart_scan_noisy;
3LENGTH _id_ $32 _image_ binary;
4_id_='heart_study_01';
5_image_='FF00FF00AA55AA55'x;
6/* Simulated noisy binary
7data */
8RUN;
9 

Étapes de réalisation

1
Execute surface build with a threshold range for muscle tissue (800-1500) and aggressive smoothing.
Copied!
1 
2PROC CAS;
3bioMedImage.buildSurface / images={TABLE={name='heart_scan_noisy', caslib='casuser'}} outputFaces={name='smooth_heart_faces', replace=true} outputVertices={name='smooth_heart_vertices', replace=true} thresholds={{low=800, high=1500}} smoothing={iterations=10, relaxationFactor=0.8};
4 
5RUN;
6 
2
Validate the output tables contain data (not empty).
Copied!
1 
2PROC CAS;
3SIMPLE.numRows / TABLE={name='smooth_heart_vertices'};
4SIMPLE.numRows / TABLE={name='smooth_heart_faces'};
5 
6RUN;
7 

Expected Result


The action creates a 3D surface covering the density range 800-1500. The number of vertices should be consistent with a simplified mesh due to the high smoothing iterations (10) and relaxation factor (0.8), effectively reducing noise artifacts.