Hardware/Software Codesign for Image Processing