Jump to content

40tude

Members
  • Posts

    1
  • Joined

  • Last visited

Everything posted by 40tude

  1. I know I should not send my submission here but I was not able to send it to codingchallenge@lavausergroup.org since it is a standalone executable Anyway, if we all agree, this is just for fun. Right ? So find below my submision. Heu... Yes, I know I'm all wrong since it is all done with LabWindows/CVI but anyway it was fun to do some coding this week-end Give it a try : Put the .exe (no virus, I promise) in a /temp directory and double click on water.exe You may need CVI 7.1 runtime engine but for what I know it comes with CVI and MAX Once the application window in on the screen, select a bmp file and move the mouse over the picture While the application is running, using the file menu, you can pick another bmp file. Don't pick a big one because the application is then quite slow. The making of : - it is all in CVI - as you see, nothing else than the exe is required and the size of the .exe is quite reasonnable (40 KB) - no external DLL nor IMAQ Vision lib involved. It's all about pixel arithmetic - the code use 3 threads. - Double check but the processor load should be acceptable on an "up to date" PC - the source code is splitted in two .c files (200 lines and 130 lines respectively) Have fun and let me know about my "wrong" answer, Philippe [Edit: Michael Aivaliotis: I removed the attachement]
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.