C Language Progarm for Graphical Calculator


#include"graphics.h"
#include"dos.h"
#include"stdio.h"
#include"math.h"
union REGS i,o;
char *text[]={ "7","8","9","*","4","5","6","/","1","2","3","+","0","00",".","-","M","M+","M-","+/-","MR","MC","x^2","sr","OFF","AC","CE","="};
int k=0,pass,op,prop,newnum=1,bt,memo=1,d=0,sq;
long double num=0,accum,m;

void normalbutton(int ,int ,int ,int,char**);

void main()

{
                int gd=DETECT,gm,x1,x2,y1,y2,i,j,maxx,maxy,x,y,button;
                char *text1[]={"\"","T","o"," ","K","n","o","w"," ","a","b","o","u","t"," ","m","e"," ","l","o","g","o","n"," ",":"};

                initgraph(&gd,&gm,"..//bgi");
    if(initmouse()==0)
                {
                                 closegraph();
                                 restorecrtmode();
                                 printf("Mouse driver not loded");
                                  exit(1);
                }
  showmouseptr();
//  x=y=50;
 movemouseptr(&x,&y);
setbkcolor(8);
setcolor(1);
rectangle(198,140,417,163);
rectangle(199,141,418,164);
rectangle(197,139,416,162);
rectangle(185,130,430,450);
rectangle(184,129,431,451);
rectangle(182,127,433,454);
rectangle(181,126,434,453);


//setfillstyle(SOLID_FILL,3);
//bar(200,142,415,161);

outtextxy(200,50,"A Calculator");
outtextxy(200,100,"Press OFF button to exit....");
y1=140;
y2=160;

                for(j=0;j<7;j++)
 {
  x1=200;
  x2=235;
  y1+=40;
  y2+=40;

   for(i=0;i<4;i++)
  {
   normalbutton(x1,x2,y1,y2,text);
   x1+=60;
   x2+=60;
   }
 }


 while(1)
  {


                getmousepos(&button,&x,&y);


                y1=140;
                y2=160;

                for(j=0;j<7;j++)
 {
  x1=200;
  x2=235;
  y1+=40;
  y2+=40;

   for(i=0;i<4;i++)
  {

                 if((x<x2&&x>x1)&&(y<y2&&y>y1))
   {
                if((button & 1)==1)
                 {  gotoxy(28,10);

                bt=j*4+i;

                setcolor(11);
                outtextxy(x1+12,y1+7,text[j*4+i]);

                if(num>pow(10.0,18))
                exit();
                sound(500);delay(10);nosound();
                delay(250);
                sound(400);delay(10);
                nosound();
                 switch (bt)
                 {
                 case  8 :
                   addnum(1);
                   break;
                 case  9 :
                   addnum(2);
                   break;
                 case  10 :
                   addnum(3);
                   break;
                 case  4 :
                   addnum(4);
                   break;
                 case  5 :
                   addnum(5);
                   break;
                 case  6 :
                   addnum(6);
                   break;
                 case  0 :
                   addnum(7);
                   break;
                 case  1 :
                   addnum(8);
                   break;
                 case  2 :
                   addnum(9);
                   break;
                 case  12 :
                   addnum(0);
                   break;
                 case  11 :
                   // plus
                   operation(1);
                   break;

                 case  15 :
                   // minus
                   operation(2);
                   break;
                 case  3 :
                   // multiplication
                   operation(3);
                   break;
                 case  7 :
                   // division
                   operation(4);
                   break;
                 case 13:
                   doublezero();
                   break;
                 case  14 :
                   decimal();
                   break;

                 case 16:
                   mem();
                   break;
                 case 20:
                   recallmem();
                   break;
                 case 19:
                   plusminus();
                   break;
                 case 17:
                   plusm();
                   break;
                 case 18:
                   minusm();
                   break;
                 case 21:
                   clearm();
                   break;
                 case 22 :
                   square();
                   break;
                 case 23:

                   sqroot();
                   break;
                 case 24:
                  // OFF
                   hidemouseptr();
                   setcolor(1);
                   for(j=0;j<20;j++)
                 {
                for(i=75;i<481;i+=20)

                   line(0,0+i+j,640,j+0+i);

                   delay(100);
                 }
                   setcolor(14);
                   outtextxy(225,200,"Thanks for using it !");
                   delay(2000);
                   setcolor(13);
                for(j=0;j<20;j++)
                 {
                for(i=0;i<640;i+=20)

                   line(0+i+j,0,j+0+i,640);

                   delay(100);
                 }
                   setcolor(1);

                   for(i=0;i<25;i++)
                  {
                outtextxy(75+10*i,200,text1[i]);
                   sound(3000);
                   delay(50);
                   nosound();
                  }
                   for(i=0;i<29;i++)
                  {

                   sound(3000);
                   delay(50);
                   nosound();
                  }
                  outtextxy(200,225,"www.enggedu.com/source/");

                   delay(2500);
                   sound(5000);
                   delay(10);
                   exit();
                   break;
                 case 25:
                  allclear();
                  break;

                 case 26:
                  clear();
                  break;

                 case 27:
                 //  equalto
                   operation(5);
                   break;



                 }
                 setcolor(1);
                outtextxy(x1+12,y1+7,text[j*4+i]);

                 }
   }
                x1+=60;
                x2+=60;

   }

 }

  }



}

