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
#include <opencv/cv.h> | |
#include <opencv/highgui.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
void etirerHistogramme(IplImage ** img){ | |
IplImage * image = *img; | |
if (image->nChannels != 1) return; | |
int p_min = 255; |
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
import sys | |
import numpy | |
import cv2 | |
from PyQt4.QtGui import QApplication, QWidget, QLabel, QGroupBox, QVBoxLayout, QImage, QPixmap | |
from PyQt4.QtCore import QSize, QTimer | |
# GUI code | |
app = QApplication(sys.argv) | |
window = QWidget() |
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
function decrypt(s){ | |
return s.split(" ").map(function(c){return String.fromCharCode(parseInt(c,16))}).join(""); | |
} | |
function encrypt(s) { | |
return s.split("").map(function(c){return c.codePointAt(c).toString(16)}).join(" "); | |
} |
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
# -*- coding: utf-8 -*- | |
''' | |
A module containing artificial neural networks functions. | |
Created by Hamza Abbad. | |
''' | |
from numpy import exp,ones,hstack,ndarray,array,zeros,sum,log,zeros_like,any,abs,sqrt | |
from numbers import Real, Integral | |
def sigmoid(Z): | |
# Z is a 2 dimensional array. |