Title: Histogram equalization tests Post by: SeryZone on May 02, 2014, 07:58:02 PM Hello to all, who here! I wrote visualization, thanks for Dunkan C for helping with this idea. Code: begin okay, this part have many-many-many bugs, but I don't gave up and made some experiments. How to make rank-ordered list??? If you help me, I will be very glad! 1) I test this part: Code: quicks(0, Length(Histogram), Histogram); //Sorting Histogram[] array (http://fc03.deviantart.net/fs71/f/2014/122/7/1/histogram_1_by_seryzone-d7gu3hy.jpg) Reminds to me 'Prodigy' spider, ahaha))) :D 2) Here, without sort: (http://fc05.deviantart.net/fs71/f/2014/122/f/4/histogram_2_by_seryzone-d7gu3oy.jpg) 3) Here, I tested squaring: Code: ColorIndex := round( 4096*sqr(percentage[IterDat[x*maxy+y]-min]) ) mod 4096; (http://fc08.deviantart.net/fs71/f/2014/122/c/2/histogram_3_by_seryzone-d7gu3sw.jpg) Very nice result: lower density and more details! 4) And last low-density test - fourth power: Code: ColorIndex := round( 4096*sqr(sqr(percentage[IterDat[x*maxy+y]-min])) ) mod 4096; (http://fc07.deviantart.net/fs71/f/2014/122/a/c/histogram_4_by_seryzone-d7gu3wv.jpg) So, If you can help me with solving mistakes - please, help. This equalization very important for me as designer. P.s. Hope, you rate it... |