Name: Ghufran Alhashim ID: 220017600
Q1\Write a Matlab code that applies the region growing algorithm to segment a tumor in a medical
image
Code:
I = imread('gray.png');
imshow(I)
%%
J = grayconnected(I,50,50);
imshow(labeloverlay(I,J))
%%
J2 = grayconnected(I,110,65);
imshow(labeloverlay(I,J2))
Result:
Q2\ In no more than 3 pages, describe the characteristics of following image file formats: Bmp, tif, png
and DICOM. Summarize these characteristics in a table to show the differences between different
formats.
1.BMP (Bitmap Image File)
Explanation:
It is developed by Microsoft
The Uncompressed raster image format
It supports various color depths 1-bit, 4-bit, 8-bit, 16-bit, 24-bit and the 32-bit)
It is Relatively large file sizes due to lack of compression
It is widely supported by various software and operating systems
2.TIFF (Tagged Image File Format)
Explanation:
It is Developed by Aldus Corporation and Microsoft
It Supports both raster and vector image data
And also supports various compression methods example LZW, JPEG, CCITT
And it Supports multiple pages or layers in a single file
Widely used in publishing, desktop publishing and medical imaging
3.PNG (Portable Network Graphic)
Explanation:
It is a versatile image file format
Designers often use it files for logos
It retains of all its original data when compressed.
Great for detailed graphics and charts on websites
It is an open format
4.DICOM (Digital Imaging and Communications in Medicine)
Explanation:
It Standard file format for medical imaging
It is Developed by the National Electrical Manufacturers Association (NEMA)
It Supports various modalities example CT, MRI, X-ray, ultrasound
It Stores both image data and metadata example patient information, acquisition
parameters
And it is widely used in healthcare institutions for storing, transmitting, and
viewing medical images
The table summarizing the key characteristics of these image file formats
Format Color Compression Transparency Metadata Primary use
support
BMP Yes Uncompressed No No General/purpose
imaging
TIFF Yes Lossless/lossy Yes Yes Publishing,
desktop
publishing,
medical imaging
PNG Yes Lossless Yes Limited Web graphics,
logos, simple
images
DICOM Yes Lossless/lossy No Yes Medical imaging