Download presentation
Presentation is loading. Please wait.
1
in Transform and Feature Extraction
Supplement Slides in Transform and Feature Extraction
2
Calculation of an image histogram (New Slide – please note down)
Create an array histogram with 2b elements for all grey levels, i, do histogram[i] = 0 end for for all pixel coordinates, x and y, do Increment histogram [f(x,y)] by 1
3
Calculating histogram equalisation (New Slide – please note down)
Compute a scaling factor, a=255/number of pixels Calculate histogram (see previous algorithm) c[0] = a*histogram[0] for all remaining grey levels, i, do c[i] = c[i-1]+a*histogram[i] end for for all pixel coordinates, x and y, do g(x,y) = c[f(x,y)]
Similar presentations
© 2024 SlidePlayer.com Inc.
All rights reserved.