A model-based design flow for embedded vision applications on heterogeneous architectures