DiegoCatalano / Catalano-Framework

Framework
GNU Lesser General Public License v3.0
295 stars 99 forks source link

FakeHDR: Can't call setPixels() on a recycled bitmap #24

Closed lionelmessi closed 8 years ago

lionelmessi commented 8 years ago

Hi Diego,

I am trying to use the FAKE HDR in Android but I get this error on using it. Can you help in providing pointers as to where to look.

Thanks!

lionelmessi commented 8 years ago

I have a grayscale image and would like to enhance the quality in terms of brightness and contrast (Somewhere on the lines of Matlab: imadjust, adapthisteq). The original images appear to be washed out.

Which function would you like to suggest for this kind of problem? I also looked at AdaptiveContrastEnhancement() but not able to figure out good values for the contants! Any help is highly appreciated.

DiegoCatalano commented 8 years ago

Hello lionelmessi,

The FakeHDR is fixed. This filter is expensive to work in Android because needs at least 2 copy of the image, and the Android has a memory limitation. To achieve the results of imadjust, you can use HistogramAdjust (works in RGB too :)). You can try others filters as: Clahe, HistogramEqualization, HistogramStretch.

Cheers !

lionelmessi commented 8 years ago

Ohh great! BTW I wrote that myself yesterday but pulled and compared with you. Works awesome!