-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
84 lines (58 loc) · 2.15 KB
/
README
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
imutil plugin for Yorick:
Copyright F.Rigaut, 2004-2011
see file imutil.i for more details.
version 0.5.7
1. Content:
This plugin includes the following functions:
func bilinear(image,arg1,arg2,grid=,minus_one=,outside=)
bilinear interpolation on 2D arrays
func spline2(image,arg1,arg2,grid=,minus_one=,outside=,mask=)
2D spline interpolation on 2d arrays
func bin2d(in,binfact)
resampling by neighbor averaging (binning)
func cart2pol(image,&r,&theta,xc=,yc=,ntheta=,nr=,tor=,splin=,outside=)
cartesian to polar coordinate mapping
func clip(inarray,xmin,xmax)
set min and max of array to said values
func dist(dim,xc=,yc=)
generate euclidian distance map
func eclat(image)
quadrant swap "a la FFT"
func gaussdev(dims)
generate random array with Gaussian statistic
func poidev(vec)
compute poisson statistic of input array
func rotate2(image,angle,xc=,yc=,splin=,outside=)
rotate 2D array using bilinear() or spline2()
func sedgesort(vec)
sort input vector
func sedgemedian(vec)
find median of input vector
func cpc(im,fmin,fmax)
return image clipped at fmin (fraction) and fmax.
2. Installation from source:
see installation instructions in Makefile.
Basically, you will need a C compiler and make/gnumake.
You need yorick in your executable path.
yorick -batch make.i
make
make check
make install
The install puts imutil.i in Y_SITE/i, the imutil.so library in
Y_HOME/lib and the imutil_start.i in Y_SITE/i-start
3. History:
2010dec21 v0.5.7: modified Makefile for osx to create staticlib
for linking with yao.
2010jun17 v0.5.6: poidev internals now use doubles
2010apr14 v0.5.5: Thibaut patch for round
2008mar10 v0.5.4: Added support for char, short, int in clip()
2005dec09 v0.5.1: updated the documents, README and info file.
2005dec01 v0.5 : bumped up to v0.5
2005nov08 v0.2.2: fixed local x in sedgesort
2005aug24 v0.2.1: added mask= keyword in spline2 to enable
invalid data point in input array.
2005may18 v0.2 : Worked on compatibility with 64 bits.
Check API for int/long mix up. Corrected a few.
21Nov2004 removed a call to img_read to read test image
(introduced dependency), replaced by a restore.
Nov2004 creation.