-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #101 from brendanburkhart/feature/prm-image-types
Image/camera data types
- Loading branch information
Showing
8 changed files
with
203 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
// -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- | ||
// ex: set filetype=cpp softtabstop=4 shiftwidth=4 tabstop=4 cindent expandtab: | ||
|
||
inline-header { | ||
#include <cisstVector/vctDynamicVectorTypes.h> | ||
#include <cisstVector/vctDynamicNArray.h> | ||
#include <cisstMultiTask/mtsGenericObject.h> | ||
// Always include last | ||
#include <cisstParameterTypes/prmExport.h> | ||
} | ||
|
||
class { | ||
name prmCameraInfo; | ||
|
||
attribute CISST_EXPORT; | ||
|
||
base-class { | ||
type mtsGenericObject; | ||
is-data true; | ||
} | ||
|
||
member { | ||
name Width; | ||
type size_t; | ||
default 0; | ||
} | ||
|
||
member { | ||
name Height; | ||
type size_t; | ||
default 0; | ||
} | ||
|
||
member { | ||
name DistortionParameters; | ||
type vctDoubleVec; | ||
} | ||
|
||
member { | ||
name Intrinsic; | ||
type vct3x3; | ||
} | ||
|
||
member { | ||
name Rectification; | ||
type vctRot3; | ||
} | ||
|
||
member { | ||
name Projection; | ||
type vct3x4; | ||
} | ||
|
||
inline-header { | ||
public: | ||
|
||
private: | ||
CMN_DECLARE_SERVICES(CMN_DYNAMIC_CREATION, CMN_LOG_ALLOW_DEFAULT); | ||
} | ||
} | ||
|
||
|
||
inline-header { | ||
CMN_DECLARE_SERVICES_INSTANTIATION(prmCameraInfo); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
// -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- | ||
// ex: set filetype=cpp softtabstop=4 shiftwidth=4 tabstop=4 cindent expandtab: | ||
|
||
inline-header { | ||
#include <cisstVector/vctDynamicVectorTypes.h> | ||
#include <cisstVector/vctDynamicNArray.h> | ||
#include <cisstMultiTask/mtsGenericObject.h> | ||
// Always include last | ||
#include <cisstParameterTypes/prmExport.h> | ||
} | ||
|
||
class { | ||
name prmDepthMap; | ||
|
||
attribute CISST_EXPORT; | ||
|
||
base-class { | ||
type mtsGenericObject; | ||
is-data true; | ||
} | ||
|
||
member { | ||
name Width; | ||
type size_t; | ||
default 0; | ||
} | ||
|
||
member { | ||
name Height; | ||
type size_t; | ||
default 0; | ||
} | ||
|
||
member { | ||
name Points; | ||
type vctDynamicVector<float>; | ||
} | ||
|
||
member { | ||
name Color; | ||
type vctDynamicVector<char>; | ||
} | ||
|
||
member { | ||
name ReferenceFrame; | ||
type std::string; | ||
} | ||
|
||
inline-header { | ||
public: | ||
|
||
private: | ||
CMN_DECLARE_SERVICES(CMN_DYNAMIC_CREATION, CMN_LOG_ALLOW_DEFAULT); | ||
} | ||
} | ||
|
||
|
||
inline-header { | ||
CMN_DECLARE_SERVICES_INSTANTIATION(prmDepthMap); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
// -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- | ||
// ex: set filetype=cpp softtabstop=4 shiftwidth=4 tabstop=4 cindent expandtab: | ||
|
||
inline-header { | ||
#include <cisstVector/vctDynamicVectorTypes.h> | ||
#include <cisstVector/vctDynamicNArray.h> | ||
#include <cisstMultiTask/mtsGenericObject.h> | ||
// Always include last | ||
#include <cisstParameterTypes/prmExport.h> | ||
} | ||
|
||
class { | ||
name prmImageFrame; | ||
|
||
attribute CISST_EXPORT; | ||
|
||
base-class { | ||
type mtsGenericObject; | ||
is-data true; | ||
} | ||
|
||
member { | ||
name Width; | ||
type size_t; | ||
default 0; | ||
} | ||
|
||
member { | ||
name Height; | ||
type size_t; | ||
default 0; | ||
} | ||
|
||
member { | ||
name Channels; | ||
type size_t; | ||
default 3; | ||
} | ||
|
||
member { | ||
name Data; | ||
type vctDynamicVector<char>; | ||
} | ||
|
||
inline-header { | ||
public: | ||
|
||
private: | ||
CMN_DECLARE_SERVICES(CMN_DYNAMIC_CREATION, CMN_LOG_ALLOW_DEFAULT); | ||
} | ||
} | ||
|
||
|
||
inline-header { | ||
CMN_DECLARE_SERVICES_INSTANTIATION(prmImageFrame); | ||
} |