Changeset 1883
- Timestamp:
- Sep 24, 2004, 12:33:17 PM (22 years ago)
- Location:
- trunk/psModules/src
- Files:
-
- 3 edited
-
Makefile (modified) (1 diff)
-
pmSubtractBias.c (modified) (15 diffs)
-
pmSubtractBias.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/Makefile
r1880 r1883 1 2 cc -c -O0 -g2 -Wall -Werror -std=c99 -D_GNU_SOURCE -pipe -fpic -I. -I../sysUtils -I../collections -I.. -I../image -I.. -o makedir/psSubtractBias.o psSubtractBias.c 3 1 # Makefile.in generated by automake 1.7.8 from Makefile.am. 2 # src/Makefile. Generated from Makefile.in by configure. 3 4 # Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 5 # Free Software Foundation, Inc. 6 # This Makefile.in is free software; the Free Software Foundation 7 # gives unlimited permission to copy and/or distribute it, 8 # with or without modifications, as long as this notice is preserved. 9 10 # This program is distributed in the hope that it will be useful, 11 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without 12 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A 13 # PARTICULAR PURPOSE. 14 15 16 17 srcdir = . 18 top_srcdir = .. 19 20 pkgdatadir = $(datadir)/psModule 21 pkglibdir = $(libdir)/psModule 22 pkgincludedir = $(includedir)/psModule 23 top_builddir = .. 24 25 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd 26 INSTALL = /usr/bin/install -c 27 install_sh_DATA = $(install_sh) -c -m 644 28 install_sh_PROGRAM = $(install_sh) -c 29 install_sh_SCRIPT = $(install_sh) -c 30 INSTALL_HEADER = $(INSTALL_DATA) 31 transform = $(program_transform_name) 32 NORMAL_INSTALL = : 33 PRE_INSTALL = : 34 POST_INSTALL = : 35 NORMAL_UNINSTALL = : 36 PRE_UNINSTALL = : 37 POST_UNINSTALL = : 38 host_triplet = i686-redhat-linux-gnu 39 ACLOCAL = ${SHELL} /home/gusciora/dragon/PAN/CVS/psModule/missing --run aclocal-1.7 40 AMDEP_FALSE = # 41 AMDEP_TRUE = 42 AMTAR = ${SHELL} /home/gusciora/dragon/PAN/CVS/psModule/missing --run tar 43 AR = ar 44 AUTOCONF = ${SHELL} /home/gusciora/dragon/PAN/CVS/psModule/missing --run autoconf 45 AUTOHEADER = ${SHELL} /home/gusciora/dragon/PAN/CVS/psModule/missing --run autoheader 46 AUTOMAKE = ${SHELL} /home/gusciora/dragon/PAN/CVS/psModule/missing --run automake-1.7 47 AWK = gawk 48 CC = gcc 49 CCDEPMODE = depmode=gcc3 50 CFLAGS = -g -O2 -g2 -Wall -std=c99 -D_GNU_SOURCE -I/home/gusciora/dragon/PAN/CVS/psLib//include -I/usr/local/include 51 CPP = gcc -E 52 CPPFLAGS = 53 CXX = g++ 54 CXXCPP = g++ -E 55 CXXDEPMODE = depmode=gcc3 56 CXXFLAGS = -g -O2 57 CYGPATH_W = echo 58 DEFS = -DHAVE_CONFIG_H 59 DEPDIR = .deps 60 ECHO = echo 61 ECHO_C = 62 ECHO_N = -n 63 ECHO_T = 64 EGREP = grep -E 65 EXEEXT = 66 F77 = g77 67 FFLAGS = -g -O2 68 GSL_CONFIG = /usr/local/bin/gsl-config 69 INSTALL_DATA = ${INSTALL} -m 644 70 INSTALL_PROGRAM = ${INSTALL} 71 INSTALL_SCRIPT = ${INSTALL} 72 INSTALL_STRIP_PROGRAM = ${SHELL} $(install_sh) -c -s 73 LDFLAGS = -L/home/gusciora/dragon/PAN/CVS/psLib//lib -L/usr/local/lib-L/usr/local/lib -lgsl -lgslcblas -lm 74 LIBOBJS = 75 LIBS = -lpslib -lgslcblas -lgsl -lfftw3f -lcfitsio -lsla 76 LIBTOOL = $(SHELL) $(top_builddir)/libtool 77 LN_S = ln -s 78 LTLIBOBJS = 79 MAKEINFO = ${SHELL} /home/gusciora/dragon/PAN/CVS/psModule/missing --run makeinfo 80 OBJEXT = o 81 PACKAGE = psModule 82 PACKAGE_BUGREPORT = 83 PACKAGE_NAME = 84 PACKAGE_STRING = 85 PACKAGE_TARNAME = 86 PACKAGE_VERSION = 87 PATH_SEPARATOR = : 88 RANLIB = ranlib 89 SET_MAKE = 90 SHELL = /bin/sh 91 STRIP = strip 92 VERSION = 0.1 93 ac_ct_AR = ar 94 ac_ct_CC = gcc 95 ac_ct_CXX = g++ 96 ac_ct_F77 = g77 97 ac_ct_RANLIB = ranlib 98 ac_ct_STRIP = strip 99 am__fastdepCC_FALSE = # 100 am__fastdepCC_TRUE = 101 am__fastdepCXX_FALSE = # 102 am__fastdepCXX_TRUE = 103 am__include = include 104 am__leading_dot = . 105 am__quote = 106 bindir = ${exec_prefix}/bin 107 build = i686-redhat-linux-gnu 108 build_alias = 109 build_cpu = i686 110 build_os = linux-gnu 111 build_vendor = redhat 112 datadir = ${prefix}/share 113 exec_prefix = ${prefix} 114 host = i686-redhat-linux-gnu 115 host_alias = 116 host_cpu = i686 117 host_os = linux-gnu 118 host_vendor = redhat 119 includedir = ${prefix}/include 120 infodir = ${prefix}/info 121 install_sh = /home/gusciora/dragon/PAN/CVS/psModule/install-sh 122 libdir = ${exec_prefix}/lib 123 libexecdir = ${exec_prefix}/libexec 124 localstatedir = ${prefix}/var 125 mandir = ${prefix}/man 126 oldincludedir = /usr/include 127 prefix = /usr/local 128 program_transform_name = s,x,x, 129 sbindir = ${exec_prefix}/sbin 130 sharedstatedir = ${prefix}/com 131 sysconfdir = ${prefix}/etc 132 target_alias = 133 lib_LIBRARIES = libpsmodule.a 134 bin_PROGRAMS = tst_pmFlatField tst_pmMaskBadPixels 135 136 libpsmodule_a_SOURCES = pmFlatField.c pmMaskBadPixels.c psTest.c 137 libpsmodule_a_HEADERS = pmFlatField.h pmMaskBadPixels.h psTest.h 138 libpsmodule_adir = . 139 140 tst_pmFlatField_SOURCES = tst_pmFlatField.c 141 tst_pmFlatField_LDFLAGS = libpsmodule.a 142 143 tst_pmMaskBadPixels_SOURCES = tst_pmMaskBadPixels.c 144 tst_pmMaskBadPixels_LDFLAGS = libpsmodule.a 145 subdir = src 146 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 147 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs 148 CONFIG_HEADER = config.h 149 CONFIG_CLEAN_FILES = 150 LIBRARIES = $(lib_LIBRARIES) 151 152 libpsmodule_a_AR = $(AR) cru 153 libpsmodule_a_LIBADD = 154 am_libpsmodule_a_OBJECTS = pmFlatField.$(OBJEXT) \ 155 pmMaskBadPixels.$(OBJEXT) psTest.$(OBJEXT) 156 libpsmodule_a_OBJECTS = $(am_libpsmodule_a_OBJECTS) 157 bin_PROGRAMS = tst_pmFlatField$(EXEEXT) tst_pmMaskBadPixels$(EXEEXT) 158 PROGRAMS = $(bin_PROGRAMS) 159 160 am_tst_pmFlatField_OBJECTS = tst_pmFlatField.$(OBJEXT) 161 tst_pmFlatField_OBJECTS = $(am_tst_pmFlatField_OBJECTS) 162 tst_pmFlatField_LDADD = $(LDADD) 163 tst_pmFlatField_DEPENDENCIES = 164 am_tst_pmMaskBadPixels_OBJECTS = tst_pmMaskBadPixels.$(OBJEXT) 165 tst_pmMaskBadPixels_OBJECTS = $(am_tst_pmMaskBadPixels_OBJECTS) 166 tst_pmMaskBadPixels_LDADD = $(LDADD) 167 tst_pmMaskBadPixels_DEPENDENCIES = 168 169 DEFAULT_INCLUDES = -I. -I$(srcdir) -I. 170 depcomp = $(SHELL) $(top_srcdir)/depcomp 171 am__depfiles_maybe = depfiles 172 DEP_FILES = ./$(DEPDIR)/pmFlatField.Po \ 173 ./$(DEPDIR)/pmMaskBadPixels.Po \ 174 ./$(DEPDIR)/psTest.Po \ 175 ./$(DEPDIR)/tst_pmFlatField.Po \ 176 ./$(DEPDIR)/tst_pmMaskBadPixels.Po 177 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ 178 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) 179 LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) \ 180 $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) 181 CCLD = $(CC) 182 LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ 183 $(AM_LDFLAGS) $(LDFLAGS) -o $@ 184 DIST_SOURCES = $(libpsmodule_a_SOURCES) $(tst_pmFlatField_SOURCES) \ 185 $(tst_pmMaskBadPixels_SOURCES) 186 HEADERS = $(libpsmodule_a_HEADERS) 187 188 DIST_COMMON = $(libpsmodule_a_HEADERS) $(srcdir)/Makefile.in \ 189 Makefile.am config.h.in 190 SOURCES = $(libpsmodule_a_SOURCES) $(tst_pmFlatField_SOURCES) $(tst_pmMaskBadPixels_SOURCES) 191 192 all: config.h 193 $(MAKE) $(AM_MAKEFLAGS) all-am 194 195 .SUFFIXES: 196 .SUFFIXES: .c .lo .o .obj 197 $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) 198 cd $(top_srcdir) && \ 199 $(AUTOMAKE) --gnu src/Makefile 200 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status 201 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe) 202 203 config.h: stamp-h1 204 @if test ! -f $@; then \ 205 rm -f stamp-h1; \ 206 $(MAKE) stamp-h1; \ 207 else :; fi 208 209 stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status 210 @rm -f stamp-h1 211 cd $(top_builddir) && $(SHELL) ./config.status src/config.h 212 213 $(srcdir)/config.h.in: $(top_srcdir)/configure.in $(ACLOCAL_M4) 214 cd $(top_srcdir) && $(AUTOHEADER) 215 touch $(srcdir)/config.h.in 216 217 distclean-hdr: 218 -rm -f config.h stamp-h1 219 libLIBRARIES_INSTALL = $(INSTALL_DATA) 220 install-libLIBRARIES: $(lib_LIBRARIES) 221 @$(NORMAL_INSTALL) 222 $(mkinstalldirs) $(DESTDIR)$(libdir) 223 @list='$(lib_LIBRARIES)'; for p in $$list; do \ 224 if test -f $$p; then \ 225 f="`echo $$p | sed -e 's|^.*/||'`"; \ 226 echo " $(libLIBRARIES_INSTALL) $$p $(DESTDIR)$(libdir)/$$f"; \ 227 $(libLIBRARIES_INSTALL) $$p $(DESTDIR)$(libdir)/$$f; \ 228 else :; fi; \ 229 done 230 @$(POST_INSTALL) 231 @list='$(lib_LIBRARIES)'; for p in $$list; do \ 232 if test -f $$p; then \ 233 p="`echo $$p | sed -e 's|^.*/||'`"; \ 234 echo " $(RANLIB) $(DESTDIR)$(libdir)/$$p"; \ 235 $(RANLIB) $(DESTDIR)$(libdir)/$$p; \ 236 else :; fi; \ 237 done 238 239 uninstall-libLIBRARIES: 240 @$(NORMAL_UNINSTALL) 241 @list='$(lib_LIBRARIES)'; for p in $$list; do \ 242 p="`echo $$p | sed -e 's|^.*/||'`"; \ 243 echo " rm -f $(DESTDIR)$(libdir)/$$p"; \ 244 rm -f $(DESTDIR)$(libdir)/$$p; \ 245 done 246 247 clean-libLIBRARIES: 248 -test -z "$(lib_LIBRARIES)" || rm -f $(lib_LIBRARIES) 249 libpsmodule.a: $(libpsmodule_a_OBJECTS) $(libpsmodule_a_DEPENDENCIES) 250 -rm -f libpsmodule.a 251 $(libpsmodule_a_AR) libpsmodule.a $(libpsmodule_a_OBJECTS) $(libpsmodule_a_LIBADD) 252 $(RANLIB) libpsmodule.a 253 binPROGRAMS_INSTALL = $(INSTALL_PROGRAM) 254 install-binPROGRAMS: $(bin_PROGRAMS) 255 @$(NORMAL_INSTALL) 256 $(mkinstalldirs) $(DESTDIR)$(bindir) 257 @list='$(bin_PROGRAMS)'; for p in $$list; do \ 258 p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ 259 if test -f $$p \ 260 || test -f $$p1 \ 261 ; then \ 262 f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \ 263 echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) $$p $(DESTDIR)$(bindir)/$$f"; \ 264 $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) $$p $(DESTDIR)$(bindir)/$$f || exit 1; \ 265 else :; fi; \ 266 done 267 268 uninstall-binPROGRAMS: 269 @$(NORMAL_UNINSTALL) 270 @list='$(bin_PROGRAMS)'; for p in $$list; do \ 271 f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \ 272 echo " rm -f $(DESTDIR)$(bindir)/$$f"; \ 273 rm -f $(DESTDIR)$(bindir)/$$f; \ 274 done 275 276 clean-binPROGRAMS: 277 @list='$(bin_PROGRAMS)'; for p in $$list; do \ 278 f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ 279 echo " rm -f $$p $$f"; \ 280 rm -f $$p $$f ; \ 281 done 282 tst_pmFlatField$(EXEEXT): $(tst_pmFlatField_OBJECTS) $(tst_pmFlatField_DEPENDENCIES) 283 @rm -f tst_pmFlatField$(EXEEXT) 284 $(LINK) $(tst_pmFlatField_LDFLAGS) $(tst_pmFlatField_OBJECTS) $(tst_pmFlatField_LDADD) $(LIBS) 285 tst_pmMaskBadPixels$(EXEEXT): $(tst_pmMaskBadPixels_OBJECTS) $(tst_pmMaskBadPixels_DEPENDENCIES) 286 @rm -f tst_pmMaskBadPixels$(EXEEXT) 287 $(LINK) $(tst_pmMaskBadPixels_LDFLAGS) $(tst_pmMaskBadPixels_OBJECTS) $(tst_pmMaskBadPixels_LDADD) $(LIBS) 288 289 mostlyclean-compile: 290 -rm -f *.$(OBJEXT) core *.core 291 292 distclean-compile: 293 -rm -f *.tab.c 294 295 include ./$(DEPDIR)/pmFlatField.Po 296 include ./$(DEPDIR)/pmMaskBadPixels.Po 297 include ./$(DEPDIR)/psTest.Po 298 include ./$(DEPDIR)/tst_pmFlatField.Po 299 include ./$(DEPDIR)/tst_pmMaskBadPixels.Po 300 301 .c.o: 302 if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \ 303 -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<; \ 304 then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; \ 305 else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \ 306 fi 307 # source='$<' object='$@' libtool=no \ 308 # depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' \ 309 # $(CCDEPMODE) $(depcomp) \ 310 # $(COMPILE) -c `test -f '$<' || echo '$(srcdir)/'`$< 311 312 .c.obj: 313 if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \ 314 -c -o $@ `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'; fi`; \ 315 then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; \ 316 else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \ 317 fi 318 # source='$<' object='$@' libtool=no \ 319 # depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' \ 320 # $(CCDEPMODE) $(depcomp) \ 321 # $(COMPILE) -c `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'; fi` 322 323 .c.lo: 324 if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \ 325 -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<; \ 326 then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; \ 327 else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \ 328 fi 329 # source='$<' object='$@' libtool=yes \ 330 # depfile='$(DEPDIR)/$*.Plo' tmpdepfile='$(DEPDIR)/$*.TPlo' \ 331 # $(CCDEPMODE) $(depcomp) \ 332 # $(LTCOMPILE) -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$< 333 334 mostlyclean-libtool: 335 -rm -f *.lo 336 337 clean-libtool: 338 -rm -rf .libs _libs 339 340 distclean-libtool: 341 -rm -f libtool 342 uninstall-info-am: 343 libpsmodule_aHEADERS_INSTALL = $(INSTALL_HEADER) 344 install-libpsmodule_aHEADERS: $(libpsmodule_a_HEADERS) 345 @$(NORMAL_INSTALL) 346 $(mkinstalldirs) $(DESTDIR)$(libpsmodule_adir) 347 @list='$(libpsmodule_a_HEADERS)'; for p in $$list; do \ 348 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ 349 f="`echo $$p | sed -e 's|^.*/||'`"; \ 350 echo " $(libpsmodule_aHEADERS_INSTALL) $$d$$p $(DESTDIR)$(libpsmodule_adir)/$$f"; \ 351 $(libpsmodule_aHEADERS_INSTALL) $$d$$p $(DESTDIR)$(libpsmodule_adir)/$$f; \ 352 done 353 354 uninstall-libpsmodule_aHEADERS: 355 @$(NORMAL_UNINSTALL) 356 @list='$(libpsmodule_a_HEADERS)'; for p in $$list; do \ 357 f="`echo $$p | sed -e 's|^.*/||'`"; \ 358 echo " rm -f $(DESTDIR)$(libpsmodule_adir)/$$f"; \ 359 rm -f $(DESTDIR)$(libpsmodule_adir)/$$f; \ 360 done 361 362 ETAGS = etags 363 ETAGSFLAGS = 364 365 CTAGS = ctags 366 CTAGSFLAGS = 367 368 tags: TAGS 369 370 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) 371 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ 372 unique=`for i in $$list; do \ 373 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ 374 done | \ 375 $(AWK) ' { files[$$0] = 1; } \ 376 END { for (i in files) print i; }'`; \ 377 mkid -fID $$unique 378 379 TAGS: $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ 380 $(TAGS_FILES) $(LISP) 381 tags=; \ 382 here=`pwd`; \ 383 list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ 384 unique=`for i in $$list; do \ 385 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ 386 done | \ 387 $(AWK) ' { files[$$0] = 1; } \ 388 END { for (i in files) print i; }'`; \ 389 test -z "$(ETAGS_ARGS)$$tags$$unique" \ 390 || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ 391 $$tags $$unique 392 393 ctags: CTAGS 394 CTAGS: $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ 395 $(TAGS_FILES) $(LISP) 396 tags=; \ 397 here=`pwd`; \ 398 list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ 399 unique=`for i in $$list; do \ 400 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ 401 done | \ 402 $(AWK) ' { files[$$0] = 1; } \ 403 END { for (i in files) print i; }'`; \ 404 test -z "$(CTAGS_ARGS)$$tags$$unique" \ 405 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ 406 $$tags $$unique 407 408 GTAGS: 409 here=`$(am__cd) $(top_builddir) && pwd` \ 410 && cd $(top_srcdir) \ 411 && gtags -i $(GTAGS_ARGS) $$here 412 413 distclean-tags: 414 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags 415 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) 416 417 top_distdir = .. 418 distdir = $(top_distdir)/$(PACKAGE)-$(VERSION) 419 420 distdir: $(DISTFILES) 421 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ 422 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ 423 list='$(DISTFILES)'; for file in $$list; do \ 424 case $$file in \ 425 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ 426 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ 427 esac; \ 428 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ 429 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ 430 if test "$$dir" != "$$file" && test "$$dir" != "."; then \ 431 dir="/$$dir"; \ 432 $(mkinstalldirs) "$(distdir)$$dir"; \ 433 else \ 434 dir=''; \ 435 fi; \ 436 if test -d $$d/$$file; then \ 437 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ 438 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ 439 fi; \ 440 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ 441 else \ 442 test -f $(distdir)/$$file \ 443 || cp -p $$d/$$file $(distdir)/$$file \ 444 || exit 1; \ 445 fi; \ 446 done 447 check-am: all-am 448 check: check-am 449 all-am: Makefile $(LIBRARIES) $(PROGRAMS) $(HEADERS) config.h 450 451 installdirs: 452 $(mkinstalldirs) $(DESTDIR)$(libdir) $(DESTDIR)$(bindir) $(DESTDIR)$(libpsmodule_adir) 453 install: install-am 454 install-exec: install-exec-am 455 install-data: install-data-am 456 uninstall: uninstall-am 457 458 install-am: all-am 459 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am 460 461 installcheck: installcheck-am 462 install-strip: 463 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ 464 INSTALL_STRIP_FLAG=-s \ 465 `test -z '$(STRIP)' || \ 466 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install 467 mostlyclean-generic: 468 469 clean-generic: 470 471 distclean-generic: 472 -rm -f $(CONFIG_CLEAN_FILES) 473 474 maintainer-clean-generic: 475 @echo "This command is intended for maintainers to use" 476 @echo "it deletes files that may require special tools to rebuild." 477 clean: clean-am 478 479 clean-am: clean-binPROGRAMS clean-generic clean-libLIBRARIES \ 480 clean-libtool mostlyclean-am 481 482 distclean: distclean-am 483 -rm -rf ./$(DEPDIR) 484 -rm -f Makefile 485 distclean-am: clean-am distclean-compile distclean-generic distclean-hdr \ 486 distclean-libtool distclean-tags 487 488 dvi: dvi-am 489 490 dvi-am: 491 492 info: info-am 493 494 info-am: 495 496 install-data-am: install-libpsmodule_aHEADERS 497 498 install-exec-am: install-binPROGRAMS install-libLIBRARIES 499 500 install-info: install-info-am 501 502 install-man: 503 504 installcheck-am: 505 506 maintainer-clean: maintainer-clean-am 507 -rm -rf ./$(DEPDIR) 508 -rm -f Makefile 509 maintainer-clean-am: distclean-am maintainer-clean-generic 510 511 mostlyclean: mostlyclean-am 512 513 mostlyclean-am: mostlyclean-compile mostlyclean-generic \ 514 mostlyclean-libtool 515 516 pdf: pdf-am 517 518 pdf-am: 519 520 ps: ps-am 521 522 ps-am: 523 524 uninstall-am: uninstall-binPROGRAMS uninstall-info-am \ 525 uninstall-libLIBRARIES uninstall-libpsmodule_aHEADERS 526 527 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \ 528 clean-generic clean-libLIBRARIES clean-libtool ctags distclean \ 529 distclean-compile distclean-generic distclean-hdr \ 530 distclean-libtool distclean-tags distdir dvi dvi-am info \ 531 info-am install install-am install-binPROGRAMS install-data \ 532 install-data-am install-exec install-exec-am install-info \ 533 install-info-am install-libLIBRARIES \ 534 install-libpsmodule_aHEADERS install-man install-strip \ 535 installcheck installcheck-am installdirs maintainer-clean \ 536 maintainer-clean-generic mostlyclean mostlyclean-compile \ 537 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ 538 tags uninstall uninstall-am uninstall-binPROGRAMS \ 539 uninstall-info-am uninstall-libLIBRARIES \ 540 uninstall-libpsmodule_aHEADERS 541 542 # Tell versions [3.59,3.63) of GNU make to not export all variables. 543 # Otherwise a system limit (for SysV at least) may be exceeded. 544 .NOEXPORT: -
trunk/psModules/src/pmSubtractBias.c
r1880 r1883 8 8 * @author George Gusciora, MHPCC 9 9 * 10 * @version $Revision: 1. 4$ $Name: not supported by cvs2svn $11 * @date $Date: 2004-09-24 2 1:05:00$10 * @version $Revision: 1.5 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2004-09-24 22:33:17 $ 12 12 * 13 13 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 22 22 #include<math.h> 23 23 #include "pslib.h" 24 25 26 //#include "pmSubtractBias.h" 27 // PM_OVERSCAN_NONE, ///< No overscan subtraction 28 // PM_OVERSCAN_ROWS, ///< Subtract rows 29 // PM_OVERSCAN_COLUMNS, ///< Subtract columns 30 // PM_OVERSCAN_ALL ///< Subtract the statistic of all pixels in overscan region 31 //} pmOverScanAxis; 32 //typedef enum { 33 // PM_FIT_NONE, ///< No fit 34 // PM_FIT_POLYNOMIAL, ///< Fit polynomial 35 // PM_FIT_SPLINE ///< Fit cubic splines 24 #include "pmSubtractBias.h" 36 25 37 26 #define PM_SUBTRACT_BIAS_POLYNOMIAL_ORDER 2 … … 73 62 // XXX: Is there already a function which does this? 74 63 psImage *p_psImageSubtractScalar(psImage *image, 75 float *scalar)64 float scalar) 76 65 { 77 66 int i; … … 80 69 for (i=0;i<image->numRows;i++) { 81 70 for (j=0;j<image->numCols;j++) { 82 image->data.F32[i][j]-= scalar;71 (image->data.F32[i][j])-= scalar; 83 72 } 84 73 } … … 95 84 { 96 85 int numOptions = 0; 97 psStatsOptions opt ;86 psStatsOptions opt = 0; 98 87 99 88 if (stat->options & PS_STAT_SAMPLE_MEAN) { … … 137 126 } 138 127 128 if (numOptions == 0) { 129 // XXX: psErrorMsg() 130 } 139 131 if (numOptions != 1) { 140 \\ XXX: 141 Generate warning message. 142 } 143 132 // XXX:Generate warning message. 133 } 144 134 return(opt); 145 135 } 146 136 147 137 // XXX: Must scale the overscan vector 148 psVector *ScaleOverscanVector(overscanVector, 149 (in->image)->numCols, 138 139 psVector *ScaleOverscanVector(psVector *overscanVector, 140 int n, 150 141 pmFit fit) 151 142 { 152 143 return(overscanVector); 153 144 } 154 155 145 156 146 psReadout *pmSubtractBias(psReadout *in, … … 158 148 const psList *overscans, 159 149 pmOverscanAxis overScanAxis, 160 constpsStats *stat,150 psStats *stat, 161 151 int nBin, 162 152 pmFit fit, … … 165 155 int i; 166 156 int j; 167 int nBin; 168 int numBins; 157 int numBins = 0; 169 158 static psVector *overscanVector = NULL; 170 159 psVector *tmpRow = NULL; 171 160 psVector *tmpCol = NULL; 172 psVector *tmpMask = NULL;173 161 psVector *myBin = NULL; 174 162 psVector *binVec = NULL; 175 psList *tmpOverscan = NULL; 163 psListElem *tmpOverscan = NULL; 164 double statValue; 165 psImage *myOverscanImage = NULL; 166 psPolynomial1D *myPoly; 167 psSpline1D *mySpline; 176 168 177 169 if (in == NULL) { … … 208 200 if (overScanAxis == PM_OVERSCAN_ALL) { 209 201 psImageStats(stat, in->image, in->mask, 0xffffffff); 210 p_psImageSubtractScalar(in->image, stat->value); 202 p_psGetStatValue(stat, &statValue); 203 p_psImageSubtractScalar(in->image, statValue); 211 204 return(in); 212 205 } … … 215 208 // having to copy every element in that vector? 216 209 217 // XXX: If we get here, do we know that overScanAxis == PM_OVERSCAN_ROW 210 // XXX: If we get here, do we know that overScanAxis == PM_OVERSCAN_ROWS 218 211 // or PM_OVERSCAN_COL? 219 212 220 213 // XXX: How to use multiple overscans? Currently, only the first is used. 221 if ((overScanAxis == PM_OVERSCAN_ROW ) || (overScanAxis == PM_OVERSCAN_COL)) {222 myOverscanImage = (psImage *) overscans->data;223 224 if (overScanAxis == PM_OVERSCAN_ROW ) {225 overscanVector = psVectorAlloc( (myOverscanImage->image)->numCols, PS_TYPE_F32);214 if ((overScanAxis == PM_OVERSCAN_ROWS) || (overScanAxis == PM_OVERSCAN_COLUMNS)) { 215 myOverscanImage = (psImage *) ((overscans->head)->data); 216 217 if (overScanAxis == PM_OVERSCAN_ROWS) { 218 overscanVector = psVectorAlloc(myOverscanImage->numCols, PS_TYPE_F32); 226 219 for (i=0;i<overscanVector->n;i++) { 227 220 overscanVector->data.F32[i] = 0.0; 228 221 } 229 222 tmpRow = psVectorAlloc((in->image)->numCols, PS_TYPE_F32); 230 tmpMask = psVectorAlloc((in->image)->numCols, PS_TYPE_U8); 231 232 tmpOverscan = (psList *) overscans; 223 224 tmpOverscan = (psListElem *) overscans->head; 233 225 while (tmpOverscan) { 234 226 myOverscanImage = (psImage *) tmpOverscan->data; 235 for (i=0;i<(myOverscanImage->image)->numCols;i++) { 236 for (j=0;j<(myOverscanImage->image)->numRows;j++) { 237 tmpRow->data.F32[j] = (myOverscanImage->image)->data.F32[i][j]; 238 tmpMask->data.U8[j] = (myOverscanImage->mask)->data.U8[i][j]; 227 for (i=0;i<myOverscanImage->numCols;i++) { 228 for (j=0;j<myOverscanImage->numRows;j++) { 229 tmpRow->data.F32[j] = myOverscanImage->data.F32[i][j]; 239 230 } 240 stat = psVectorStats(stat, tmpRow, tmpMask, 0xffffffff);241 overscanVector->data.F32[i] = stat->value;242 }243 // tmpOverscan = tmpOverscan->next; 244 tmpOverscan = NULL: 245 }246 247 psFree(tmpRow);248 psFree(tmp Mask);231 stat = psVectorStats(stat, tmpRow, NULL, 0xffffffff); 232 p_psGetStatValue(stat, &statValue); 233 overscanVector->data.F32[i] = statValue; 234 235 } 236 // tmpOverscan = tmpOverscan->next; 237 tmpOverscan = NULL; 238 } 239 psFree(tmpRow); 249 240 ScaleOverscanVector(overscanVector, (in->image)->numCols, fit); 250 241 } 251 if (overScanAxis == PM_OVERSCAN_COL ) {252 overscanVector = psVectorAlloc( (myOverscanImage->image)->numRows, PS_TYPE_F32);242 if (overScanAxis == PM_OVERSCAN_COLUMNS) { 243 overscanVector = psVectorAlloc(myOverscanImage->numRows, PS_TYPE_F32); 253 244 for (i=0;i<overscanVector->n;i++) { 254 245 overscanVector->data.F32[i] = 0.0; 255 246 } 256 tmpcol = psVectorAlloc((in->image)->numRows, PS_TYPE_F32); 257 tmpMask = psVectorAlloc((in->image)->nuRows, PS_TYPE_U8); 258 259 tmpOverscan = (psList *) overscans; 247 tmpCol = psVectorAlloc((in->image)->numRows, PS_TYPE_F32); 248 249 tmpOverscan = (psListElem *) overscans->head; 260 250 while (tmpOverscan) { 261 for (i=0;i<(myOverscanImage->image)->numRows;i++) { 262 for (j=0;j<(myOverscanImage->image)->numCols;j++) { 263 tmpRow->data.F32[j] = (myOverscanImage->image)->data.F32[i][j]; 264 tmpMask->data.U8[j] = (myOverscanImage->mask)->data.U8[i][j]; 251 for (i=0;i<myOverscanImage->numRows;i++) { 252 for (j=0;j<myOverscanImage->numCols;j++) { 253 tmpRow->data.F32[j] = myOverscanImage->data.F32[i][j]; 265 254 } 266 stat = psVectorStats(stat, tmpRow, tmpMask, 0xffffffff); 267 overscanVector->data.F32[i] = stat->value; 255 stat = psVectorStats(stat, tmpRow, NULL, 0xffffffff); 256 p_psGetStatValue(stat, &statValue); 257 overscanVector->data.F32[i] = statValue; 268 258 } 269 259 // tmpOverscan = tmpOverscan->next; 270 tmpOverscan = NULL: 271 } 272 psFree(tmpCol); 273 psFree(tmpMask); 260 tmpOverscan = NULL; 261 } 262 psFree(tmpCol); 274 263 ScaleOverscanVector(overscanVector, (in->image)->numRows, fit); 275 264 } … … 277 266 if ((nBin > 0) && (nBin < overscanVector->n)) { 278 267 numBins = 1+((overscanVector->n)/nBin); 279 psVector *myBin = psVectorAlloc(numBins, PS_TYPE_F32);268 myBin = psVectorAlloc(numBins, PS_TYPE_F32); 280 269 binVec = psVectorAlloc(nBin, PS_TYPE_F32); 281 270 … … 292 281 } 293 282 stat = psVectorStats(stat, binVec, NULL, 0); 294 myBin->data.F32[i] = stat->value; 283 p_psGetStatValue(stat, &statValue); 284 myBin->data.F32[i] = statValue; 285 295 286 } 296 287 // Change the effective size of overscanVector. … … 314 305 315 306 } else if (fit == PM_FIT_SPLINE) { 316 mySpline = (psS Pline1D *) fitSpec;307 mySpline = (psSpline1D *) fitSpec; 317 308 // XXX: What is the point of doing this? 318 309 } 319 310 } 320 311 321 if (overScanAxis == PM_OVERSCAN_ROW ) {312 if (overScanAxis == PM_OVERSCAN_ROWS) { 322 313 for (i=0;i<(in->image)->numCols;i++) { 323 314 for (j=0;j<(in->image)->numRows;j++) { … … 327 318 } 328 319 329 if (overScanAxis == PM_OVERSCAN_COLUMN ) {320 if (overScanAxis == PM_OVERSCAN_COLUMNS) { 330 321 for (i=0;i<(in->image)->numRows;i++) { 331 322 for (j=0;j<(in->image)->numCols;j++) { … … 343 334 344 335 // XXX: psErrorMsg(): Shouldn't get here? 345 } 346 336 return(in); 337 } 338 339 -
trunk/psModules/src/pmSubtractBias.h
r1862 r1883 8 8 * @author George Gusciora, MHPCC 9 9 * 10 * @version $Revision: 1. 1$ $Name: not supported by cvs2svn $11 * @date $Date: 2004-09-2 3 06:48:30$10 * @version $Revision: 1.2 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2004-09-24 22:33:17 $ 12 12 * 13 13 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 31 31 PM_OVERSCAN_COLUMNS, ///< Subtract columns 32 32 PM_OVERSCAN_ALL ///< Subtract the statistic of all pixels in overscan region 33 } pmOver ScanAxis;33 } pmOverscanAxis; 34 34 35 35 typedef enum { … … 43 43 const psList *overscans, 44 44 pmOverscanAxis overScanAxis, 45 constpsStats *stat,45 psStats *stat, 46 46 int nBin, 47 47 pmFit fit,
Note:
See TracChangeset
for help on using the changeset viewer.
