summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorMihael Koep <koep@schneide.com>2014-09-16 11:55:51 +0200
committerMihael Koep <koep@schneide.com>2014-09-17 09:45:13 +0200
commitabe92df0c159414acf3dcaae28d7b7b3734b27c6 (patch)
tree0d6d40b95433b5a8fe5a645357ff26c062ef6b26 /plugins
parentc368cf5a6e5a3cca3f1d95e8ba698707cdd16a29 (diff)
downloaduca-abe92df0c159414acf3dcaae28d7b7b3734b27c6.tar.gz
uca-abe92df0c159414acf3dcaae28d7b7b3734b27c6.tar.bz2
uca-abe92df0c159414acf3dcaae28d7b7b3734b27c6.tar.xz
uca-abe92df0c159414acf3dcaae28d7b7b3734b27c6.zip
Implement pixel size properties
Diffstat (limited to 'plugins')
-rw-r--r--plugins/dexela/uca-dexela-camera.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/plugins/dexela/uca-dexela-camera.c b/plugins/dexela/uca-dexela-camera.c
index cefd228..db808fc 100644
--- a/plugins/dexela/uca-dexela-camera.c
+++ b/plugins/dexela/uca-dexela-camera.c
@@ -49,6 +49,8 @@ static gint base_overrideables[] = {
PROP_NAME,
PROP_SENSOR_WIDTH,
PROP_SENSOR_HEIGHT,
+ PROP_SENSOR_PIXEL_WIDTH,
+ PROP_SENSOR_PIXEL_HEIGHT,
PROP_SENSOR_BITDEPTH,
PROP_SENSOR_HORIZONTAL_BINNING,
PROP_SENSOR_HORIZONTAL_BINNINGS,
@@ -71,6 +73,7 @@ static GParamSpec *dexela_properties[N_PROPERTIES] = { NULL, };
static const gdouble MICROS_TO_SECONDS_FACTOR = 1e6d;
static const gdouble MINIMUM_EXPOSURE_TIME_IN_SECONDS = 0.017d; // 17ms as per documentation
+static const gdouble PIXEL_SIZE = 74.8e-6; // 74.8µm as per data sheet
struct _UcaDexelaCameraPrivate {
GValueArray *binnings;
@@ -189,6 +192,16 @@ static void uca_dexela_camera_get_property(GObject *object, guint property_id, G
g_value_set_uint(value, priv->height);
break;
}
+ case PROP_SENSOR_PIXEL_WIDTH:
+ {
+ g_value_set_double(value, PIXEL_SIZE);
+ break;
+ }
+ case PROP_SENSOR_PIXEL_HEIGHT:
+ {
+ g_value_set_double(value, PIXEL_SIZE);
+ break;
+ }
case PROP_ROI_X:
{
g_value_set_uint(value, priv->roi_x);