17 Comments

  1. Marco

    Hello, thanks for sharing, your code looks great because it doesn’t require additional libraries then opencv’s ones, but on line #15 and #16 there are 2 incompleted include, fixing this error gives another error on ATD, on the compiler i got (No Matching Member Function for call to ‘at’), looks like you have forgotten the , can you provide the fixed code? Thanks a lot and have a nice day!

    • Eric

      Hi Marco,

      Thanks for asking, I found that angle brackets (and code in angle brackets) in code do not show correctly and that caused the problem. The two missing includes are math.h and iostream; and the ATD part is #define ATD at(angle bracket)double(closing angle bracket). Hope this comment helps.

  2. Hi,
    that is a very cool algorithm. Thanks for sharing.

    Just some remarks to your code:
    – OpenCV loads color images in BGR, not in RGB. So the channel variables are labeled incorrectly. But is has no consqeuences in your case.
    – ctime has to be included to use clock()

    The fixed code (also with corrected brackets problem) can be found here: http://codepad.org/PU8ezzdl

    Perhaps you want to include a link to the correct raw code in your post, so not every of your readers has to fix this independently.

    Dobiasd

Leave a Reply

Your email address will not be published. Required fields are marked *