This ISproject Report 23233
This ISproject Report 23233
We thank the Supreme Lord for imparting us with the spiritual energy
in the right direction which has led to the successful completion of the
Project Report. We would also like to thank the Principal, Dr. Joseph
Kutty Jacob, for the facilities provided by him during the preparation
of the report. We are extremely thankful to the Head of the
Department of Electronics and Communication Engineering, Dr.
Anilkumar K K, for giving all the support and valuable directions in
overcoming the difficulties faced during the preparation of the report.
We express our sincere thanks to the Project Coordinator, Dr.
Anilkumar K K, for giving innovative suggestions, timely advice,
correction advice and suggestions during this endeavour. We feel to
acknowledge our indebtedness and deep sense of gratitude to our
Guide, Dr. Anilkumar K K, whose guidance and kind supervision
given us throughout the course which shaped the present work as its
show. We also express our gratitude towards all faculties of CUCEK
for their encouragement. We also express our deep sense of thanks to
all of our classmates and friends for their support, constructive
criticism and suggestions.
ABSTRACT
Aim:
The aim of this project is to develop and implement a method for
restoring composite images using a novel image restoration process
with alpha blending for image fusion enhancement.
Objectives:
To design and implement a preprocessing stage that includes
normalization, noise removal, and image augmentation techniques
to prepare input images for fusion.
To develop an image fusion stage that combines preprocessed
images using alpha blending to create a composite image that is
more informative than any of the input images.
To evaluate the quality of the composite image through
postprocessing techniques such as block diagram analysis.
To demonstrate the effectiveness of the proposed method in
restoring composite images degraded by noise, blur, or other
imperfections.
To assess the capability of the method in improving the quality of
composite images created from low-quality input images, utilizing
alpha blending for additional control over final image
characteristics.
LITERATURE SURVEY
3. Perona-Malik Filter:
Wavelet transform-based methods are widely used for image enhancement and
noise reduction in medical imaging. These techniques decompose the image into
different frequency bands, allowing for targeted enhancement or filtering of
specific image features. Wavelet-based denoising methods, in particular, have
shown effectiveness in preserving image details while reducing noise.
Merits:
Provide multi-resolution analysis, allowing for targeted enhancement or
noise reduction in specific frequency bands.
Effective in preserving image details while reducing noise.
Demerits:
Provide multi-resolution analysis, allowing for targeted enhancement or
noise reduction in specific frequency bands.
Effective in preserving image details while reducing noise.
CAUSES
Motion Artifacts
Equipment Malfunction
Patients Anatomy
Segmentation
SOLUTIONS Blending
Registration
Deconvolution
Artifact Removal
Machine
Learning
*Registration: Align multiple images of the same patient or different imaging modalities
*Deconvolution: Enhance image resolution
*Machine learning: Unet, CNN
METHODOLGY
In the process of collecting medical images for your project report, several
crucial steps ensure the integrity, relevance, and ethical compliance of the data.
Firstly, select a dataset that aligns with your research question, considering
factors like size, relevance, and the availability of required image types (e.g., X-
rays, MRI scans). Ensure legal permission for dataset use, verify image quality,
and standardize format.
Define Criteria: Determine the specific criteria for selecting images based
on your project requirements.
Visual Inspection: Review the sampled images visually to assess their
quality and relevance.
Validation: Validate the selected images against your predefined criteria
to ensure they meet the desired standards
Annotation: If necessary, annotate the selected images with relevant
labels or annotations for further analysis or machine learning tasks
Storage and Organization
Backup and Version Control
Ethical Considerations
2.3 PREPROCESSING
Figure 5: (a: original image, b: equalized image, c,d: histogram of original image, equalized image)
After Equalization:
This histogram will ideally be more spread out across the entire
intensity range.Each intensity value should have a more balanced
representation, indicating improved contrast between different
brain regions.
2.3.4 Resizing:
Re-sizing adjusts image dimensions to a desired size, crucial in
standardizing resolution and aspect ratio across data sets. It ensures
consistency in prepossessing and model training, reducing
variability in image sizes. Various interpolation methods preserve
image quality while resizing, including nearest-neighbour, bi-
linear, or cubic. Resizing may also involve cropping or padding
images for specific input requirements. Overall, resizing facilitates
compatibility across different stages of the image processing
pipeline, promoting efficient analysis and model deployment.
2.3.5 Augmentation:
Augmentation is a data enhancement technique used in machine
learning, including medical image analysis. It involves applying
transformations like rotation, flipping, and scaling to increase
dataset diversity. By exposing the model to varied data,
augmentation helps prevent overfitting and improves
generalization. In medical imaging, it's valuable for tasks like
classification and segmentation, where diverse image appearances
are common.
Image Fusion:
Image fusion involves combining multiple images acquired from
different sources or modalities, each potentially containing its own set
of errors or artifacts. By fusing these images, the errors present in one
image may be compensated for by the information from other images,
leading to a final fused image with reduced overall errors. For
example, if one image has noise artifacts while another has blur
artifacts, fusion techniques can combine the sharp details from one
image with the noise reduction from another, resulting in a fused
image with improved clarity and reduced noise.
Image Blending:
Image blending techniques can further refine the fused images by
seamlessly integrating them to create a visually coherent composite
image. Blending methods such as alpha blending or gradient domain
blending can be used to blend images with different errors, ensuring
smooth transitions and maintaining consistency across the composite
image. By blending images with different errors, you can effectively
combine their strengths while minimizing the impact of individual
errors, resulting in a final image that is visually appealing and
accurately represents the underlying data.
Equation that is used to implement these is given below with a brief
explanation:
blended_image = uint8((alphas(i) * double(image1) + alphas(i) *
double(image2) + alphas(i) * double(image3) + alphas(i) *
double(image4) + alphas(i) * double(image5)) / 5);
Type Conversion:
Normalization:
After obtaining the weighted sum of pixel values from all input
images, the sum is divided by the total number of images (5 in
this case).
This step normalizes the blended image to ensure that the pixel
values are within the valid range (0 to 255 for uint8), suitable
for display and further processing.
This ensures that the pixel values of the blended image are
within the valid range for uint8 data type, making it suitable for
display and further processing.
Figure 7: Images after Blending
SOFTWARE REQUIREMENTS
1. MATLAB:
Version: The code provided was developed and tested using MATLAB version
X.XX.
You can obtain MATLAB from MathWorks, the company that develops
MATLAB, either through purchasing a license or accessing it via academic
institutions or organizations that provide MATLAB licenses.
2. Image Processing Toolbox:
Version: The code relies on functions from the Image Processing Toolbox,
version X.XX.
imgaussfilt:
imwarp:
imref2d:
Description: The rms function computes the Root Mean Square value of
an image or a part of an image, representing the average magnitude of
pixel intensities.
4.1 Kaggle
Kaggle Account:
Software Requirements:
To utilize the Kaggle API, ensure that Python is installed on your system along
with the kaggle Python package. The kaggle package can be installed via pip,
the Python package manager.
4.2 Kenhub
Data Format:
Verify the format of the dataset provided by Kenhub. It may be in standard file
formats such as CSV, DICOM, or proprietary formats specific to medical
imaging.
Software Requirements:
Depending on the dataset's format and content, you may need specialized
software for medical image viewing, analysis, or processing. Common software
includes DICOM viewers, medical image analysis software, or programming
environments like MATLAB or Python with libraries such as NumPy, SciPy,
and scikit-image for image processing tasks.
Software Requirement:
DICOM Viewer:
3.1.1 Pseudocode
originalImage = imread(imagepath);
% Define a mask
maskedImage = originalImage;
imshow(maskedImage);
3.1.2 Algorithm
Initialize the mask with all pixels set to a value representing the
background (e.g., logical false for binary masks).
Start
Initialize Environment
Load Images
Create Masks
Define Regions
Apply Masks
Display Results
End
Image 1 Image 2
Normalization
Noise Removal
Preprocessing
Augmentation
Contrast
Resize
Image Fusion
Postprocessing
Image Blending
Quality Evolution
Block Diagram
3.2.1 Algorithms
Normalization:
Noise Removal:
Augmentation:
Read the input image.
Define a mask on the image.
Apply the mask to create a masked image.
Normalize the masked image.
Augment the image by rotating it multiple times.
Display the original and augmented images.
3.2.2 Pseudocodes
1. Normalization:
Input: Image path
Output: Normalized image
Load the image from the specified path
Convert the image to double precision
Calculate the minimum and maximum pixel values in the image
Normalize the pixel values in the image between 0 and 1
Return the normalized image
2. Noise Removal:
Input: Image path, Sigma value for Gaussian filter
Output: Noise-reduced image
Load the image from the specified path
Apply a Gaussian filter to the image for noise reduction with the
specified sigma value
Return the noise-reduced image
3. Enhancement:
Input: Image path
Output: Equalized image and its histogram
Load the image from the specified path
Convert the image to grayscale
Perform histogram equalization on the grayscale image
Return the equalized image and its histogram
4. Augmentation:
Input: Image path, Number of augmented images
Output: Augmented images
Load the image from the specified path
Normalize the masked image
Augment the image by rotating it multiple times
Return the augmented images
3.2.3 FLOW CHART
START
Load
Load image Load Image Image
Load Image
Normalize
Convert to Perform the image
Apply
double precision histogram
Gaussian Filter Augment
Equalisation the image
by rotating
Calculate the in different
min/max angles
Normalise pixels
values
Output- Normalized
image
Output: Augmented
END
Image
3.3 Image Fusion and Blending
3.3.1 Algorithm
START
Resize Images
Create Figure
End
3.3.3 PSEUDOCODE
RMS=
√ 1
N
( I i − I )2
2
max
PSNR= 10 log 10 (
mse
)
(2 μI μI ′ +C 1 ) (2 σI , I ′ +C 2 )
SSIM(I,I′) = ( μI 2 + μI ′ 2 +C 1 )( σI 2 + σI ′ 2 +C 2 )
Overall Conclusion:
Increasing the alpha value in the blending process leads to
improvements in image quality, as evidenced by higher PSNR
values, lower RMS values, and higher SSIM values.
Therefore, selecting higher alpha values for blending results in
better-quality blended images with reduced noise, more consistent
pixel values, and improved structural similarity to the original
images.
CONCLUSION
Future research in this area may involve optimizing alpha blending algorithms
to achieve low-latency processing, ensuring real-time image fusion capabilities
during surgical procedures. Additionally, incorporating advanced registration
techniques into the image fusion process can help achieve accurate alignment of
pre-operative and intra-operative images, enhancing the reliability and
effectiveness of surgical navigation systems.
Overall, the future scope of real-time medical image fusion for surgical
navigation represents a natural extension of the current project, leveraging the
foundational concepts and techniques of alpha blending to address critical
challenges in surgical navigation and improve patient care in minimally
invasive surgery.
2. AI-driven Assistive Technologies for Image-guided
Interventions:
Image Dataset 1:
Kenhub, "Medical Imaging and Radiological Anatomy," Kenhub.com.
[Online]. Available:
https://www.kenhub.com/en/library/anatomy/medical-imaging-and-
radiological-anatomy. [Accessed: 5 April 2024].
Image Dataset 2:
K. Mader, "SIIM Medical Images," Kaggle, Month Year. [Online].
Available: https://www.kaggle.com/datasets/kmader/siim-medical-
images. [Accessed: 5 April 2024].
Appendix 1
% Define a mask
mask = false(size(originalImage, 1), size(originalImage, 2));
mask(50:150, 100:200) = true;
% Display images
figure;
% Original Image
subplot(5, 3, 1);
imshow(originalImage);
title('Original Image');
% Normalized Image
subplot(5, 3, 2);
imshow(normalizedImage);
title('Normalized Image');
% Augmented Images
for i = 1:numAugmentedImages
subplot(5, 3, i + 4);
imshow(augmentedImages{i});
title(['Augmented Image ' num2str(i)]);
end
subplot(5, 5, 23);
plot(alphas, rms_values, 'o-');
title('RMS Curve');
xlabel('Alpha');
ylabel('RMS Value');
grid on;
subplot(5, 5, 24);
plot(alphas, ssim_values, 'o-');
title('SSIM Curve');
xlabel('Alpha');
ylabel('SSIM Value');
grid on;