SlideShare a Scribd company logo
1 of 24
A N I R U D H M U N N A N G I
D A V I D D R A K E
Thresholding and Counting
Overview
 Objectives
 Background
 Matlab
 Importing the Image
 Thresholding
 Inverse Mapping
 Image Subtraction
 Counting the Number of Cells
 Conclusion
Objectives
 Segment cells from the background media in a
digitized microscopy slide image using a basic
thresholding technique
 Count the total amount of cells segmented from the
background media
Background
 Basic Thresholding
 Background pixels have intensity values grouped into two
dominant modes
 Select a threshold, T, that separates these modes
 Segmented image:
Tyxfif
Tyxfif
yxg
),(
),(
0
1
),(
(Gonzalez & Wood, 2008)
Background
 Global Thresholding
1. Select an initial estimate for the global threshold, T
2. Segment the image using the previous equation
3. Compute the average (mean) intensity values m1 and m2 for
the pixels G1 and G2, respectively
4. Compute a new threshold value:
5. Repeat steps 2 through 4 until optimum threshold
determined
(Gonzalez & Wood, 2008)
)(
2
1
21 mmT
Background
 Otsu’s Method
 Digital image with M x N pixels has {0, 1, 2, …., L – 1} Intensity Levels
 Normalized histogram
 T(k) = k, 0 < k < L-1; separate pixels into two classes C1 and C2
 Probability that a pixel is assigned to class C1 and C2
 The mean intensity value of the pixels assigned to C1 and C2
(Gonzalez & Wood, 2008)
NMnp ii / 0,1
1
0
i
L
i
i pp
k
i
ipkP
0
1 )( )(1)( 1
1
1
2 kPpkP
L
ki
i
k
i
iip
kP
km
01
1
)(
1
)(
1
12
2
)(
1
)(
L
ki
iip
kP
km
Background
 Otsu’s Method
 Evaluate k using normalized, dimensionless metric
 Introduce variable k into the previous equation
 Obtain maximum threshold value k*, by maximizing σ2
B, then apply to basic
thresholding equation
2
2
G
B
)1(
)(
11
2
12
PP
mPmG
B
1
0
2
.
2
)(
L
i
iGG pmi
2
2
)(
)(
G
B k
k
))(1)((
)]()([
11
2
12
kPkP
kmkPmG
B
(Gonzalez & Wood, 2008)
)(max*)( 2
10
2
kk B
Lk
B
*),(
*),(
0
1
),(
kyxfif
kyxfif
yxg
Importing the Images
 In Matlab:
img_gs=imread('Normal1.jpg'); %Load the image
figure
imshow(img_gs); %Plot the original image
title('Original Image: Grayscale');
Importing the images
X: 349 Y: 270
Index: 173
RGB: 0.529, 0.529, 0.529
Original Image: Grayscale
X: 456 Y: 546
Index: 171
RGB: 0.514, 0.514, 0.514
X: 746 Y: 388
Index: 176
RGB: 0.553, 0.553, 0.553
Thresholding
 In Matlab:
ith=175/255; %Determine threshold by cursor
img_t=im2bw(img_gs,th); %Convert to binary
figure
imshow(img_t); %Plot the image
title('Thresholded Image');
Thresholding
Thresholded Image
Thresholding
 Due to cell staining and digitization of the
microscopy slides, the corners of the slides were
darkened towards the color of the individual cells
 This will cause tremendous error in our counting
algorithm, so it must be removed using inverse
mapping and image subtraction
Inverse Mapping
 In Matlab:
imginv=~img_t; %Take the inverse of the binary map
figure
imshow(imginv); %Plot the inversed binary image
title('Threshold Image-Color Inverted');
Inverse Mapping
Threshold Image-Color Inverted
Image Subtraction
 In Matlab:
%Find large connected parts
subimg=bwareaopen(imginv,400);
%Best approximation of threshold is 400 after trial and error
figure
imshow(subimg); %Plot the image
title('image after small pixels removed');
Image Subtraction
image after small pixels removed
Image Subtraction
 In Matlab:
%Subtract the corners from the inverse binary map
newimg=imginv-subimg;
figure
imshow(newimg); %Plot the image
title('Image of the individual cells);
Image Subtraction
Image of the individual cells
Counting the Number of Cells
 Important to approximate the exact number of cells
 Results will be used in a statistical analysis comparing repaired
tissue with controls
 Counting error will most likely occur
 How much fluorescence is absorbed by the cells determines
the appropriate threshold parameter (some cells excluded)
 Elimination of the corner areas (more exclusion of cells)
 Each slide differs in the amount of staining
Counting the Number of Cells
 In Matlab:
%Count the number of cells by finding groups of largely
%connected pixels
b=bwboundaries(img_t);
figure
hold on
imshow(img_t); %Plot the image
title('Threshold Image-Color Inverted');
text(10,10, strcat('color{green}Objects Found:', …
num2str(length(b)))); %Add count no. to image
hold off
Counting the Number of Cells
Threshold Image-Color Inverted of the Original Tissue Section
Objects Found:668
Counting the Number of Cells
Threshold Image-Color Inverted of the Repaired Tissue Section
Objects Found:1667
Conclusion
 Algorithm successfully thresholds and counts cells
from a digitized microscopy slide, thus able to show
that repaired tissue sections show more cells than
original tissue sections
 Future work
 Approximation of the cell count percent error
 Automation for calculating the threshold parameter
(i.e Global thresholding)
 Applying different thresholding algorithms
(i.e. Otsu’s method)
References
 Gonzalez, R.C, Woods, R.E., Digital Image
Procesing, 3rd Edition, Pearson Prentice Hall, 2008.
 Images obtained from bioinstrumentation lab UC

More Related Content

What's hot

J waters sab_poster_2
J waters sab_poster_2J waters sab_poster_2
J waters sab_poster_2Jono Waters
 
Reversible Data Hiding in the Spatial and Frequency Domains
Reversible Data Hiding in the Spatial and Frequency DomainsReversible Data Hiding in the Spatial and Frequency Domains
Reversible Data Hiding in the Spatial and Frequency DomainsCSCJournals
 
Efficient Technique for Image Stenography Based on coordinates of pixels
Efficient Technique for Image Stenography Based on coordinates of pixelsEfficient Technique for Image Stenography Based on coordinates of pixels
Efficient Technique for Image Stenography Based on coordinates of pixelsIOSR Journals
 
K means clustering
K means clusteringK means clustering
K means clusteringKuppusamy P
 
Gpu based-image-quality-assessment-using-structural-similarity-(ssim)-index
Gpu based-image-quality-assessment-using-structural-similarity-(ssim)-indexGpu based-image-quality-assessment-using-structural-similarity-(ssim)-index
Gpu based-image-quality-assessment-using-structural-similarity-(ssim)-indexMahesh Khadatare
 
Enhanced Human Computer Interaction using hand gesture analysis on GPU
Enhanced Human Computer Interaction using hand gesture analysis on GPUEnhanced Human Computer Interaction using hand gesture analysis on GPU
Enhanced Human Computer Interaction using hand gesture analysis on GPUMahesh Khadatare
 
Pyclustering tutorial - K-means
Pyclustering tutorial - K-meansPyclustering tutorial - K-means
Pyclustering tutorial - K-meansAndrei Novikov
 
Census and spatial data in sql server 2008 designing tools for hazard mitigat...
Census and spatial data in sql server 2008 designing tools for hazard mitigat...Census and spatial data in sql server 2008 designing tools for hazard mitigat...
Census and spatial data in sql server 2008 designing tools for hazard mitigat...Texas Natural Resources Information System
 
AN ENHANCED SEPARABLE REVERSIBLE DATA HIDING IN ENCRYPTED IMAGES USING SIDE M...
AN ENHANCED SEPARABLE REVERSIBLE DATA HIDING IN ENCRYPTED IMAGES USING SIDE M...AN ENHANCED SEPARABLE REVERSIBLE DATA HIDING IN ENCRYPTED IMAGES USING SIDE M...
AN ENHANCED SEPARABLE REVERSIBLE DATA HIDING IN ENCRYPTED IMAGES USING SIDE M...Editor IJMTER
 
2013.10.24 big datavisualization
2013.10.24 big datavisualization2013.10.24 big datavisualization
2013.10.24 big datavisualizationSean Kandel
 
Master defence 2020 - Vadym Korshunov - Region-Selected Image Generation with...
Master defence 2020 - Vadym Korshunov - Region-Selected Image Generation with...Master defence 2020 - Vadym Korshunov - Region-Selected Image Generation with...
Master defence 2020 - Vadym Korshunov - Region-Selected Image Generation with...Lviv Data Science Summer School
 
Machine Status Prediction for Dynamic and Heterogenous Cloud Environment
Machine Status Prediction for Dynamic and Heterogenous Cloud EnvironmentMachine Status Prediction for Dynamic and Heterogenous Cloud Environment
Machine Status Prediction for Dynamic and Heterogenous Cloud Environmentjins0618
 
The International Journal of Engineering and Science (The IJES)
The International Journal of Engineering and Science (The IJES)The International Journal of Engineering and Science (The IJES)
The International Journal of Engineering and Science (The IJES)theijes
 
Yonsei Data Science Lab - Computer Vision
Yonsei Data Science Lab - Computer VisionYonsei Data Science Lab - Computer Vision
Yonsei Data Science Lab - Computer VisionDataScienceLab
 

What's hot (18)

J waters sab_poster_2
J waters sab_poster_2J waters sab_poster_2
J waters sab_poster_2
 
Reversible Data Hiding in the Spatial and Frequency Domains
Reversible Data Hiding in the Spatial and Frequency DomainsReversible Data Hiding in the Spatial and Frequency Domains
Reversible Data Hiding in the Spatial and Frequency Domains
 
Efficient Technique for Image Stenography Based on coordinates of pixels
Efficient Technique for Image Stenography Based on coordinates of pixelsEfficient Technique for Image Stenography Based on coordinates of pixels
Efficient Technique for Image Stenography Based on coordinates of pixels
 
K means clustering
K means clusteringK means clustering
K means clustering
 
Gpu based-image-quality-assessment-using-structural-similarity-(ssim)-index
Gpu based-image-quality-assessment-using-structural-similarity-(ssim)-indexGpu based-image-quality-assessment-using-structural-similarity-(ssim)-index
Gpu based-image-quality-assessment-using-structural-similarity-(ssim)-index
 
Enhanced Human Computer Interaction using hand gesture analysis on GPU
Enhanced Human Computer Interaction using hand gesture analysis on GPUEnhanced Human Computer Interaction using hand gesture analysis on GPU
Enhanced Human Computer Interaction using hand gesture analysis on GPU
 
Deep Learning for Computer Vision: Saliency Prediction (UPC 2016)
Deep Learning for Computer Vision: Saliency Prediction (UPC 2016)Deep Learning for Computer Vision: Saliency Prediction (UPC 2016)
Deep Learning for Computer Vision: Saliency Prediction (UPC 2016)
 
Centernet
CenternetCenternet
Centernet
 
Background Subtraction Based on Phase and Distance Transform Under Sudden Ill...
Background Subtraction Based on Phase and Distance Transform Under Sudden Ill...Background Subtraction Based on Phase and Distance Transform Under Sudden Ill...
Background Subtraction Based on Phase and Distance Transform Under Sudden Ill...
 
Pyclustering tutorial - K-means
Pyclustering tutorial - K-meansPyclustering tutorial - K-means
Pyclustering tutorial - K-means
 
Census and spatial data in sql server 2008 designing tools for hazard mitigat...
Census and spatial data in sql server 2008 designing tools for hazard mitigat...Census and spatial data in sql server 2008 designing tools for hazard mitigat...
Census and spatial data in sql server 2008 designing tools for hazard mitigat...
 
Clustering lect
Clustering lectClustering lect
Clustering lect
 
AN ENHANCED SEPARABLE REVERSIBLE DATA HIDING IN ENCRYPTED IMAGES USING SIDE M...
AN ENHANCED SEPARABLE REVERSIBLE DATA HIDING IN ENCRYPTED IMAGES USING SIDE M...AN ENHANCED SEPARABLE REVERSIBLE DATA HIDING IN ENCRYPTED IMAGES USING SIDE M...
AN ENHANCED SEPARABLE REVERSIBLE DATA HIDING IN ENCRYPTED IMAGES USING SIDE M...
 
2013.10.24 big datavisualization
2013.10.24 big datavisualization2013.10.24 big datavisualization
2013.10.24 big datavisualization
 
Master defence 2020 - Vadym Korshunov - Region-Selected Image Generation with...
Master defence 2020 - Vadym Korshunov - Region-Selected Image Generation with...Master defence 2020 - Vadym Korshunov - Region-Selected Image Generation with...
Master defence 2020 - Vadym Korshunov - Region-Selected Image Generation with...
 
Machine Status Prediction for Dynamic and Heterogenous Cloud Environment
Machine Status Prediction for Dynamic and Heterogenous Cloud EnvironmentMachine Status Prediction for Dynamic and Heterogenous Cloud Environment
Machine Status Prediction for Dynamic and Heterogenous Cloud Environment
 
The International Journal of Engineering and Science (The IJES)
The International Journal of Engineering and Science (The IJES)The International Journal of Engineering and Science (The IJES)
The International Journal of Engineering and Science (The IJES)
 
Yonsei Data Science Lab - Computer Vision
Yonsei Data Science Lab - Computer VisionYonsei Data Science Lab - Computer Vision
Yonsei Data Science Lab - Computer Vision
 

Similar to Cell calculation

Image Texture Analysis
Image Texture AnalysisImage Texture Analysis
Image Texture Analysislalitxp
 
SLIC Superpixel Based Self Organizing Maps Algorithm for Segmentation of Micr...
SLIC Superpixel Based Self Organizing Maps Algorithm for Segmentation of Micr...SLIC Superpixel Based Self Organizing Maps Algorithm for Segmentation of Micr...
SLIC Superpixel Based Self Organizing Maps Algorithm for Segmentation of Micr...IJAAS Team
 
D0325016021
D0325016021D0325016021
D0325016021theijes
 
IJCER (www.ijceronline.com) International Journal of computational Engineerin...
IJCER (www.ijceronline.com) International Journal of computational Engineerin...IJCER (www.ijceronline.com) International Journal of computational Engineerin...
IJCER (www.ijceronline.com) International Journal of computational Engineerin...ijceronline
 
Performance analysis of transformation and bogdonov chaotic substitution base...
Performance analysis of transformation and bogdonov chaotic substitution base...Performance analysis of transformation and bogdonov chaotic substitution base...
Performance analysis of transformation and bogdonov chaotic substitution base...IJECEIAES
 
Histogram Processing
Histogram ProcessingHistogram Processing
Histogram ProcessingAmnaakhaan
 
2.[9 17]comparative analysis between dct & dwt techniques of image compression
2.[9 17]comparative analysis between dct & dwt techniques of image compression2.[9 17]comparative analysis between dct & dwt techniques of image compression
2.[9 17]comparative analysis between dct & dwt techniques of image compressionAlexander Decker
 
2.[9 17]comparative analysis between dct & dwt techniques of image compression
2.[9 17]comparative analysis between dct & dwt techniques of image compression2.[9 17]comparative analysis between dct & dwt techniques of image compression
2.[9 17]comparative analysis between dct & dwt techniques of image compressionAlexander Decker
 
Lect 03 - first portion
Lect 03 - first portionLect 03 - first portion
Lect 03 - first portionMoe Moe Myint
 
Image Segmentation.ppt
Image Segmentation.pptImage Segmentation.ppt
Image Segmentation.pptakshaya870130
 
Introduction to Image Processing with MATLAB
Introduction to Image Processing with MATLABIntroduction to Image Processing with MATLAB
Introduction to Image Processing with MATLABSriram Emarose
 
Multimedia content based retrieval in digital libraries
Multimedia content based retrieval in digital librariesMultimedia content based retrieval in digital libraries
Multimedia content based retrieval in digital librariesMazin Alwaaly
 
Segmentation by Fusion of Self-Adaptive SFCM Cluster in Multi-Color Space Com...
Segmentation by Fusion of Self-Adaptive SFCM Cluster in Multi-Color Space Com...Segmentation by Fusion of Self-Adaptive SFCM Cluster in Multi-Color Space Com...
Segmentation by Fusion of Self-Adaptive SFCM Cluster in Multi-Color Space Com...CSCJournals
 
DeepXplore: Automated Whitebox Testing of Deep Learning
DeepXplore: Automated Whitebox Testing of Deep LearningDeepXplore: Automated Whitebox Testing of Deep Learning
DeepXplore: Automated Whitebox Testing of Deep LearningMasahiro Sakai
 
Pipelined Architecture of 2D-DCT, Quantization and ZigZag Process for JPEG Im...
Pipelined Architecture of 2D-DCT, Quantization and ZigZag Process for JPEG Im...Pipelined Architecture of 2D-DCT, Quantization and ZigZag Process for JPEG Im...
Pipelined Architecture of 2D-DCT, Quantization and ZigZag Process for JPEG Im...VLSICS Design
 
PIPELINED ARCHITECTURE OF 2D-DCT, QUANTIZATION AND ZIGZAG PROCESS FOR JPEG IM...
PIPELINED ARCHITECTURE OF 2D-DCT, QUANTIZATION AND ZIGZAG PROCESS FOR JPEG IM...PIPELINED ARCHITECTURE OF 2D-DCT, QUANTIZATION AND ZIGZAG PROCESS FOR JPEG IM...
PIPELINED ARCHITECTURE OF 2D-DCT, QUANTIZATION AND ZIGZAG PROCESS FOR JPEG IM...VLSICS Design
 

Similar to Cell calculation (20)

Image Texture Analysis
Image Texture AnalysisImage Texture Analysis
Image Texture Analysis
 
SLIC Superpixel Based Self Organizing Maps Algorithm for Segmentation of Micr...
SLIC Superpixel Based Self Organizing Maps Algorithm for Segmentation of Micr...SLIC Superpixel Based Self Organizing Maps Algorithm for Segmentation of Micr...
SLIC Superpixel Based Self Organizing Maps Algorithm for Segmentation of Micr...
 
Bt32444450
Bt32444450Bt32444450
Bt32444450
 
D0325016021
D0325016021D0325016021
D0325016021
 
IJCER (www.ijceronline.com) International Journal of computational Engineerin...
IJCER (www.ijceronline.com) International Journal of computational Engineerin...IJCER (www.ijceronline.com) International Journal of computational Engineerin...
IJCER (www.ijceronline.com) International Journal of computational Engineerin...
 
B070306010
B070306010B070306010
B070306010
 
Cj36511514
Cj36511514Cj36511514
Cj36511514
 
Performance analysis of transformation and bogdonov chaotic substitution base...
Performance analysis of transformation and bogdonov chaotic substitution base...Performance analysis of transformation and bogdonov chaotic substitution base...
Performance analysis of transformation and bogdonov chaotic substitution base...
 
Histogram Processing
Histogram ProcessingHistogram Processing
Histogram Processing
 
2.[9 17]comparative analysis between dct & dwt techniques of image compression
2.[9 17]comparative analysis between dct & dwt techniques of image compression2.[9 17]comparative analysis between dct & dwt techniques of image compression
2.[9 17]comparative analysis between dct & dwt techniques of image compression
 
2.[9 17]comparative analysis between dct & dwt techniques of image compression
2.[9 17]comparative analysis between dct & dwt techniques of image compression2.[9 17]comparative analysis between dct & dwt techniques of image compression
2.[9 17]comparative analysis between dct & dwt techniques of image compression
 
Lect 03 - first portion
Lect 03 - first portionLect 03 - first portion
Lect 03 - first portion
 
Image Segmentation.ppt
Image Segmentation.pptImage Segmentation.ppt
Image Segmentation.ppt
 
Introduction to Image Processing with MATLAB
Introduction to Image Processing with MATLABIntroduction to Image Processing with MATLAB
Introduction to Image Processing with MATLAB
 
Multimedia content based retrieval in digital libraries
Multimedia content based retrieval in digital librariesMultimedia content based retrieval in digital libraries
Multimedia content based retrieval in digital libraries
 
Segmentation by Fusion of Self-Adaptive SFCM Cluster in Multi-Color Space Com...
Segmentation by Fusion of Self-Adaptive SFCM Cluster in Multi-Color Space Com...Segmentation by Fusion of Self-Adaptive SFCM Cluster in Multi-Color Space Com...
Segmentation by Fusion of Self-Adaptive SFCM Cluster in Multi-Color Space Com...
 
DeepXplore: Automated Whitebox Testing of Deep Learning
DeepXplore: Automated Whitebox Testing of Deep LearningDeepXplore: Automated Whitebox Testing of Deep Learning
DeepXplore: Automated Whitebox Testing of Deep Learning
 
Quatum fridge
Quatum fridgeQuatum fridge
Quatum fridge
 
Pipelined Architecture of 2D-DCT, Quantization and ZigZag Process for JPEG Im...
Pipelined Architecture of 2D-DCT, Quantization and ZigZag Process for JPEG Im...Pipelined Architecture of 2D-DCT, Quantization and ZigZag Process for JPEG Im...
Pipelined Architecture of 2D-DCT, Quantization and ZigZag Process for JPEG Im...
 
PIPELINED ARCHITECTURE OF 2D-DCT, QUANTIZATION AND ZIGZAG PROCESS FOR JPEG IM...
PIPELINED ARCHITECTURE OF 2D-DCT, QUANTIZATION AND ZIGZAG PROCESS FOR JPEG IM...PIPELINED ARCHITECTURE OF 2D-DCT, QUANTIZATION AND ZIGZAG PROCESS FOR JPEG IM...
PIPELINED ARCHITECTURE OF 2D-DCT, QUANTIZATION AND ZIGZAG PROCESS FOR JPEG IM...
 

Recently uploaded

KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlysanyuktamishra911
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)Suman Mia
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdfankushspencer015
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)simmis5
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingrakeshbaidya232001
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordAsst.prof M.Gokilavani
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Call Girls in Nagpur High Profile
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Christo Ananth
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college projectTonystark477637
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...roncy bisnoi
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Christo Ananth
 

Recently uploaded (20)

KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
 

Cell calculation

  • 1. A N I R U D H M U N N A N G I D A V I D D R A K E Thresholding and Counting
  • 2. Overview  Objectives  Background  Matlab  Importing the Image  Thresholding  Inverse Mapping  Image Subtraction  Counting the Number of Cells  Conclusion
  • 3. Objectives  Segment cells from the background media in a digitized microscopy slide image using a basic thresholding technique  Count the total amount of cells segmented from the background media
  • 4. Background  Basic Thresholding  Background pixels have intensity values grouped into two dominant modes  Select a threshold, T, that separates these modes  Segmented image: Tyxfif Tyxfif yxg ),( ),( 0 1 ),( (Gonzalez & Wood, 2008)
  • 5. Background  Global Thresholding 1. Select an initial estimate for the global threshold, T 2. Segment the image using the previous equation 3. Compute the average (mean) intensity values m1 and m2 for the pixels G1 and G2, respectively 4. Compute a new threshold value: 5. Repeat steps 2 through 4 until optimum threshold determined (Gonzalez & Wood, 2008) )( 2 1 21 mmT
  • 6. Background  Otsu’s Method  Digital image with M x N pixels has {0, 1, 2, …., L – 1} Intensity Levels  Normalized histogram  T(k) = k, 0 < k < L-1; separate pixels into two classes C1 and C2  Probability that a pixel is assigned to class C1 and C2  The mean intensity value of the pixels assigned to C1 and C2 (Gonzalez & Wood, 2008) NMnp ii / 0,1 1 0 i L i i pp k i ipkP 0 1 )( )(1)( 1 1 1 2 kPpkP L ki i k i iip kP km 01 1 )( 1 )( 1 12 2 )( 1 )( L ki iip kP km
  • 7. Background  Otsu’s Method  Evaluate k using normalized, dimensionless metric  Introduce variable k into the previous equation  Obtain maximum threshold value k*, by maximizing σ2 B, then apply to basic thresholding equation 2 2 G B )1( )( 11 2 12 PP mPmG B 1 0 2 . 2 )( L i iGG pmi 2 2 )( )( G B k k ))(1)(( )]()([ 11 2 12 kPkP kmkPmG B (Gonzalez & Wood, 2008) )(max*)( 2 10 2 kk B Lk B *),( *),( 0 1 ),( kyxfif kyxfif yxg
  • 8. Importing the Images  In Matlab: img_gs=imread('Normal1.jpg'); %Load the image figure imshow(img_gs); %Plot the original image title('Original Image: Grayscale');
  • 9. Importing the images X: 349 Y: 270 Index: 173 RGB: 0.529, 0.529, 0.529 Original Image: Grayscale X: 456 Y: 546 Index: 171 RGB: 0.514, 0.514, 0.514 X: 746 Y: 388 Index: 176 RGB: 0.553, 0.553, 0.553
  • 10. Thresholding  In Matlab: ith=175/255; %Determine threshold by cursor img_t=im2bw(img_gs,th); %Convert to binary figure imshow(img_t); %Plot the image title('Thresholded Image');
  • 12. Thresholding  Due to cell staining and digitization of the microscopy slides, the corners of the slides were darkened towards the color of the individual cells  This will cause tremendous error in our counting algorithm, so it must be removed using inverse mapping and image subtraction
  • 13. Inverse Mapping  In Matlab: imginv=~img_t; %Take the inverse of the binary map figure imshow(imginv); %Plot the inversed binary image title('Threshold Image-Color Inverted');
  • 15. Image Subtraction  In Matlab: %Find large connected parts subimg=bwareaopen(imginv,400); %Best approximation of threshold is 400 after trial and error figure imshow(subimg); %Plot the image title('image after small pixels removed');
  • 16. Image Subtraction image after small pixels removed
  • 17. Image Subtraction  In Matlab: %Subtract the corners from the inverse binary map newimg=imginv-subimg; figure imshow(newimg); %Plot the image title('Image of the individual cells);
  • 18. Image Subtraction Image of the individual cells
  • 19. Counting the Number of Cells  Important to approximate the exact number of cells  Results will be used in a statistical analysis comparing repaired tissue with controls  Counting error will most likely occur  How much fluorescence is absorbed by the cells determines the appropriate threshold parameter (some cells excluded)  Elimination of the corner areas (more exclusion of cells)  Each slide differs in the amount of staining
  • 20. Counting the Number of Cells  In Matlab: %Count the number of cells by finding groups of largely %connected pixels b=bwboundaries(img_t); figure hold on imshow(img_t); %Plot the image title('Threshold Image-Color Inverted'); text(10,10, strcat('color{green}Objects Found:', … num2str(length(b)))); %Add count no. to image hold off
  • 21. Counting the Number of Cells Threshold Image-Color Inverted of the Original Tissue Section Objects Found:668
  • 22. Counting the Number of Cells Threshold Image-Color Inverted of the Repaired Tissue Section Objects Found:1667
  • 23. Conclusion  Algorithm successfully thresholds and counts cells from a digitized microscopy slide, thus able to show that repaired tissue sections show more cells than original tissue sections  Future work  Approximation of the cell count percent error  Automation for calculating the threshold parameter (i.e Global thresholding)  Applying different thresholding algorithms (i.e. Otsu’s method)
  • 24. References  Gonzalez, R.C, Woods, R.E., Digital Image Procesing, 3rd Edition, Pearson Prentice Hall, 2008.  Images obtained from bioinstrumentation lab UC