void normalbutton(int x1,int x2,int y1,int y2,char **text)
{
setcolor(15);
rectangle(x1-2,y1-2,x2+1,y2+1);
rectangle(x1-1,y1-1,x2+2,y2+2);
setcolor(7);
rectangle(x1,y1,x2+2,y2+2);
rectangle(x1,y1,x2+1,y2+1);

setfillstyle(SOLID_FILL,14);
bar(x1,y1,x2,y2);
setcolor(1);
outtextxy(x1+12,y1+7,text[k]);
k++;
}
/* initmouse */
initmouse()
{
 i.x.ax=0;
 int86 (0x33,&i,&o);
 return(o.x.ax);
}
hidemouseptr()
{
                 i.x.ax=2;
                 int86(0x33,&i,&o);
}

/* displays mouse pointer */
showmouseptr()
{
 i.x.ax=1;
 int86(0x33,&i,&o);
 return 0;
}

/*gets mouse coordinates and button status*/

getmousepos(int *button,int *x,int *y)
{
 i.x.ax=3;
 int86(0x33,&i,&o);
 *button=o.x.bx;
 *x=o.x.cx;
 *y=o.x.dx;
 return 0;
}
/* Move mouse ptr to x,y */
movemouseptr(int *x,int *y)
{
 i.x.ax=4;
 int86(0x33,&i,&o);
 o.x.cx=*x;
 o.x.dx=*y;
 return 0;
}

addnum(int pass)
{   if(sq)
                newnum=1;

                if(newnum)
                  {      if(d)
                {
                  num=pass/(pow(10.0,d));
                  d++;
                  newnum=0;
                }
                 else
                {  num=pass;
                   newnum=0;
                }
                  }
                else
                {
                /*  if(num==0)
                  {    if(d)
                {
                  num=num+pass/(pow(10.0,d));
                  d++;
                }
                  else
                  num=pass;
                   }
                */
                //            else
                   {    if(d)
                {
                   if(num<0)
                 num=num-pass/(pow(10.0,d));
                   else
                 num=num+pass/(pow(10.0,d));
                  d++;
                }
                else
                {
                num=num*10+pass;
                }
                }
                 }
 printf("%25.5Lf",num);
}

operation(int opr)
{  long double pnum;
   pnum=num;

   if(newnum && (prop != 5) && memo)
   {
   }
   else
  {  newnum=1;
                 d=0;
                 sq=0;
                 switch(prop)
                {
                 case 1:
                accum=accum+pnum;
                break;
                 case 2:
                accum=accum-pnum;
                break;
                 case 3:
                accum=accum*pnum;
                break;
                 case 4:
                accum=accum/pnum;
                break;
                 default:
                   accum=pnum;
                 }
  }
                prop=opr;
                num=accum;
 printf("%25.5Lf",num);
}

allclear()
{
 sq=0;
 accum=0;
 num=0;
 d=0;
 newnum=1;
 printf("%25.5Lf",num);
}

mem()
{
 m=num;
}
recallmem()
{
 memo=0;
 printf("%25.5Lf",m);
 num=m;
}
plusminus()
{ if(num!=0)
  {            num*=-1;
                printf("%25.5Lf",num);
  }
}


plusm()
{
m+=num;
}
minusm()
{
m-=num;
}
clearm()
{
m=0;
}
decimal()
{
 if(!d)
  {d=1;
                if(newnum==1)
                {
                 num=0;
                }
  printf("%25.5Lf",num);
  }
}

square()
{ sq=1;
 num*=num;
 printf("%25.5Lf",num);
// newnum=1;
}
sqroot()
{ sq=1;
 num=pow(num,0.5);
 printf("%25.5Lf",num);
// newnum=1;
}
doublezero()
{
 if(d)
   {
                // num=num+pass/(pow(100.0,d));
                 d++;
                 d++;
   }
 else
  num*=100;
 printf("%25.5Lf",num);
}

clear()
{
num=0;
printf("%25.5Lf",num);
}



Contact:
Mr. Roshan P. Helonde
Mobile: +91-7276355704
WhatsApp: +91-7276355704
Email: roshanphelonde@rediffmail.com
Share:

C Language Progarm for Draw Different Kind Of Line


#include <graphics.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <conio.h>

/* the names of the line styles supported */

char *lname[] = {
   "SOLID_LINE",
   "DOTTED_LINE",
   "CENTER_LINE",
   "DASHED_LINE",
   "USERBIT_LINE"
   };

