Skip to content

Blog Posts

MATLAB Program for Boundary Detection

MATLAB Program for Boundary Detection Code close all;clear all;BW1 = imread(‘DSC08386.jpg’); subplot(1,2,1);imshow(BW1)title(‘original image’); SE = strel(‘arbitrary’,eye(5));BW2 = imerode(BW1,SE);subplot(1,2,2);imshow(BW1 – BW2)title(‘Boundary Extracted’); Output of Boundry Detection

Geometric Transformations

Geometric Transformations A) Translation, Rotation ScalingB) bresenham lineC) Mid-Point Circle (A) Translation, Rotation Scaling Code #include<stdio.h>#include<conio.h>#include<math.h>#include<graphics.h>void main(){    int val,x1,y1,x2,y2,x1dash,x2dash,y1dash,y2dash,tx,ty,sx,sy,x,y,theta;    float rad;    char cont;    int gdriver=DETECT,gmode,errorcode;   … Read More »Geometric Transformations

error: Content is protected !!