File: ProcessingUtilities.h

package info (click to toggle)
lynkeos.app 3.10%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,832 kB
  • sloc: objc: 41,053; ansic: 812; cpp: 151; sh: 68; makefile: 27
file content (63 lines) | stat: -rw-r--r-- 2,234 bytes parent folder | download | duplicates (2)
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
/*
 //
 //  Lynkeos
 //  $Id$
 //
 //  Created by Jean-Etienne LAMIAUD on Sun Nov 4 2007.
 //  Copyright (c) 2007-2023. Jean-Etienne LAMIAUD
 //
 // 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.
 //
 // This program is distributed in the hope that it will be useful,
 // but WITHOUT ANY WARRANTY; without even the implied warranty of
 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 // GNU General Public License for more details.
 //
 // You should have received a copy of the GNU General Public License
 // along with this program; if not, write to the Free Software
 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 //
 */

/*!
 * @header
 * @abstract Common utilities for image processing.
 */
#ifndef __PROCESSINGUTILITIES_H
#define __PROCESSINGUTILITIES_H

#include <sys/types.h>

#include "LynkeosCore/processing_core.h"

/*!
 * @abstract Create a bidimensional gaussian curve
 * @param[out] planes The planes to fill with the gaussian
 * @param width The image width
 * @param height The image height
 * @param nPlanes The number of planes to fill
 * @param lineWidth The number of "REAL" in a line
 * @param radius The gaussian radius
 * @ingroup Processing
 */
extern void MakeGaussian( REAL * const * const planes,
                          u_short width, u_short height, u_short nPlanes,
                          u_short lineWidth, double radius );

/*!
 * @abstract Create a bidimensional gaussian spectrum
 * @param[out] planes The planes to fill with the gaussian
 * @param halfW The spectrum width (0 to half f/2)
 * @param height The spectrum height
 * @param nPlanes The number of planes to fill
 * @param lineWidth The number of "LNKCOMPLEX" in a line
 * @param radius The gaussian radius in image space
 * @ingroup Processing
 */
extern void MakeGaussianSpectrum( LNKCOMPLEX * const * const planes,
                                  u_short halfW, u_short height, u_short nPlanes,
                                  u_short lineWidth, double radius );
#endif