Split feature and histogram calculation into two batches to reduce memory usage and added HSV colour space