lamino-roi.h 1011 B

1234567891011121314151617181920212223
  1. #ifndef LAMINO_ROI_H
  2. #define LAMINO_ROI_H
  3. #define EXTRACT_INT(region, index) g_value_get_int (g_value_array_get_nth ((region), (index)))
  4. #include <glib-object.h>
  5. G_BEGIN_DECLS
  6. void clip (gint result[2], gfloat extrema[2], gint maximum);
  7. void determine_x_extrema (gfloat extrema[2], GValueArray *x_extrema, GValueArray *y_extrema,
  8. gfloat tomo_angle, gfloat x_center);
  9. void determine_y_extrema (gfloat extrema[2], GValueArray *x_extrema, GValueArray *y_extrema,
  10. gfloat z_extrema[2], gfloat tomo_angle, gfloat lamino_angle,
  11. gfloat y_center);
  12. void determine_x_region (gint result[2], GValueArray *x_extrema, GValueArray *y_extrema, gfloat tomo_angle,
  13. gfloat x_center, gint width);
  14. void determine_y_region (gint result[2], GValueArray *x_extrema, GValueArray *y_extrema, gfloat z_extrema[2],
  15. gfloat tomo_angle, gfloat lamino_angle, gfloat y_center, gint height);
  16. G_END_DECLS
  17. #endif