Instrument Neutral Distributed Interface INDI
2.0.2
|
Functions | |
DLL_EXPORT dsp_stream_p * | dsp_file_read_fits (const char *filename, int *channels, int stretch) |
Read a FITS file and fill a dsp_stream_p with its content. More... | |
DLL_EXPORT void | dsp_file_write_fits (const char *filename, int bpp, dsp_stream_p stream) |
Write the dsp_stream_p into a FITS file,. More... | |
DLL_EXPORT void | dsp_file_write_fits_composite (const char *filename, int components, int bpp, dsp_stream_p *stream) |
Write the components dsp_stream_p array into a JPEG file,. More... | |
DLL_EXPORT dsp_stream_p * | dsp_file_read_jpeg (const char *filename, int *channels, int stretch) |
Read a JPEG file and fill a array of dsp_stream_p with its content, each color channel has its own stream in this array and an additional grayscale at end will be added. More... | |
DLL_EXPORT void | dsp_file_write_jpeg (const char *filename, int quality, dsp_stream_p stream) |
Write the stream into a JPEG file,. More... | |
DLL_EXPORT void | dsp_file_write_jpeg_composite (const char *filename, int components, int quality, dsp_stream_p *stream) |
Write the components dsp_stream_p array into a JPEG file,. More... | |
DLL_EXPORT dsp_t * | dsp_file_bayer_2_gray (dsp_t *src, int width, int height) |
Convert a bayer pattern dsp_t array into a grayscale array. More... | |
DLL_EXPORT dsp_t * | dsp_file_bayer_2_rgb (dsp_t *src, int red, int width, int height) |
Convert a bayer pattern dsp_t array into a ordered 3 RGB array. More... | |
DLL_EXPORT dsp_stream_p * | dsp_stream_from_components (dsp_t *buf, int dims, int *sizes, int components) |
Convert a color component dsp_t array into a dsp_stream_p array each element containing the single components. More... | |
DLL_EXPORT dsp_stream_p * | dsp_buffer_rgb_to_components (void *buf, int dims, int *sizes, int components, int bpp, int stretch) |
Convert an RGB color dsp_t array into a dsp_stream_p array each element containing the single components. More... | |
DLL_EXPORT void | dsp_buffer_components_to_rgb (dsp_stream_p *stream, void *rgb, int components, int bpp) |
Convert a component dsp_stream_p array into an RGB dsp_t array. More... | |
DLL_EXPORT dsp_t * | dsp_file_composite_2_bayer (dsp_stream_p *src, int red, int width, int height) |
Convert a component dsp_stream_p array into a bayer dsp_t array. More... | |
DLL_EXPORT void | dsp_file_write_fits_bayer (const char *filename, int components, int bpp, dsp_stream_p *stream) |
Write a FITS file from a dsp_stream_p array. More... | |
DLL_EXPORT dsp_t * | dsp_file_bayer_2_composite (dsp_t *src, int red, int width, int height) |
Convert a bayer pattern dsp_t array into a contiguos component array. More... | |
DLL_EXPORT dsp_align_info | dsp_align_fill_info (dsp_triangle t1, dsp_triangle t2) |
Fill a dsp_align_info struct by comparing two triangles. More... | |
DLL_EXPORT dsp_triangle | dsp_align_calc_triangle (dsp_star *stars) |
Create a dsp_triangle struct. More... | |
DLL_EXPORT int | dsp_align_get_offset (dsp_stream_p ref, dsp_stream_p to_align, double tolerance, double target_score) |
Calculate offsets, rotation and scaling of two streams giving reference alignment point. More... | |
DLL_EXPORT int | dsp_qsort_double_asc (const void *arg1, const void *arg2) |
Callback function for qsort for double type ascending ordering. More... | |
DLL_EXPORT int | dsp_qsort_double_desc (const void *arg1, const void *arg2) |
Callback function for qsort for double type descending ordering. More... | |
DLL_EXPORT int | dsp_qsort_star_diameter_asc (const void *arg1, const void *arg2) |
Callback function for qsort for dsp_star ascending ordering by their diameters. More... | |
DLL_EXPORT int | dsp_qsort_star_diameter_desc (const void *arg1, const void *arg2) |
Callback function for qsort for dsp_star descending ordering by their diameters. More... | |
DLL_EXPORT dsp_triangle dsp_align_calc_triangle | ( | dsp_star * | stars | ) |
DLL_EXPORT dsp_align_info dsp_align_fill_info | ( | dsp_triangle | t1, |
dsp_triangle | t2 | ||
) |
DLL_EXPORT int dsp_align_get_offset | ( | dsp_stream_p | ref, |
dsp_stream_p | to_align, | ||
double | tolerance, | ||
double | target_score | ||
) |
Calculate offsets, rotation and scaling of two streams giving reference alignment point.
ref | the reference stream |
to_align | the stream to be aligned |
tolerance | number of decimals allowed |
target_score | the minimum matching score to reach |
DLL_EXPORT void dsp_buffer_components_to_rgb | ( | dsp_stream_p * | stream, |
void * | rgb, | ||
int | components, | ||
int | bpp | ||
) |
DLL_EXPORT dsp_stream_p* dsp_buffer_rgb_to_components | ( | void * | buf, |
int | dims, | ||
int * | sizes, | ||
int | components, | ||
int | bpp, | ||
int | stretch | ||
) |
Convert an RGB color dsp_t array into a dsp_stream_p array each element containing the single components.
buf | the input buffer |
dims | the number of dimension |
sizes | the sizes of each dimension |
components | the number of the color components |
bpp | the color depth of the color components |
stretch | whether to stretch within 0 and dsp_t_max |
DLL_EXPORT dsp_t* dsp_file_bayer_2_composite | ( | dsp_t * | src, |
int | red, | ||
int | width, | ||
int | height | ||
) |
DLL_EXPORT dsp_t* dsp_file_bayer_2_gray | ( | dsp_t * | src, |
int | width, | ||
int | height | ||
) |
DLL_EXPORT dsp_t* dsp_file_bayer_2_rgb | ( | dsp_t * | src, |
int | red, | ||
int | width, | ||
int | height | ||
) |
DLL_EXPORT dsp_t* dsp_file_composite_2_bayer | ( | dsp_stream_p * | src, |
int | red, | ||
int | width, | ||
int | height | ||
) |
DLL_EXPORT dsp_stream_p* dsp_file_read_fits | ( | const char * | filename, |
int * | channels, | ||
int | stretch | ||
) |
DLL_EXPORT dsp_stream_p* dsp_file_read_jpeg | ( | const char * | filename, |
int * | channels, | ||
int | stretch | ||
) |
Read a JPEG file and fill a array of dsp_stream_p with its content, each color channel has its own stream in this array and an additional grayscale at end will be added.
filename | the file name. |
channels | this value will be updated with the channel quantity into the picture. |
stretch | 1 if the buffer intensities have to be stretched |
DLL_EXPORT void dsp_file_write_fits | ( | const char * | filename, |
int | bpp, | ||
dsp_stream_p | stream | ||
) |
DLL_EXPORT void dsp_file_write_fits_bayer | ( | const char * | filename, |
int | components, | ||
int | bpp, | ||
dsp_stream_p * | stream | ||
) |
DLL_EXPORT void dsp_file_write_fits_composite | ( | const char * | filename, |
int | components, | ||
int | bpp, | ||
dsp_stream_p * | stream | ||
) |
Write the components dsp_stream_p array into a JPEG file,.
filename | the file name. |
components | the number of streams in the array to be used as components 1 or 3. |
bpp | the bit depth of the output JPEG file [8,16,32,64,-32,-64]. |
stream | the input stream to be saved |
DLL_EXPORT void dsp_file_write_jpeg | ( | const char * | filename, |
int | quality, | ||
dsp_stream_p | stream | ||
) |
DLL_EXPORT void dsp_file_write_jpeg_composite | ( | const char * | filename, |
int | components, | ||
int | quality, | ||
dsp_stream_p * | stream | ||
) |
DLL_EXPORT int dsp_qsort_double_asc | ( | const void * | arg1, |
const void * | arg2 | ||
) |
DLL_EXPORT int dsp_qsort_double_desc | ( | const void * | arg1, |
const void * | arg2 | ||
) |
DLL_EXPORT int dsp_qsort_star_diameter_asc | ( | const void * | arg1, |
const void * | arg2 | ||
) |
DLL_EXPORT int dsp_qsort_star_diameter_desc | ( | const void * | arg1, |
const void * | arg2 | ||
) |
DLL_EXPORT dsp_stream_p* dsp_stream_from_components | ( | dsp_t * | buf, |
int | dims, | ||
int * | sizes, | ||
int | components | ||
) |
Convert a color component dsp_t array into a dsp_stream_p array each element containing the single components.
buf | the input buffer |
dims | the number of dimension |
sizes | the sizes of each dimension |
components | the number of the color components |