Changeset 34089 for trunk/ppStack
- Timestamp:
- Jun 26, 2012, 11:47:13 AM (14 years ago)
- Location:
- trunk/ppStack
- Files:
-
- 5 edited
-
configure.ac (modified) (2 diffs)
-
src/ppStackConvolve.c (modified) (2 diffs)
-
src/ppStackFinish.c (modified) (1 diff)
-
src/ppStackMatch.c (modified) (1 diff)
-
src/ppStackTarget.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppStack/configure.ac
r27004 r34089 8 8 AM_MAINTAINER_MODE 9 9 10 IPP_STD CFLAGS10 IPP_STDLDFLAGS 11 11 12 12 AC_LANG(C) … … 28 28 29 29 IPP_STDOPTS 30 CFLAGS="${CFLAGS=} -Wall -Werror" 30 IPP_STDCFLAGS 31 31 32 32 IPP_VERSION -
trunk/ppStack/src/ppStackConvolve.c
r32170 r34089 7 7 psMetadataItem *item = psMetadataLookup(SOURCE->concepts, NAME); \ 8 8 psAssert(item, "Concept should be present"); \ 9 psAssert(item->type == PS_ TYPE_F32, "Concept should be F32"); \9 psAssert(item->type == PS_DATA_F32, "Concept should be F32"); \ 10 10 item->data.F32 = VALUE; \ 11 11 } … … 101 101 if (!ppStackMatch(readout, target, options, i, config)) { 102 102 // XXX many things can cause a failure of ppStackMatch -- should some be handled differently? 103 psErrorCode error = psErrorCodeLast(); // Error code 103 104 // gcc -Wswitch complains here if err is declared as type psErrorCode 105 // the collection of ps*ErrorCode values are enums defined separately for 106 // each module (psphot, pswarp, etc). the lowest type, psErrorCode is only the base set and does 107 // not include the possible psphot values 108 109 // for now, to get around this, we just use an int for the switch 110 111 // psErrorCode error = psErrorCodeLast(); // Error code 112 int error = psErrorCodeLast(); // Error code 104 113 switch (error) { 105 114 // Fatal errors -
trunk/ppStack/src/ppStackFinish.c
r30620 r34089 45 45 } 46 46 47 psErrorCode errorCode = psErrorCodeLast(); // Error code 47 // gcc -Wswitch complains here if err is declared as type psErrorCode 48 // the collection of ps*ErrorCode values are enums defined separately for 49 // each module (psphot, pswarp, etc). the lowest type, psErrorCode is only the base set and does 50 // not include the possible psphot values 51 52 // for now, to get around this, we just use an int for the switch 53 54 // psErrorCode errorCode = psErrorCodeLast(); // Error code 55 int errorCode = psErrorCodeLast(); // Error code 48 56 if (errorCode == PS_ERR_NONE) { 49 57 return exitValue; -
trunk/ppStack/src/ppStackMatch.c
r33426 r34089 460 460 psMetadataItem *item = NULL;// Item from iteration 461 461 while ((item = psMetadataGetAndIncrement(iter))) { 462 assert(item->type == PS_ TYPE_F32);462 assert(item->type == PS_DATA_F32); 463 463 float norm = item->data.F32; // Normalisation 464 464 sum += norm; -
trunk/ppStack/src/ppStackTarget.c
r30620 r34089 191 191 192 192 float norm = powf(10.0, -0.4 * options->norm->data.F32[i]); // Normalisation from stars 193 float meanVariance = bg->robustMedian * PS_SQR(norm); // Mean variance in normalised image193 float meanVariance = mean * PS_SQR(norm); // Mean variance in normalised image 194 194 195 195 if (meanVariance < minVariance) {
Note:
See TracChangeset
for help on using the changeset viewer.
