                README FILE FOR CHAPTER-6 PROGRAMS
                ----------------------------------

Images required
--------------
1.  dskw.p01 - whole image of disk (dia = 60.14)
2.  dskb.p01 - magnified image of bottom side of disk
               (magnification of macro lens = 16.5)
3.  dskt.p01 - magnified image of top side of disk
               (magnification of macro lens = 16.5)
4.  dskw.phs - phasemap of whole image of disk 
5.  dskb.phs - phasemap of magnified image of bottom side of disk
6.  dskt.phs - phasemap of magnified image of top side of disk

Note : For images 4, 5 and 6 running noise.c is not required as these
       are free of noise.

For phase unwrapping, the following programmes should be executed
in the seqence shown.

1.  noise.c <-- curupip.h <-- pipdef.h
        This is noise removal program. This will remove "salt and pepper  
    noise" from the phasemap.

    User input :
        Image file name (without extension)
        (window selection)
        output file name (with extension)
    
    file needed : *.phs file
    Output      : Image file after noise removal

2.  input.c <-- curupip.h <-- pipdef.h
        This programe writes the details of the screen information like ratio 
    of mm to pixels, aspect ratio, rotation correction angle to a file.
   
    User input :
        type of the image (whole or manified)   
        for whole image 
            original length of speciman(mm) (dia = 60.14) 
        for magnified image 
            manification of macro lens     
        aspect ratio : 0.7100  (aspect ratio of the video moniter)
        rotation correction angle : 0   
   
    files needed: whole image file - dskw.p01
                  manified image file - dskb.p01 & dskt.p01
    
    Output : *.dat file containing above input information

3.  boundary.c <-- boustart.h <-- bouedge.h <-- boudraw.h <-- bouutil.h
               <-- menuutil.h <-- boudecl.h <-- bouwork.h
        Program for boundary detection of the image.
   
    User input
        Image file name(without extention)  
        Extension                            
   
    files needed: image file (dskw.p01 or dskb.p01 or dskt.p01) 
                  *.dat file created in privious program
                  (dskw.dat or dskb.dat or dskt.dat)
                  two.exe
    Output : *.dat file with origin of image
             *.xbn file containing row pixel location of the boundary
             *.ybn file containing column pixel location of the boundary

    note - for dskb.p01 image select the bottom most point & for dskt.p01 
          image select the top most point as the origin.  

4.  showbn.c <-- pipdef.h
        This program echobacks the boundary on the image.
    
    User input : image file name (without extention) 
    files needed: image file  (dskw.p01 or dskb.p01 or dskt.p01)
                  *.dat file  (dskw.dat or dskb.dat or dskt.dat)
                  *.xbn file  (dskw.xbn or dskb.xbn or dskt.xbn)
                  *.ybn file  (dskw.ybn or dskb.ybn or dskt.ybn)

5.  unwrap.c <-- echo.h <-- show1_h.h <-- curupip.h <-- pipdef.h
        This program unwraps the phase of the phase map of image.
   
    User input : 
        image file name (without extention)
        (window selection)
        select a point by pressing p
            select a point where you want to give input fringe order. 
            
    files needed: *.phs file  (dskw.phs or dskb.phs or dskt.phs)
                  *.dat file  (dskw.dat or dskb.dat or dskt.dat)
                  *.xbn file  (dskw.xbn or dskb.xbn or dskt.xbn)
                  *.ybn file  (dskw.ybn or dskb.ybn or dskt.ybn)

    Output : *.dat file with selected window coordinate's.
             *.frn file having total fringe order of each pixel of
             selected widow

6.  shown.c  <-- show_h.h <-- pipdef.h
        This program will echo the total fringe order at any point on the screen.

    User input : image file name (without extention)
    files needed : *.phs file  (dskw.phs or dskb.phs or dskt.phs)
                  *.dat file  (dskw.dat or dskb.dat or dskt.dat)
                  *.frn file  (dskw.frn or dskb.frn or dskt.frn)

7.  excelplo.c  <-- pipdef.h
        This program creates data file for 3D-plot of total fringe order 
   
    User input  : image file name (without extention)
    files needed: *.dat file  (dskw.dat or dskb.dat or dskt.dat)
                  *.frn file  (dskw.frn or dskb.frn or dskt.frn)
                  or *.oet file (dskw.oet)
    Output      : *.plo file 
                 
8.  oet.c  <-- curupip.h <-- pipdef.h
        This is  program for optically inhanced tiling (OET).
    User input
        Image file name(Magnified Image)(without extansion)
        Actual Image file name(without extantion)
        Give the corresponding by pressing - o
        Is rectangle satisfactory (y/n)? 
        Do you want oet of another image (y/n)?
    
    files needed: *.dat 
                  *.phs 
                  *.frn file 
                  *.oet file
  
    Output      : *.oet file
  
    note - before running this program copy wholeimage.frn (dskw.frn) file to 
           wholeimage.oet (dskw.oet).

note -
1.  if you want to run unwrap.c program for another window of same image,
    edit the *.dat file & delete the previous window coordinates.
2.  don't try to edit the *.frn file as it may hang the system 
