Thursday, February 16, 2012

Image enhancement


  1. Display histogram
    • imhist(I)
  2. Histogram equalization
    • lena_eq=histeq(lena,256);
  3. Contrast-limited adaptive histogram equalization
    • lena_enhanced = adapthisteq(lena,'NumTiles', [8 8] ,'ClipLimit',0.0005); %Higher numbers result in more contrast, local histogram equalization
  4. Histogram sliding
    • lena_enhanced=lena;
    • greater_than_200 = find(lena > 200);
    • lena_enhanced(greater_than_200) = imadd(lena(greater_than_200),10); %shift the image histogram to the right 10 values for all pixel values greater than 200.

No comments:

Post a Comment

Mounting USB drives in Windows Subsystem for Linux

Windows Subsystem for Linux can use (mount): SD card USB drives CD drives (CDFS) Network drives UNC paths Local storage / drives Drives form...