-
Notifications
You must be signed in to change notification settings - Fork 0
/
PhotometricSuperflatInstance.h
100 lines (82 loc) · 4.56 KB
/
PhotometricSuperflatInstance.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
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
// ****************************************************************************
// PixInsight Class Library - PCL 02.00.09.0651
// Standard PhotometricSuperflat Process Module Version 01.00.02.0116
// ****************************************************************************
// PhotometricSuperflatInstance.h - Released 2013/12/13 00:03:11 UTC
// ****************************************************************************
// This file is part of the standard PhotometricSuperflat PixInsight module.
//
// Copyright (c) 2003-2013, Pleiades Astrophoto S.L. All Rights Reserved.
//
// Redistribution and use in both source and binary forms, with or without
// modification, is permitted provided that the following conditions are met:
//
// 1. All redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
//
// 2. All redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
//
// 3. Neither the names "PixInsight" and "Pleiades Astrophoto", nor the names
// of their contributors, may be used to endorse or promote products derived
// from this software without specific prior written permission. For written
// permission, please contact [email protected].
//
// 4. All products derived from this software, in any form whatsoever, must
// reproduce the following acknowledgment in the end-user documentation
// and/or other materials provided with the product:
//
// "This product is based on software from the PixInsight project, developed
// by Pleiades Astrophoto and its contributors (http://pixinsight.com/)."
//
// Alternatively, if that is where third-party acknowledgments normally
// appear, this acknowledgment must be reproduced in the product itself.
//
// THIS SOFTWARE IS PROVIDED BY PLEIADES ASTROPHOTO AND ITS CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
// TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
// PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL PLEIADES ASTROPHOTO OR ITS
// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
// EXEMPLARY OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, BUSINESS
// INTERRUPTION; PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; AND LOSS OF USE,
// DATA OR PROFITS) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE.
// ****************************************************************************
#ifndef __PhotometricSuperflatInstance_h
#define __PhotometricSuperflatInstance_h
#include <pcl/MetaParameter.h> // for pcl_bool, pcl_enum
#include <pcl/ProcessImplementation.h>
namespace pcl
{
// ----------------------------------------------------------------------------
class PhotometricSuperflatInstance : public ProcessImplementation
{
public:
PhotometricSuperflatInstance( const MetaProcess* );
PhotometricSuperflatInstance( const PhotometricSuperflatInstance& );
virtual void Assign( const ProcessImplementation& );
virtual bool CanExecuteOn( const View&, pcl::String& whyNot ) const;
virtual bool ExecuteOn( View& );
virtual void* LockParameter( const MetaParameter*, size_type tableRow );
virtual bool AllocateParameter( size_type sizeOrLength, const MetaParameter* p, size_type tableRow );
virtual size_type ParameterLength( const MetaParameter* p, size_type tableRow ) const;
private:
// Careful - use int32, pcl_bool, pcl_enum and not int, bool, enum
String starDatabasePath; // path to the star database file
int32 fitDegree; // degree of the fit (0=constant, 1=plane, 2=quartic, etc.)
int bitsPerSample;
bool floatSample;
int sensorWidth;
int sensorHeight;
friend class PhotometricSuperflatEngine;
friend class PhotometricSuperflatProcess;
friend class PhotometricSuperflatInterface;
};
// ----------------------------------------------------------------------------
} // pcl
#endif // __PhotometricSuperflatInstance_h
// ****************************************************************************
// EOF PhotometricSuperflatInstance.h - Released 2013/12/13 00:03:11 UTC