This project processes ultrasound DICOM files, extracts and converts them into images! The process finishes with a 4x2 (8 images) grid layout pdf file page. ALso, in Obstetrical Exams you can create growth charts. It combines image processing with advanced biometrical analysis to provide a complete view of fetal development.
- Class: DICOM2JPEG
- Converts DICOM files to JPEG format
- Enhances image quality (contrast, brightness, sharpness)
- Identifies and separates Structured Report (SR) DICOM files
-
Function: ExtractSR
- Extracts biometrical measurements from DICOM SR files
- Processes key measurements: Head Circumference, Biparietal Diameter, Abdominal Circumference, Femur Length, Estimated Fetal Weight
-
Function: pdf_report
- Generates a PDF report containing measurement data and growth charts
- Organizes plots in a two-per-page layout
- Function: create_other_plots
- Creates individual growth charts for each biometric measurement
- Plots patient data against standard percentile curves (10th, 50th, 90th)
- Uses a dark theme for better visibility
- Class: MkPDF
- Creates a grid layout of ultrasound images
- Incorporates biometrical data and growth charts into the report
- Orchestrates the entire process:
- Unzips DICOM files
- Converts DICOM to JPEG
- Extracts biometrical data
- Generates growth charts
- Creates the final PDF report
- DICOM Extraction: Unzip and organize DICOM files
- Image Conversion: Convert DICOM images to JPEG format
- Data Extraction: Extract biometrical data from SR DICOM files
- Chart Generation: Create growth charts for each biometric measurement
- Report Compilation: Generate a PDF report with images, measurements, and charts
- PDF Merging: Combine multiple PDFs if necessary
- Comprehensive Data Processing: Handles both image and structured report DICOM files
- Enhanced Visualization: Improves ultrasound image quality for better analysis
- Biometrical Analysis: Extracts and visualizes key fetal measurements
- Growth Assessment: Plots fetal measurements against standard growth curves
- Customized Reporting: Generates professional PDF reports with images and charts
- pydicom: For reading DICOM files
- Pillow (PIL): For image processing
- matplotlib: For creating growth charts
- reportlab: For generating PDF reports
- numpy: For numerical operations
- scipy: For interpolation in growth charts
- Extracts and processes various fetal measurements:
- Head Circumference (HC)
- Biparietal Diameter (BPD)
- Abdominal Circumference (AC)
- Femur Length (FL)
- Estimated Fetal Weight (EFW)
- Growth charts use a dark theme for better contrast
- Each chart includes 10th, 50th, and 90th percentile lines
- Patient's specific measurement is highlighted on each chart
- Combines ultrasound images in a grid layout
- Includes a summary of all biometrical measurements
- Presents growth charts for each measurement
- Optimized for A4 paper size
- Implement machine learning for automated measurement verification
- Add support for 3D/4D ultrasound data
- Develop a user-friendly interface for easier operation
- Integrate with hospital information systems for seamless data flow
- Implement multi-language support for international use
This project provides a comprehensive solution for processing fetal ultrasound data, combining image analysis with advanced biometrical assessments. It offers healthcare professionals a powerful tool for monitoring fetal growth and development, enhancing the quality of prenatal care.