Pacific-Design.com

    
Home Index

1. Computer Vision

+ Bresenham

+ Conversion

+ Curves

+ Dithering

+ FilterMedian

+ FilterOutlierThreshold

+ Fire

+ Gaussian 2D

+ Gaussian Kernel

+ Gouraud Shading

+ ImageMagick

+ Morphology

+ Particle Movement

+ Percentile

+ ReflectionPadding

+ Region Orientation

+ Sobel Edge Detector

+ Study Material

+ z Links

Computer Vision /

Face Detection

OpenCV - install && compile

#!/bin/bash
#----------------------------------------------------#
# Install Mac Ports
# sudo port install opencv
# sudo port install pkgconfig
#----------------------------------------------------#
# pkg-config --modversion opencv
# pkg-config --cflags opencv
# pkg-config --libs opencv
#----------------------------------------------------#
# Java
# -Djava.library.path="/opt/local/include/opencv"
#----------------------------------------------------#

g++ `pkg-config --libs --cflags opencv` -o cv cv.cpp

./cv Lenna.png

cv.cpp

#include <cv.h>
#include <highgui.h>

int main( int argc, char** argv) {

    IplImage * image = cvLoadImage(argv[1]);
    cvNamedWindow("viewer");
    cvShowImage("viewer", image);
    
    cvWaitKey(0);
    cvReleaseImage(&image);
    cvDestroyWindow("viewer");

}

Draw a Lines and Circles using Bresenham Algorithm


Hermite Curve: Drawing Curve using Hermite Algorithm



Bezier Curve: Drawing Curve using Bezier Algorithm