int main(void)
{
   /* request auto detection */
   int gdriver = DETECT, gmode, errorcode;

   int style, midx, midy, userpat;
   char stylestr[40];

   /* initialize graphics and local variables */
   initgraph(&gdriver, &gmode, "..//bgi");

   /* read result of initialization */
   errorcode = graphresult();
   if (errorcode != grOk)  /* an error occurred */
   {
      printf("Graphics error: %s\n", grapherrormsg(errorcode));
      printf("Press any key to halt:");
      getch();
      exit(1); /* terminate with an error code */
   }

   midx = getmaxx() / 2;
   midy = getmaxy() / 2;

   /* a user defined line pattern */
   /* binary: "0000000000000001"  */
   userpat = 1;

   for (style=SOLID_LINE; style<=USERBIT_LINE; style++)
   {
      /* select the line style */
      setlinestyle(style, userpat, 1);

      /* convert style into a string */
      strcpy(stylestr, lname[style]);

      /* draw a line */
      line(0, 0, midx-10, midy);

      /* draw a rectangle */
      rectangle(0, 0, getmaxx(), getmaxy());

      /* output a message */
      outtextxy(midx, midy, stylestr);

      /* wait for a key */
      getch();
      cleardevice();
   }

   /* clean up */
   closegraph();
   return 0;
}



Contact:
Mr. Roshan P. Helonde
Mobile: +91-7276355704
WhatsApp: +91-7276355704
Email: roshanphelonde@rediffmail.com
Share:

C Language Progarm for Digital Alarm Clock


#include<stdio.h>
#include<conio.h>
#include<dos.h>
#include<stdlib.h>
#include<graphics.h>
#include<time.h>
void main()
{
int i,j,k,hour,min,g,y=1;
struct time t;
char msg[80];
int gd=DETECT,gm;          /* GRAPHICS INITIALIZATION*/
initgraph(&gd,&gm,"..//bgi");   /*THE PATH SHOULD BE GIVEN*/

gettime(&t);
setcolor(14);
sprintf(msg,"The current time is: %d  %02d  %02d", t.ti_hour,t.ti_min,t.ti_sec);
outtextxy(150,50,msg);
outtextxy(40,100,"GIVE ONLY THE HOUR AND MINUTE YOU WANT TO SET THE ALARM(hh,mm)");
outtextxy(97,149,"HOUR:");
gotoxy(19,10);
scanf("%d",&hour);       /*GETS THE HOUR AND SECOND TO SET THE ALARM*/
outtextxy(85,198,"MINUTE:");
gotoxy(20,13);
scanf("%d",&min);
outtextxy(485,400,"SAKTHIVEL");
outtextxy(460,430,"FIRST SOFT TECH");
if( t.ti_hour > hour )  goto b;
else if(hour == t.ti_hour && min<=t.ti_min )   goto b;
else
{
for(i=t.ti_hour;i<=hour;i++)
{
for(j=t.ti_min;j<60;j++)
{
k=0;
while(k<60)
{
cleardevice();
k++;
setfillstyle(1,1);
bar(510,170,90,230);
settextstyle(1,0,3);
sprintf(msg,"%d   %d   %d",i,j,k);
outtextxy(230,188,msg);
sound(1000);
delay(100);
nosound();
sleep(1);
if(j==min && i==hour)
{
cleardevice();
while(!kbhit())
{
delay(300);
sound(1000);
setcolor(y);
outtextxy(250,200,"WAKE UP");
delay(300);
nosound();
y++;
}
goto a;
}}}}}
a:
getch();
exit(0);
b:
cleardevice();
outtextxy(250,250,"INVALID TIME");
getch();
}


Contact:
Mr. Roshan P. Helonde
Mobile: +91-7276355704
WhatsApp: +91-7276355704
Email: roshanphelonde@rediffmail.com
Share:

C Language Progarm for Case Convertion


#include <stdio.h>
#include <conio.h>
void lower_to_upper();
void upper_to_lower();
void main()
{
                 int n;
                 clrscr();
 printf("Please enter your choice.");
 printf("(1) for upper to lower conversion.");
 printf("(2) for lower to upper conversion.");
 printf("CHOICE:-  ");
 scanf("%d",&n);
 switch (n)
 {
 
case 1:
       
                 printf("Please enter a string in upper case.");
                printf("String will be terminated if you press Ctrl-Z.");
                 printf("STRING:-  ");
               upper_to_lower();
              break;
     
 case 2:
   
         printf("Please enter a string in lower case.");
        printf("String will be terminated if you press Ctrl-Z.");
       printf("STRING:-  ");
      lower_to_upper();
     break;
 
 default:
    printf("ERROR");
 }
 printf("HAVE A NICE DAY! BYE.");
 getch();
}
 void upper_to_lower()
 {
                  int i,j;
                   char c4[80],c3;
                  for (i=0;(c3=getchar())!=EOF;i++)
                c4[i]=(c3>='A' && c3<='Z')?('a' + c3 -'A'):c3;
                printf("The lower case equivalent is ");
                 for (j=0;j<i;j++)
                putchar(c4[j]);
               return;
 }

 void lower_to_upper()
 {
                int i,j;
                 char c2[80],c1;
                for (i=0;(c1=getchar())!=EOF;i++)
               c2[i]=(c1>='a' && c1<='z')?('A' + c1 -'a'):c1;
              printf("The upper case equivalent is ");
             for (j=0;j<i;j++)
            putchar(c2[j]);
           return;
 }


OUTPUT:

