Skip to content

Instantly share code, notes, and snippets.

View spokendotcpp's full-sized avatar

Thibault H. spokendotcpp

View GitHub Profile
@spokendotcpp
spokendotcpp / GrayImage.cpp
Last active November 12, 2015 11:01
Imagerie
#include "GrayImage.hpp"
#include <stdexcept>
#include <string>
GrayImage::GrayImage(ushort w, ushort h)
:width(w), height(h), array(0)
{ array = new ubyte[width*height]; }
GrayImage::GrayImage()
:array(0)
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import numpy as np
import os
import cv2
import argparse # Argument project
from matplotlib.colors import to_rgb
from matplotlib.image import imread