#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include <stdarg.h>
#include <glib.h>
#include <math.h>
#include "preview.h"
#include "ccu.h"
#include <gsl/gsl_statistics.h>
#include <gsl/gsl_sort.h>
Functions | |
void | init_imstat () |
initializes the image statisics system | |
void | preview_set_max_dimensions (int x, int y) |
sets the maximum sizes of the preview (online display) | |
void | preview_set_enable (int in) |
sets the preview to enabled/disbaled | |
void | preview_readout_starts (int ccu_width, int ccu_height) |
called by the aquistion system when the readout starts | |
void | preview_fill_buffer (unsigned char *data, int size) |
fills previewbuf with data, without drawing anything | |
void | preview_send_data () |
checks whether new data is available for sending to the (G)UI and sends new data in this case. | |
void | preview_readout_finished () |
This function is called when the readout has finished. | |
Variables | |
unsigned int * | previewbuf = NULL |
volatile unsigned long int | preview_words_sent = 0 |
volatile unsigned long int | preview_words_ready = 0 |
sem_t | preview_sem |
double * | data |
volatile int | preview_width = 256 |
volatile int | preview_height = 256 |
volatile int | preview_max_width = 400 |
volatile int | preview_max_height = 400 |
volatile int | preview_enable = 1 |
image_statistics_struct | image_statistics |
sem_t | imstat_sem |
unsigned long | preview_x |
unsigned long | preview_y |
Copyright (C) 2001-2003 Dirk Huenniger (dhun@astro.uni-bonn.de)
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
|
initializes the image statisics system
|
|
fills previewbuf with data, without drawing anything
|
|
This function is called when the readout has finished.
|
|
called by the aquistion system when the readout starts
|
|
checks whether new data is available for sending to the (G)UI and sends new data in this case.
|
|
sets the preview to enabled/disbaled
|
|
sets the maximum sizes of the preview (online display)
|
|
a float buffer to calculate some image statistics |
|
The current image st |
|
a semaphore protecting image_statistics struct of the image staitics system (would be better to move the image statistics system to an other file) |
|
1 if the Preview Data shall be sent to the User interace |
|
The actual height of the preview image |
|
The maximum height of the preview image |
|
The maximum width of the preview image |
|
a semaphore protecting preview_words_sent preview_words_ready and previewbuf |
|
The actual width of the preview image |
|
the number of bytes of bytes that have are ready to be send to the preview |
|
the number of bytes of the preview image that have allready been transferred to the gui |
|
The current postition in the dataflow received from the CCD Controller, in the system of the frame as aquired by the CCD Controller (not in the system (smaller) preview image) |
|
The current postition in the dataflow received from the CCD Controller, in the system of the frame as aquired by the CCD Controller (not in the system (smaller) preview image) |
|
a buffer to hold preview image (16 bit grey) |