Sha256: b8d3f30f3de4812313f660b32725894c0d273cc97d8461b876fede31d0f63283

Contents?: true

Size: 811 Bytes

Versions: 2

Compression:

Stored size: 811 Bytes

Contents

#ifndef SPYGLASS_CONTOUR_H_
#define SPYGLASS_CONTOUR_H_

#include "spyglass.h"

namespace Spyglass {

  SG_GEN_GET_OBJECT_FUNCTION(SG_GET_CONTOUR, std::vector<cv::Point *>);

  namespace Contour {
    void define_ruby_class();
    VALUE get_ruby_class();

    static VALUE rb_alloc(VALUE self);
    static void rb_free(std::vector<cv::Point *> *contour);
    static VALUE rb_initialize(int argc, VALUE *argv, VALUE self);
    static VALUE rb_get_corners(VALUE self);
    static VALUE rb_get_rect(VALUE self);
    static VALUE rb_is_convex(VALUE self);

    std::vector<cv::Point> to_value_vector(std::vector<cv::Point *> *contour);
    VALUE from_cvpoint_vector(std::vector<cv::Point> contours);
    VALUE from_contour_vector(std::vector<std::vector<cv::Point> > contours);
  }
}

#endif // SPYGLASS_CONTOUR_H_

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spyglass-0.0.5.1 ext/spyglass/contour.h
spyglass-0.0.5 ext/spyglass/contour.h