|
Algorithm 1 GBHSV-Leuk. |
|
Input: Microscopic Image
|
|
for F(I[m][n]) = I[m][n] − I[m][n] do
|
|
Apply Gaussian Blur technique
|
|
if
is not filled then
|
|
Fill pixel
|
|
end if
|
|
Convert the blurred frame from RGB color space to HSV color space
|
|
Convert the hue value using the largest RGB values
|
|
Compute the L and U hues
|
|
Calculate I, which is the mask image
|
|
Create 5 × 5 kernel to remove noise
|
|
Compute the structuring element S
|
|
Compute the dilation function
|
|
Apply binary threshold
|
|
Compute detection using threshold value and transformation function
|
|
Apply Bitwise AND between the Original image and Threshold
|
|
end for
|
|
Highlight the cancerous cell with contours
|
|
return
|
|
Output: Image with cancerous cell highlight using contours
|
|
Notations in the algorithm:
|
|
I = Image under test
|
|
m = Number of rows of image pixels
|
|
n = Number of columns of image pixels
|
|
L = Lower hue
|
|
U = Upper hue/ higher hue
|
|
I = Mask image
|
| S = Structuring element
|