im2double, double and adapthisteq
Show older comments
Hello, I'm writing a PIV algorithm, I need to read two grayscale images divide them in interrogation windows and do cross-correlation using xcorr2. I'm having troubles converting the images from uint8 to double: firstly, I don't know if it is better to use double or im2double for converting the images, will corss-correlation give different results? Secondly, I need to do adaptive histogram equalization, if I convert to double using double, before doing it, it produces bad output. If i use im2double instead, it does work; I then think it requires input of type double to be between 0 and 1, I searched the documentation, but it does not say anything about it. I am right? Lastly, is there there any difference if I convert to double before or after the equalization? Thank you very much.
Accepted Answer
More Answers (0)
Categories
Find more on Fluid Dynamics in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!