Please enter your choice.
(1) for upper to lower conversion.
(2) for lower to upper conversion.
CHOICE:-  1
Please enter a string in upper case.
String will be terminated if you press Ctrl-Z.
STRING:-  FIRSTSOFT TECH^Z
The lower case equivalent is
firstsoft tech
HAVE A NICE DAY! BYE.


Contact:
Mr. Roshan P. Helonde
Mobile: +91-7276355704
WhatsApp: +91-7276355704
Email: roshanphelonde@rediffmail.com
Share:

C Language Progarm Accessing Array Elements Using Pointers


#include <stdio.h>
#include <stdlib.h>
#include< conio.h>
int func1();
int func2();
int func3();
int func4();
int func5();

main()
{
                short mat[3][3],i,j;

                for(i = 0 ; i < 3 ; i++)
                                for(j = 0 ; j < 3 ; j++)
                                {
                                                mat[i][j] = i*10 + j;
                                }

                printf(" Initialized data to: ");
                for(i = 0 ; i < 3 ; i++)
                {
                                printf("\n");
                                for(j = 0 ; j < 3 ; j++)
                                {
                                                printf("%5.2d", mat[i][j]);
                                }
                }
                printf("\n");

                func1(mat);
                func2(mat);
                func3(mat);
                func4(mat);
                func5(mat);
          getch();
}

 /*
 Method #1 (No tricks, just an array with empty first dimension)
 ===============================================================
 You don't have to specify the first dimension!
 */

int func1(short mat[][3])  
{
        register short i, j;

        printf(" Declare as matrix, explicitly specify second dimension: ");
        for(i = 0 ; i < 3 ; i++)
                {
                printf("\n");
                for(j = 0 ; j < 3 ; j++)
                {
                                printf("%5.2d", mat[i][j]);
                }
        }
        printf("\n");

        return;
}

 /*
 Method #2 (pointer to array, second dimension is explicitly specified)
 ======================================================================
 */

int func2(short (*mat)[3])
        {
        register short i, j;

        printf(" Declare as pointer to column, explicitly specify 2nd dim: ");
        for(i = 0 ; i < 3 ; i++)
                {
                printf("\n");
                for(j = 0 ; j < 3 ; j++)
                {
                                printf("%5.2d", mat[i][j]);
                }
        }
        printf("\n");

        return;
}

 /*
 Method #3 (Using a single pointer, the array is "flattened")
 ============================================================
 With this method you can create general-purpose routines.
 The dimensions doesn't appear in any declaration, so you
 can add them to the formal argument list.

 The manual array indexing will probably slow down execution.
 */

int func3(short *mat)    
        {
        register short i, j;

        printf(" Declare as single-pointer, manual offset computation: ");
        for(i = 0 ; i < 3 ; i++)
                {
                printf("\n");
                for(j = 0 ; j < 3 ; j++)
                {
                                printf("%5.2d", *(mat + 3*i + j));
                }
        }
        printf("\n");

        return;
}

 /*
 Method #4 (double pointer, using an auxiliary array of pointers)
 ================================================================
 With this method you can create general-purpose routines,
 if you allocate "index" at run-time.

 Add the dimensions to the formal argument list.
 */

int func4(short **mat)
        {
        short    i, j, *index[3];

        for (i = 0 ; i < 3 ; i++)
                index[i] = (short *)mat + 3*i;

        printf(" Declare as double-pointer, use auxiliary pointer array: ");
        for(i = 0 ; i < 3 ; i++)
                {
                printf("\n");
                for(j = 0 ; j < 3 ; j++)
                {
                                printf("%5.2d", index[i][j]);
                }
        }
        printf("\n");

        return;
}

 /*
 Method #5 (single pointer, using an auxiliary array of pointers)
 ================================================================
 */

int func5(short *mat[3])
        {
        short i, j, *index[3];
        for (i = 0 ; i < 3 ; i++)
                index[i] = (short *)mat + 3*i;

        printf(" Declare as single-pointer, use auxiliary pointer array: ");
        for(i = 0 ; i < 3 ; i++)
                {
                printf("\n");
                for(j = 0 ; j < 3 ; j++)
                {
                                printf("%5.2d", index[i][j]);
                }
        }
        printf("\n");
        return;
}


SAMPLE INPUT AND OUTPUT:

 Initialized data to:
   00   01   02
   10   11   12
   20   21   22
 Declare as matrix, explicitly specify second dimension:
   00   01   02
   10   11   12
   20   21   22
 Declare as pointer to column, explicitly specify 2nd dim:
   00   01   02
   10   11   12
   20   21   22
 Declare as single-pointer, manual offset computation:
   00   01   02
   10   11   12
   20   21   22
 Declare as double-pointer, use auxiliary pointer array:
   00   01   02
   10   11   12
   20   21   22
 Declare as single-pointer, use auxiliary pointer array:
   00   01   02
   10   11   12
   20   21   22


Contact:
Mr. Roshan P. Helonde
Mobile: +91-7276355704
WhatsApp: +91-7276355704
Email: roshanphelonde@rediffmail.com
Share:

C Language Progarm To Generate ARMSTRONG,RAMANUJAM and STRONG Numbers


