This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+(int *) processImageWithHsv:(cv::Mat&)rgb_image { | |
cv::Mat hsv_image; | |
cvtColor(rgb_image, hsv_image, CV_RGB2HSV); | |
// Quanta Ratio | |
int scale = 10; | |
int images_amount = 1; | |
int image_channels[] = {0, 1, 2}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Credits to: | |
// https://gist.github.com/feighter09/c502d7550e4cdb82d526157f5cf8bef1 | |
// http://nshipster.com/ibinspectable-ibdesignable/ | |
// | |
// Created by José Tomás González on 23-04-17. | |
// Copyright © 2017 Swipe. All rights reserved. | |
// | |
import Foundation |