A Hardware/Software Codesign for Image Processing in a Processor Based Embedded System for Vehicle Detection