#include
<stdio.h>
#include
<math.h>
main()
{
int j,a,b,c,d,i,res,ch;
printf("1.ARMSTRONG NOS  \n 2.RAMANUJAM NOS \n3.STRONG NOS");
printf("\nENTER CHOICE:");
scanf("%d",&ch);
switch(ch)
{
case 1:
for(i=100;i<=999;i++)
{
a=i%10; b=i/10; c=b%10; d=b/10;
res=pow(a,3)+pow(c,3)+pow(d,3);
if (res==i) printf("\n%d",i);
}
break;
case 2:           printf("\nrama");
for(i=1000;i<=9999;i++)
{
c=(i%100)+(i/100);
if(i==(c*c)) printf("\n%d",i);
}
break;
case 3:
for(i=100;i<=999;i++)
{ a=i; res=0;
while(a!=0) { c=1;
b=a%10;
for(j=1;j<=b;j++)
c=c*j;
res=res+c;
a=a/10;
}
if(res==i) printf("\n%d",i);
}
break;
}
getch();
}

OUTPUT:

1.ARMSTRONG NOS
2.RAMANUJAM NOS
3.STRONG NOS
ENTER CHOICE:1
153
370
371
407
1.ARMSTRONG NOS
2.RAMANUJAM NOS
3.STRONG NOS
ENTER CHOICE:2
rama
2025
3025
9801


Contact:
Mr. Roshan P. Helonde
Mobile: +91-7276355704
WhatsApp: +91-7276355704
Email: roshanphelonde@rediffmail.com
Share:

C Language Graphics Program For Display Text


