Embedded smart camera architectures with on-sensor feature extraction