/image-processing

Image Processing algorithm

Primary LanguageC++

Image-Processing-Assignment

Instruction

  • run.bat <filename> ( windows )

  • ./run.sh <filename> ( linux )

1. Bresenham Line Drawing
  • You have to give (x1,y1) and (x2,y2) as input in console.
2. DDA Line Drawing
  • You have to give (x1,y1) and (x2,y2) as input in console.
3. Bresenham Circle Drawing
  • You have to give (x,y) and r as input in console.
4. Midpoint Circle Drawing
  • You have to give (x,y) and r as input in console.
5. Cohen Sutherland Line Clipping
  • click on the window to draw points eventually line will be drawn and clipped.
6. Sutherland Hodgman Polygon Clipping
  • click on the window to draw points eventually polygon will be drawn and clipped.
  • type c to clear screen.

Cohen sutherland polygon clipper

OpenGL Setup

GCC Compiler - MinGW

I followed setup of OpenGL from here https://www3.ntu.edu.sg/home/ehchua/programming/opengl/HowTo_OpenGL_C.html