#include<stdio.h>
#include<conio.h>
#include<dos.h>
void main()
{int i,j,k;
 clrscr();
 printf("                                LOOK AT THIS:");
 delay(200);
 clrscr();
for(i=20,j=0;i>=0,j<=4;i--,j++)
 {textcolor(i);
  gotoxy(i,j);
  cprintf("*");
 }//printf("%d %d",wherex(),wherey());
 for(i=16,j=5;i<=30,j<=8;i++,j++)
 {textcolor(i);
  gotoxy(i,j);
  cprintf("*");
 }for(i=16;i<=22;i++)
  {textcolor(i);
   gotoxy(i,5);
   cprintf("*");
   }
  for(j=0;j<=8;j++)
  {gotoxy(23,j);
   textcolor(j);
   cprintf("*");
   }
   for(i=23;i<=25;i++)
   {textcolor(i);
    gotoxy(i,8);
    cprintf("*");
   }
   for(j=8;j<=11;j++)
   {gotoxy(25,j);
    textcolor(j);
    cprintf("*");
    }
    for(i=25;i>=23;i--)
    {gotoxy(i,11);
     textcolor(i);
     cprintf("*");
     }
    for(j=0;j<=6;j++)
    {gotoxy(28,j);
     textcolor(j);
     cprintf("*");
     }
    for(i=28;i<=32;i++)
    {gotoxy(i,6);
     textcolor(i);
     cprintf("*");
    }for(j=0;j<=9;j++)
     {gotoxy(33,j);
      textcolor(j);
      cprintf("*");
     }
     for(j=0;j<=9;j++)
     {gotoxy(37,j);
      textcolor(j);
      cprintf("*");
      }

  while(1)
  {for(i=0;i<=70;i++)
  {gotoxy(i,25);
   sleep(1);
   textcolor(i);
   cprintf(" First Soft");
 }
 }

Contact:

Mr. Roshan P. Helonde
Mobile: +91-7276355704
WhatsApp: +91-7276355704
Email: roshanphelonde@rediffmail.com
Share:

C Language Graphics Program For Square Animation


#include<stdio.h>
#include<graphics.h>
#include<conio.h>
#include<dos.h>
void main()
{
int d=2,k=0;
int gd=DETECT,gm;
initgraph(&gd,&gm,"c:\tc\bgi");
setcolor(2);
outtextxy(300,430,"Press any key to continue....");
setcolor(5);
setwritemode(1);
rectangle(180,120,380,320);
getch();
clearviewport();
while(!kbhit())
{
   d%=91;
   setcolor(k);
   rectangle(180+d,120+d,380-d,320-d);
   delay(40);
   d+=2;
    k++;
   }
   getch();
   }


Contact:
Mr. Roshan P. Helonde
Mobile: +91-7276355704
WhatsApp: +91-7276355704
Email: roshanphelonde@rediffmail.com
Share:

C Language Graphics Program For Circle Rotation


#include<stdio.h>
#include<graphics.h>
#include<conio.h>
#include<dos.h>
#include<stdlib.h>
#include<math.h>
#include<iostream.h>
main()
{
int gd=DETECT,gm,x=295,y=222,a,j,i;
initgraph(&gd,&gm,"..//bgi");
setcolor(14);
outtextxy(x-60,y,"FIRST SOFT TECH");
while(!kbhit())
{
i++;

delay(1);
setcolor(16);
circle(x+(200*cos(i)),y+(200*sin(i)),8);
setcolor(10);
circle(x+(200*cos(i+40)),y+(200*sin(i+40)),8);
//set2
setcolor(16);
circle(x+(160*sin(i)),y+(160*cos(i)),7); //anti clockwise:-sin,cosinterchanged
circle(x+(160*sin(i)),y+(160*cos(i)),5);
setcolor(i);
circle(x+(160*sin(i+40)),y+(160*cos(i+40)),7);
circle(x+(160*sin(i+40)),y+(160*cos(i+40)),5);

setcolor(16);
circle(x+(120*sin(i)),y+(120*cos(i)),6);//anti clockwise:-sin,cosinterchanged
setcolor(12);
circle(x+(120*sin(i+40)),y+(120*cos(i+40)),6);

setcolor(16);
circle(x+(90*cos(i)),y+(90*sin(i)),5);
setcolor(i);
circle(x+(90*cos(i+40)),y+(90*sin(i+40)),5);
}
getch();
return 0;
}



Contact:
Mr. Roshan P. Helonde
Mobile: +91-7276355704
WhatsApp: +91-7276355704
Email: roshanphelonde@rediffmail.com
Share:

Finger Print Recognition and Matching Using Image Processing Matlab Project with Source Code

ABSTRACT
                 The popular Biometric used to authenticate a person is Fingerprint which is unique and permanent throughout a person’s life. A minutia matching is widely used for fingerprint recognition and can be classified as ridge ending and ridge bifurcation. In this paper we projected Fingerprint Recognition using Minutia Score Matching method (FRMSM). For Fingerprint thinning, the Block Filter is used, which scans the image at the boundary to preserves the quality of the image and extract the minutiae from the thinned image. Fingerprint is a very vital concept in making us completely unique and can not be altered. It is necessary to recognize fingerprint in proper manner. Here we are trying to recognize the fingerprint image samples by using minute extraction and minute matching techniques. In minute extraction it counts the crossing numbers and from the count it will be classified as normal ridge pixel, termination point and bifurcation point. Then the input finger print data is compared with the template data. This is called as minute matching. 
                    Biometric systems operate on behavioral and physiological biometric data to identify a person. The behavioral biometric parameters are signature, gait, speech and keystroke, these parameters change with age and environment. However physiological characteristics such as face, fingerprint, palm print and iris remains unchanged through out the life time of a person. The biometric system operates as verification mode or identification mode depending on the requirement of an application. The verification mode validates a person’s identity by comparing captured biometric data with ready made template. The identification mode recognizes a person’s identity by performing matches against multiple fingerprint biometric templates. Fingerprints are widely used in daily life for more than 100 years due to its feasibility, distinctiveness, permanence, accuracy, reliability, and acceptability. Fingerprint is a pattern of ridges, furrows and minutiae, which are extracted using inked impression on a paper or sensors. A good quality fingerprint contains 25 to 80 minutiae depending on sensor resolution and finger placement on the sensor. The false minutiae are the false ridge breaks due to insufficient amount of ink and cross-connections due to over inking. It is difficult to extract reliably minutia from poor quality fingerprint impressions arising from very dry fingers and fingers mutilated by scars, scratches due to accidents, injuries. 

PROJECT OUTPUT



PROJECT VIDEO


Contact:
Mr. Roshan P. Helonde
Mobile: +91-7276355704
WhatsApp: +91-7276355704
Email: roshanphelonde@rediffmail.com
Share:

Matlab Project for Brain Tumor Detection Using Watershed Technique Full Project with Source Code

ABSTRACT
             In the field of medical image processing, detection of brain tumor from magnetic resonance image (MRI) brain scan has become one of the most active research. Detection of the tumor is the main objective of the system. Detection plays a critical role in biomedical imaging. In this project, MRI brain image is used to tumor detection process. This system includes test the brain image process, image filtering, morphological operation, Detection of the tumor, Finding Tumor Stage and determination of the tumor location. In this system, morphological operation of watershed technique is applied to detect the tumor. The detailed procedures are implemented using MATLAB. The proposed method extracts the tumor region accurately from the MRI brain image. The experimental results indicate that the proposed method efficiently detected the tumor from the brain image. Watershed Segmentation is the best methods to group pixels of an image on the basis of their intensities. Pixels falling under similar intensities are grouped together. Watershed is a mathematical morphological operating tool. Watershed is normally used for checking output rather than using as an input segmentation technique because it usually suffers from over segmentation and under segmentation. The watershed techniques are useful for segmentation of brain tumor. Image segmentation is based on the division of the image into regions. Division is done on the basis of similar attributes. 

PROJECT OUTPUT


PROJECT VIDEO

Contact:
Mr. Roshan P. Helonde
Mobile: +91-7276355704
WhatsApp: +91-7276355704
Email: roshanphelonde@rediffmail.com
Share:

Target Detection Using Image Processing Matlab Project with Source Code

ABSTRACT
             Target detection using image processing the automatic detection and marking of target objects will improve the efficiency of remote sensing image interpretation.  Target detection refers to the use of high spectral resolution remotely sensed images to map the locations of a target or feature (often a plant species of interest) with a particular spectral or spatial signature. Target detection or feature extraction encompasses a broad range of techniques, including measurements derived from individual bands and more complex methods designed to recognize discrete features by shape, hyperspectral signature, or texture. Targets of interest are often smaller than the pixel size of the image (subpixel target detection) or are mixed with other nontarget cover types within a pixel, requiring techniques such as spectral mixture analysis to detect the target species. Hyperspectral images are useful in target detection because they contain a large contiguous set of spectral bands, often numbering in the hundreds to thousands, and provide large quantities of high spectral resolution data. Using a hyperspectral image, the spectral properties of the target, such as contrast, variability, similarity and discriminability, can be used to detect targets at the subpixel level. The user specifies spectral endmembers, which are the reflectance spectra of the “pure” targets that occur across the landscape, and image processing software is used to characterize the extent of the target across the landscape. The selection of spectral endmembers is similar to the idea of identifying training areas in supervised classification, but the spectral endmember can then be used at a subpixel level to detect the species of interest. Spectral endmembers are often generated in the field using a field spectroradiometer. Then the image is processed using classification algorithms to detect the locations of the target species.

PROJECT OUTPUT


PROJECT VIDEO


Contact:
Mr. Roshan P. Helonde
Mobile: +91-7276355704
WhatsApp: +91-7276355704
Email: roshanphelonde@rediffmail.com
Share:

Blood Group Detection Using Image Processing Matlab Project with Source Code

ABSTRACT
           Determining of blood types is very important during emergency situation before administering a blood transfusion. Presently, these tests are performed manually by technicians, which can lead to human errors. Determination of the blood types in a short period of time and without human errors is very much essential. A method is developed based on processing of images acquired during the slide test. The image processing techniques such as thresholding and morphological operations are used. The images of the slide test are obtained from the pathological laboratory are processed and the occurrence of agglutination are evaluated. Thus the developed automated method determines the blood type using image processing techniques. The developed method is useful in emergency situation to determine the blood group without human error.
         Before the blood transfusion it is necessary to perform certain tests. One of these tests is the determination of blood type. There are certain emergency situations which due to the risk of patient life, it is necessary to administer blood immediately. The tests currently available require moving the laboratory, it may not be time enough to determine the blood type and is administered blood type O negative considered universal donor and therefore provides less risk of incompatibility. However, despite the risk of incompatibilities be less sometimes that cause death of the patient and it is essential to avoid them. Thus, the ideal would be to determine the blood type of the patient. Secondly, the pre-transfusion tests are performed by technicians, which lead to human errors. Since these human errors can translate into fatal consequences, being one of the most significant causes of fatal blood transfusions is important to automate the procedure of these tests. Various blood type classification, diffusive reflectance, ABO Rh-D blood typing using simple morphological image processing.There is a scope for determining blood types using image processing techniques. Image segmentation algorithm for blood type classification and various image processing parameters are analyzed. Image features, such as color, texture, shape are analyzed. Low quality ancient document images and antibody agent analysis using image processing is explained. The slide test consists of the mixture of one drop of blood and one drop of reagent, being the result interpreted according to the occurrence or not of agglutination. The combination of the occurrence and nonoccurrence of the agglutination determines the blood type of the patient. Thus, the software developed in image processing techniques allows, through an image captured after the procedure of the slide test detect the occurrence of agglutination and consequently the blood type of the patient.

PROJECT OUTPUT


PROJECT VIDEO


Contact:
Mr. Roshan P. Helonde
Mobile: +91-7276355704
WhatsApp: +91-7276355704
Email: roshanphelonde@rediffmail.com
Share:

Electronic Online Voting Machine (EVM) Using Matlab (Matlab Project with Code)

ABSTRACT
                    Electronic voting machine is generally used now days in some countries including India for conducting election of government in a country. But the Electronic voting machine has certain disadvantages like illegal voting and insecurity. Hence the concept of online voting system is started in some countries for conducting election. Most of the developed countries have started using online voting system but they are facing some problems in conducting it. Estonia is the only country started conducting the online voting system in national election. But the percentage of voting is only 20% to 30%. Different researchers have designed a online voting system But the system are not so much efficient in terms of accuracy and security. Also the voting system has high error rate. Hence the voting system is not flexible and can be used for specific region only. Biometric authentication is found to be more secure and accurate in certain application. Different biometric authentications like fingerprint, retina etc. can be used in designing an application to enhance the security. As fingerprint of every individual is unique it can be used for designing a voting system. Different fingerprint matching techniques has been discussed considering the FRR ratio.

PROJECT OUTPUT

PROJECT VIDEO


Contact:
Mr. Roshan P. Helonde
Mobile: +91-7276355704
WhatsApp: +91-7276355704
Email: roshanphelonde@rediffmail.com
Share:

Matlab Project with Source Code Automated Early Lung Cancer Detection in Medical Imaging Using Image Processing

ABSTRACT
                   The most common cause of lung cancer is long‐term exposure to tobacco smoke, which causes 80‐90% of lung cancers. Cancer cells can be carried away from the lungs in blood, or lymph fluid that surrounds lung tissue. Lymph flows through lymphatic vessels, which drain into lymph nodes located in the lungs and in the center of the chest. Lung cancer often spreads toward the center of the chest because the natural flow of lymph out of the lungs is toward the center of the chest. As for the stages, in general there are four stages of lung cancer; I through IV. One of the major reason for non-accidental death is cancer. It has been proved that lung cancer is the topmost cause of cancer death in men and women worldwide. The death rate can be reduced if people go for early diagnosis so that suitable treatment can be administered by the clinicians within specified time. Cancer is, when a group of cells go irregular growth uncontrollably and lose balance to form malignant tumors which invades surrounding tissues. Cancer can be classified as Non-small cell lung cancer and small cell lung cancer. The various ways to detect lung cancer is by the use of image processing , pattern recognition and artificial neutral network to develop Computer aided diagnosis. In this project we use the techniques and algorithm used in image processing to detect cancer in three types of medical images. In this system first of all the medical images are recorded using a suitable imaging system. The images obtained are taken as input for the system where the image first go through the various steps of image processing like pre-processing, edge detection, morphological processing ,feature extraction.
                 Lung cancer which is among the five main types of cancer is a leading one to overall cancer mortality. Cancer is a serious health problem among various kinds of diseases. World Health Organization (WHO) reports that worldwide 7.6 million deaths are caused by cancer each year. Uncontrollable cell development in the tissues of the lung is called as lung cancer. Lung nodule is an abnormality that leads to lung cancer, characterized by a small round or oval shaped growth on the lung which appears as a white shadow in the CT scan. These uncontrollable cells restrict the growth of healthy lung tissues. If not treated, this growth can spread beyond the lung in the nearby tissue called metastasis and, form tumors. In order to preserve the life of the people who are suffered by the lung cancer disease, it should be pre‐diagnosed. The overall 5‐year survival rate for lung cancer patients increases from 14 to 49% if the disease is detected in time. So there is a need of pre-diagnosis system for lung cancer disease which should provide better results.

PROJECT OUTPUT

PROJECT VIDEO

Contact:
Mr. Roshan P. Helonde
Mobile: +91-7276355704
WhatsApp: +91-7276355704
Email: roshanphelonde@rediffmail.com
Share:

Matlab Project Image Enhancement Using Histogram Equalization and Bi-histogram Equalization Full Source Code

ABSTRACT
               Image enhancement is one of the challenging issues in low level image processing. Contrast enhancement techniques are used for improving visual quality of low contrast images. Histogram Equalization (HE) method is one such technique used for contrast enhancement. It is a contrast enhancement technique with the objective to obtain a new enhanced image with a uniform histogram. In this paper, instead of using conventional image enhancement techniques, we proposed a method called genetic algorithm for the enhancement of images. This algorithm is fast and very less time consuming as compared to other techniques such as global histogram equalization by taking CDF and finding out the transfer function. Here in our work we are going to enhance images using histogram equalization of images by re-configuring their pixel spacing using optimization through GA (Genetic algorithm). We will get more optimized results with the use of GA with respect to other optimization techniques.
                Digital image enhancement is one of the most important image processing technology which is necessary to improve the visual appearance of the image or to provide a better transform representation for future automated image processing such as image analysis, detection, segmentation and recognition. Many images have very low dynamic range of the intensity values due to insufficient illumination and therefore need to be processed before being displayed. Large number of techniques have focused on the enhancement of gray level images in the spatial domain. These methods include histogram equalization, gamma correction, high pass filtering, low pass filtering, homomorphic filtering, etc. Image enhancement techniques are of particular interest in photography, satellite imagery, medical applications and display devices. Producing visually natural is required for many important areas such as vision, remote sensing, dynamic scene analysis, autonomous navigation, and biomedical image analysis.

PROJECT OUTPUT


PROJECT VIDEO


Contact:
Mr. Roshan P. Helonde
Mobile: +91-7276355704
WhatsApp: +91-7276355704
Email: roshanphelonde@rediffmail.com
Share:

Seam Carving Using Image Processing Matlab Project with Source Code

ABSTRACT
                     Image Processing is an important technology for performing image operations. The analysis and manipulation on a digitized image helps to improve its quality. Image Processing offers a number of techniques to process an image such as Image Resizing, Image Enhancement etc. Image resizing is a key process for displaying visual media on different devices, and it has attracted much attention in the past few years. This paper defines preserving an important region of an image, minimizing distortions, and improving efficiency. Image Resizing can be more effectively reached with a better interpretation of image semantics. A new image importance map and a new seam criterion for image re-targeting is presented. Content-aware image resizing is a promising theme in computer vision and image processing. The seam carving method can effectively achieve image resizing which needs to define image importance to detect the salient context of images.

PROJECT OUTPUT

PROJECT VIDEO

Contact:
Mr. Roshan P. Helonde
Mobile: +91-7276355704
WhatsApp: +91-7276355704
Email: roshanphelonde@rediffmail.com
Share:

Total Pageviews

CONTACT US

Prof. Roshan P. Helonde
Mobile: +917276355704
WhatsApp: +917276355704
Email: roshanphelonde@rediffmail.com

Enter Project Title

Popular Projects

All Archive

Contact Form

Name

Email *

Message *