-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathvisualise.h
32 lines (28 loc) · 1.12 KB
/
visualise.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*
** Source file for mscr. (c) 2007 Per-Erik Forssen
**
** 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; either version 2 of the License, or
** (at your option) any later version.
**
** See the file COPYING for details.
**
*/
#ifndef __VISUALISE
#define __VISUALISE
#include "image_buffer.h"
#define PI 3.141592653589793143328792211
/* Visualisation methods */
void buffer_paint(buffer *bf,buffer *bf_pvec);
void bbuffer_paint(bbuffer *bf,bbuffer *bf_pvec);
void eigendec(fpnum *I,fpnum *D,fpnum *E);
void draw_ellipses(buffer *bf_img,buffer *bf_mvec,buffer *bf_pvec);
void bdraw_ellipses(bbuffer *bf_img,buffer *bf_mvec,bbuffer *bf_pvec);
void draw_regions(buffer *bf_img,ibuffer *bf_labelim,buffer *bf_pvec);
void pvec_to_rgb(buffer *bf_pvec,buffer **bl_pvecn);
void pvec_colourspace(buffer *bf_pvec);
void pvec_to_uint8(buffer *bf_pvec,bbuffer **bl_pvec2);
void mvec_set_area(buffer *bf_mvec);
void inside_mask_ratios(ibuffer *bf_mask,buffer *bf_mvec,buffer *bf_ratios);
#endif /* __VISUALISE */