PageRenderTime 27ms CodeModel.GetById 12ms app.highlight 11ms RepoModel.GetById 1ms app.codeStats 0ms

/dmagick/c/feature.d

http://github.com/MikeWey/DMagick
D | 39 lines | 35 code | 4 blank | 0 comment | 2 complexity | 366c5c94a6668aef8ec8e9d2f9c77827 MD5 | raw file
 1module dmagick.c.feature;
 2
 3import dmagick.c.exception;
 4import dmagick.c.image;
 5import dmagick.c.magickVersion;
 6
 7extern(C)
 8{
 9	struct ChannelFeatures
10	{
11		double[4]
12			angular_second_moment,
13			contrast,
14			correlation,
15			variance_sum_of_squares,
16			inverse_difference_moment,
17			sum_average,
18			sum_variance,
19			sum_entropy,
20			entropy,
21			difference_variance,
22			difference_entropy,
23			measure_of_correlation_1,
24			measure_of_correlation_2,
25			maximum_correlation_coefficient;
26	}
27
28	ChannelFeatures* GetImageChannelFeatures(const(Image)*, const size_t, ExceptionInfo*);
29
30	static if ( MagickLibVersion >= 0x689 )
31	{
32		Image* CannyEdgeImage(const(Image)*, const double, const double, const double, const double, ExceptionInfo*);
33	}
34	static if ( MagickLibVersion >= 0x690 )
35	{
36		Image* HoughLineImage(const(Image)*, const size_t, const size_t, const size_t, ExceptionInfo*);
37		Image* MeanShiftImage(const(Image)*, const size_t, const size_t, const double, ExceptionInfo*);
38	}
39}