00001 /************************************************************ 00002 * imalign.h : Uses a minimization function to try to align 00003 * two images. The alignment is perform in the 00004 * neiborhood of the current location. 00005 * The function return 1 if an update occurred 00006 * or zero otherwise. 00007 * 00008 * Copyright (c) Alfredo Rodriguez, 2002 00009 * Last Revision Date : April 22, 2002 00010 *************************************************************/ 00011 #include <stdio.h> 00012 00013 00014 typedef struct 00015 { 00016 int xdim; 00017 int ydim; 00018 int xcoord; 00019 int ycoord; 00020 int bitsPerPixel; /* D. Ehlenberger 4/14/2003 */ 00021 unsigned char* data; 00022 }IMAGEA; 00023 00024 /* returns non-zero if position updated. */ 00025 int AlignImages( IMAGEA *anchor, IMAGEA *align, int extent ); 00026 00027 00028 00029 00030 /* D. Ehlenberger--------------------------------------------------*/ 00031 #include "progress.h" 00032 00033 typedef struct tagALIGNPROGRESS 00034 { 00035 HPROGRESSBAR hBar; 00036 /* Total number of iterations algorithm will perform. */ 00037 int totalCount; 00038 /* 1% of totalCount. */ 00039 int onePercentCount; 00040 /* When equal to onePercentCount, percentComplete is incremented. */ 00041 int currentCount; 00042 /* Ranges from 0 - 100. */ 00043 int percentComplete; 00044 } 00045 ALIGNPROGRESS; 00046 00047 void SetAlignmentProgressBar( HPROGRESSBAR hBar ); 00048 /*-----------------------------------------------------------------*/
1.5.8