Changeset 16061
- Timestamp:
- Jan 14, 2008, 1:51:07 PM (18 years ago)
- Location:
- trunk/Ohana/src
- Files:
-
- 13 edited
-
addstar/src/ConfigInit_skycells.c (modified) (1 diff)
-
addstar/src/skycells.c (modified) (1 diff)
-
dvosplit/include/dvosplit.h (modified) (1 diff)
-
getstar/include/getstar.h (modified) (1 diff)
-
kapa2/include/prototypes.h (modified) (6 diffs)
-
kapa2/src/ColorCube.c (modified) (2 diffs)
-
kapa2/src/ColorHistogram.c (modified) (2 diffs)
-
kapa2/src/CreateZoom32.c (modified) (1 diff)
-
kapa2/src/JPEGit24.c (modified) (2 diffs)
-
kapa2/src/Remap32.c (modified) (1 diff)
-
kapa2/src/SetColorScale.c (modified) (4 diffs)
-
kapa2/src/sort.c (modified) (1 diff)
-
uniphot/include/uniphot.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/addstar/src/ConfigInit_skycells.c
r12753 r16061 6 6 7 7 char *config, *file; 8 char RadiusWord[80];9 8 char CatdirPhotcodeFile[256]; 10 9 char MasterPhotcodeFile[256]; -
trunk/Ohana/src/addstar/src/skycells.c
r13185 r16061 3 3 int main (int argc, char **argv) { 4 4 5 int i, Nimages, status, level; 6 Image *images; 7 Catalog catalog; 5 int status, level; 8 6 FITS_DB db; 9 7 -
trunk/Ohana/src/dvosplit/include/dvosplit.h
r15743 r16061 35 35 void SetProtect PROTO((int mode)); 36 36 void TrapSignal PROTO((int sig)); 37 int Shutdown PROTO((char *format, ...)); 37 38 int args PROTO((int argc, char **argv)); 38 39 -
trunk/Ohana/src/getstar/include/getstar.h
r15540 r16061 31 31 PhotCode *photcode; 32 32 33 int args PROTO((int argc, char **argv)); 34 int ConfigInit PROTO((int *argc, char **argv)); 35 int Shutdown PROTO((char *format, ...)); 36 int load_pt_catalog PROTO((Catalog *catalog, SkyRegion *region)); 37 int select_by_region PROTO((Catalog *output, Catalog *catalog, SkyRegion *region, int start, int end)); 38 void set_db PROTO((FITS_DB *in)); 39 void wcatalog PROTO((char *filename, Catalog *catalog)); 40 void mkcatalog PROTO((Catalog *catalog)); 41 void init_catalog PROTO((Catalog *catalog)); 42 void TrapSignal PROTO((int sig)); 43 void SetProtect PROTO((int mode)); 44 int SetSignals PROTO(()); 45 int gcatalog PROTO((Catalog *catalog)); 33 int args PROTO((int argc, char **argv)); 34 int ConfigInit PROTO((int *argc, char **argv)); 35 int Shutdown PROTO((char *format, ...)); 36 int load_pt_catalog PROTO((Catalog *catalog, SkyRegion *region)); 37 int select_by_region PROTO((Catalog *output, Catalog *catalog, SkyRegion *region, int start, int end)); 38 void set_db PROTO((FITS_DB *in)); 39 void wcatalog PROTO((char *filename, Catalog *catalog)); 40 void mkcatalog PROTO((Catalog *catalog)); 41 void init_catalog PROTO((Catalog *catalog)); 42 void TrapSignal PROTO((int sig)); 43 void SetProtect PROTO((int mode)); 44 int SetSignals PROTO(()); 45 int gcatalog PROTO((Catalog *catalog)); 46 int write_catalog PROTO((Catalog *catalog)); 47 int write_getstar_PS1_DEV_0 PROTO((Catalog *catalog)); 48 int write_getstar_PS1_DEV_1 PROTO((Catalog *catalog)); 49 int write_getstar_PS1_DEV_2 PROTO((Catalog *catalog)); -
trunk/Ohana/src/kapa2/include/prototypes.h
r16011 r16061 15 15 void CheckGeometry PROTO((Graphic *graphic, int *argc, char **argv)); 16 16 void TopWindow PROTO((Graphic *graphic, Icon *icon)); 17 void CreateWindowPROTO((Graphic *graphic, Window parent, int border, long events));18 void MakeGCPROTO((Graphic *graphic));19 void MakeCursorPROTO((Graphic *graphic, unsigned int cursor));17 void CreateWindow PROTO((Graphic *graphic, Window parent, int border, long events)); 18 void MakeGC PROTO((Graphic *graphic)); 19 void MakeCursor PROTO((Graphic *graphic, unsigned int cursor)); 20 20 void LoadFont PROTO((Graphic *graphic, int *argc, char **argv, char *default_name)); 21 21 void SetNormalHints PROTO((Graphic *graphic)); … … 23 23 void NameWindow PROTO((Graphic *graphic, char *name)); 24 24 void MapWindow PROTO((Graphic *graphic)); 25 void CheckVisual (Graphic *graphic, int *argc, char **argv);25 void CheckVisual PROTO((Graphic *graphic, int *argc, char **argv)); 26 26 27 27 /* X drawing utilities */ … … 71 71 int GetImageCoords PROTO((int sock)); 72 72 int GetImageRange PROTO((int sock)); 73 int SetChannel (int sock);74 int SetColormapFromPipe (int sock);73 int SetChannel PROTO((int sock)); 74 int SetColormapFromPipe PROTO((int sock)); 75 75 76 76 int LoadVectorData PROTO((int sock, KapaGraphWidget *graph, int N, char *type)); … … 88 88 int SetActiveSectionByNumber PROTO((int N)); 89 89 int ListSection PROTO((int sock)); 90 void SetSectionSizes (Section *section);90 void SetSectionSizes PROTO((Section *section)); 91 91 92 92 KapaGraphWidget *InitGraph PROTO(()); … … 198 198 199 199 /* misc functions */ 200 void SetToolbox(int sock);201 int EraseOverlay (int sock);202 int LoadOverlay(int sock);203 int SaveOverlay(int sock);204 int CSaveOverlay (int sock);205 int JPEGit24(int sock);206 207 int UpdatePointer (Graphic *graphic, XMotionEvent *event);208 int InterpretPresses (Graphic *graphic, XButtonEvent *event);209 int InterpretKeys (Graphic *graphic, XKeyEvent *event);210 void InitPipe (char *namedSocket);211 void EraseGraph (KapaGraphWidget *graph);212 void StatusBox (Graphic *graphic, KapaImageWidget *image);213 214 void CreatePicture (KapaImageWidget *image, Graphic *graphic);215 void CreateColorbar (KapaImageWidget *image, Graphic *graphic);216 void CreateZoom (KapaImageWidget *image, Graphic *graphic, double x, double y);217 void UpdateStatusBox (Graphic *graphic, KapaImageWidget *image, double x, double y, double z, int mode);218 219 void CreateZoom8 (KapaImageWidget *image, Graphic *graphic, double x, double y);220 void CreateZoom16 (KapaImageWidget *image, Graphic *graphic, double x, double y);221 void CreateZoom24 (KapaImageWidget *image, Graphic *graphic, double x, double y);222 void CreateZoom32 (KapaImageWidget *image, Graphic *graphic, double x, double y);223 224 int GetActiveSocket ();225 void InvertButton (Graphic *graphic, Button *button);226 void bDrawOverlay (KapaImageWidget *image, int N);200 void SetToolbox (int sock); 201 int EraseOverlay (int sock); 202 int LoadOverlay (int sock); 203 int SaveOverlay (int sock); 204 int CSaveOverlay (int sock); 205 int JPEGit24 (int sock); 206 207 int UpdatePointer (Graphic *graphic, XMotionEvent *event); 208 int InterpretPresses (Graphic *graphic, XButtonEvent *event); 209 int InterpretKeys (Graphic *graphic, XKeyEvent *event); 210 void InitPipe (char *namedSocket); 211 void EraseGraph (KapaGraphWidget *graph); 212 void StatusBox (Graphic *graphic, KapaImageWidget *image); 213 214 void CreatePicture (KapaImageWidget *image, Graphic *graphic); 215 void CreateColorbar (KapaImageWidget *image, Graphic *graphic); 216 void CreateZoom (KapaImageWidget *image, Graphic *graphic, double x, double y); 217 void UpdateStatusBox (Graphic *graphic, KapaImageWidget *image, double x, double y, double z, int mode); 218 219 void CreateZoom8 (KapaImageWidget *image, Graphic *graphic, double x, double y); 220 void CreateZoom16 (KapaImageWidget *image, Graphic *graphic, double x, double y); 221 void CreateZoom24 (KapaImageWidget *image, Graphic *graphic, double x, double y); 222 void CreateZoom32 (KapaImageWidget *image, Graphic *graphic, double x, double y); 223 224 int GetActiveSocket (); 225 void InvertButton (Graphic *graphic, Button *button); 226 void bDrawOverlay (KapaImageWidget *image, int N); 227 227 228 228 /* color cube tools */ … … 243 243 244 244 int SetColorScale3D_CC (Graphic *graphic, KapaImageWidget *image); 245 246 void sort (float *value, int N); 245 int SetColorCubeHistogram (); -
trunk/Ohana/src/kapa2/src/ColorCube.c
r16011 r16061 94 94 int ix, iy, iz; 95 95 96 if (current == max) return ;96 if (current == max) return TRUE; 97 97 current ++; 98 98 … … 105 105 } 106 106 } 107 return ;107 return TRUE; 108 108 } 109 109 -
trunk/Ohana/src/kapa2/src/ColorHistogram.c
r16011 r16061 4 4 void ColorHistogram (KapaImageWidget *image, CCNode *cube) { 5 5 6 int i, j, DX, DY, value, nPixels;6 int i, DX, DY, nPixels; 7 7 float *rData, *bData, *gData, rValue, gValue, bValue; 8 8 float redSlope, blueSlope, greenSlope; … … 80 80 void CCNodeSetColorPixels (KapaImageWidget *image, CCNode *cube) { 81 81 82 int i, j, DX, DY, value, nPixels;82 int i, DX, DY, nPixels; 83 83 float *rData, *bData, *gData, rValue, gValue, bValue; 84 84 unsigned short *oData; -
trunk/Ohana/src/kapa2/src/CreateZoom32.c
r16011 r16061 7 7 int i_start, i_end, j_start, j_end; 8 8 int dropback; /* this is a bit of a kludge... */ 9 int dx, dy, DX, DY , pixelN;9 int dx, dy, DX, DY; 10 10 double expand, zoomscale, Rx, Ry; 11 11 int expand_in, expand_out; -
trunk/Ohana/src/kapa2/src/JPEGit24.c
r16011 r16061 5 5 # define WHITE_G 255 6 6 # define WHITE_B 255 7 8 static float slope = 1.0;9 static float start = 0.0;10 static int MaxValue = 255;11 12 // XXX inline this if needed13 static int PixelLookup(float value) {14 int out;15 out = MIN (MAX (slope * value - start, 0), MaxValue);16 return (out);17 }18 7 19 8 // XXX this currently writes out the jpeg for just the active image … … 32 21 int i_start, i_end, j_start, j_end; 33 22 int dropback; /* this is a bit of a kludge... */ 34 int dx, dy, DX, DY , pixelN;23 int dx, dy, DX, DY; 35 24 int quality; 36 25 int expand_in, expand_out; -
trunk/Ohana/src/kapa2/src/Remap32.c
r16011 r16061 6 6 int i_start, i_end, j_start, j_end; 7 7 int dropback; /* this is a bit of a kludge... */ 8 int dx, dy, DX, DY , pixelN;8 int dx, dy, DX, DY; 9 9 double expand, Rx, Ry, X, Y; 10 10 int expand_in, expand_out; -
trunk/Ohana/src/kapa2/src/SetColorScale.c
r16039 r16061 29 29 30 30 void SetColorScale1D (Graphic *graphic, KapaImageWidget *image) { 31 int i, j,DX, DY, value, nPixels;31 int i, DX, DY, value, nPixels; 32 32 float *iData; 33 33 unsigned short *oData; … … 73 73 // XXX this uses a crude, uniform-spacing cube 74 74 int SetColorScale3D (Graphic *graphic, KapaImageWidget *image) { 75 int i, j, DX, DY, value, nPixels, rValue, gValue, bValue; 75 76 int i, DX, DY, nPixels, rValue, gValue, bValue; 76 77 float *rData, *bData, *gData; 77 78 unsigned short *oData; … … 151 152 152 153 int i, DX, DY, Nvalues, NVALUES, Npixels, Nmin; 153 float *values , *colors;154 float *values; 154 155 CCNode *cube; 155 156 Graphic *graphic; … … 233 234 int SetColorScale3D_CC (Graphic *graphic, KapaImageWidget *image) { 234 235 235 int i, DX, DY, Nvalues, NVALUES, Npixels, Nmin;236 float *values, *colors;237 236 CCNode *cube; 238 237 -
trunk/Ohana/src/kapa2/src/sort.c
r16011 r16061 1 # include "Ximage.h"2 3 void sort (float *value, int N) {4 5 int l,j,ir,i;6 float temp;7 8 if (N < 2) return;9 l = N >> 1;10 ir = N - 1;11 for (;;) {12 if (l > 0) {13 temp = value[--l];14 }15 else {16 temp = value[ir];17 value[ir] = value[0];18 if (--ir == 0) {19 value[0] = temp;20 return;21 }22 }23 i = l;24 j = (l << 1) + 1;25 while (j <= ir) {26 if (j < ir && value[j] < value[j+1]) ++j;27 if (temp < value[j]) {28 value[i]=value[j];29 j += (i=j) + 1;30 }31 else j = ir + 1;32 }33 value[i] = temp;34 }35 }36 -
trunk/Ohana/src/uniphot/include/uniphot.h
r5386 r16061 104 104 int subset_images (FITS_DB *db); 105 105 void update (FITS_DB *db, Group *sgroup, int Nsgroup); 106 void sort_time (unsigned int *value, int N);
Note:
See TracChangeset
for help on using the changeset viewer.
