45 class ConfigurableRemoteServer;
77 const std::string ¶ms,
78 bool notifyErrors =
true) {
79 init(devicePriorityList,params,notifyErrors);
171 void init(
const std::string &devicePriorityList,
172 const std::string ¶ms,
173 bool notifyErrors =
true) ;
179 static void resetBus(
const std::string &deviceList=
"dc",
bool verbose=
false);
184 return m_poDesc.
type;
202 return m_poGrabber->
grab(dst);
206 bool isNull()
const {
return m_poGrabber == 0; }
209 operator bool()
const {
return !isNull(); }
385 static const std::vector<GrabberDeviceDescription> &getDeviceList(
const std::string &
filter,
bool rescan=
true);
void setDesiredDepthInternal(core::depth d)
internally set a desired format
Definition: GenericGrabber.h:227
void disableUndistortion()
disables distortion
Definition: GenericGrabber.h:357
GrabberDeviceDescription m_poDesc
description of current Grabber
Definition: GenericGrabber.h:59
The General Function Template.
Definition: Function.h:284
void useDesired(const T &t)
sets desired parameters (only available for core::depth,utils::Size and core::format)
Definition: Grabber.h:204
Definition: ConfigurableRemoteServer.h:39
undocument this line if you encounter any issues!
Definition: Any.h:37
Class interface for un-copyable classes.
Definition: Uncopyable.h:64
static const Size null
null is w=0, h=0
Definition: Size.h:64
Grabber * m_poGrabber
internally wrapped grabber instance
Definition: GenericGrabber.h:57
bool isNull() const
returns wheter an underlying grabber could be created
Definition: GenericGrabber.h:206
void useDesired(core::depth d, const utils::Size &size, core::format fmt)
sets up the grabber to use all given desired parameters
Definition: GenericGrabber.h:286
void removeAllCallbacks()
passes registered callback to the internal pointer
Definition: GenericGrabber.h:262
GenericGrabber(const utils::ProgArg &pa)
Initialized the grabber from given prog-arg.
Definition: GenericGrabber.h:70
virtual void setDesiredFormatInternal(core::format fmt)
internally set a desired format
T getDesired() const
returns the desired value for the given type T
Definition: GenericGrabber.h:311
core::depth getDesiredDepthInternal() const
returns the desired format
Definition: GenericGrabber.h:241
std::string type
type of the device (e.g. dc, pwc, sr or dc800)
Definition: GrabberDeviceDescription.h:50
virtual core::format getDesiredFormatInternal() const
returns the desired format
void setUndistortionInterpolationMode(core::scalemode mode)
sets how undistortion is interpolated (supported modes are interpolateNN and interpolateLIN)
Definition: GenericGrabber.h:350
std::string getType() const
return the actual grabber type
Definition: GenericGrabber.h:182
virtual utils::Size getDesiredSizeInternal() const
returns the desired format
bool desiredUsed() const
returns whether the desired parameter for the given type is used
Definition: GenericGrabber.h:271
Grabber * getGrabber() const
returns the wrapped grabber itself
Definition: GenericGrabber.h:188
defines and explains an available grabber device
Definition: GrabberDeviceDescription.h:41
const core::ImgBase * grab(core::ImgBase **dst=0)
grab function calls the Grabber-specific acquireImage-method and applies distortion if necessary
format
determines the color-format, that is associated with the images channels
Definition: Types.h:70
virtual void setDesiredSizeInternal(const utils::Size &size)
internally set a desired format
void init(const GrabberDeviceDescription &dev)
initializes the grabber from given FoundDevice instance
Definition: GenericGrabber.h:389
bool desiredUsed() const
returns whether the desired parameter for the given type is used
Definition: Grabber.h:200
T getDesired() const
returns the desired value for the given type T
Definition: Grabber.h:222
#define ICLASSERT_RETURN_VAL(X, VALUE)
Definition: Macros.h:148
void enableUndistortion(const utils::ProgArg &pa)
enables undistortion from given programm argument.
Definition: GenericGrabber.h:333
This class provides the getter and setter methods of an internally set Configurable.
Definition: ConfigurableProxy.h:40
const ProgArg pa(const std::string &id, unsigned int subargidx=0)
returns given program argument
Definition: ProgArg.h:304
void enableUndistortion(const ImageUndistortion &udist)
enables the undistortion plugin for the grabber using radial and tangential distortion parameters
Definition: GenericGrabber.h:325
#define ICLIO_API
Definition: CompatMacros.h:176
void enableUndistortion(const core::Img32f &warpMap)
enables undistortion for given warp map
Definition: GenericGrabber.h:340
void setUndistortionInterpolationMode(core::scalemode mode)
sets how undistortion is interpolated (supported modes are interpolateNN and interpolateLIN)
virtual void removeAllCallbacks()
removes all registered image callbacks
Size class of the ICL.
Definition: Size.h:61
Common interface class for all grabbers.
Definition: Grabber.h:153
void disableUndistortion()
disables distortion
std::string id
ID of the device (e.g. 0 or 1)
Definition: GrabberDeviceDescription.h:53
ICLQt_API core::Img< T > filter(const core::Img< T > &image, const std::string &filter)
applies a filter operation on the source image (affinity for float)
Programm argument utility class.
Definition: ProgArg.h:80
core::format getDesiredFormatInternal() const
returns the desired format
Definition: GenericGrabber.h:234
void enableUndistortion(const std::string &filename)
enables the undistorion
Definition: GenericGrabber.h:318
void registerCallback(Configurable::Callback cb)
Definition: ConfigurableProxy.h:96
void ignoreDesired()
sets up the grabber to ignore all desired parameters
Definition: GenericGrabber.h:302
GenericGrabber(const std::string &devicePriorityList, const std::string ¶ms, bool notifyErrors=true)
Create a generic grabber instance with given device priority list.
Definition: GenericGrabber.h:76
virtual core::depth getDesiredDepthInternal() const
returns the desired format
const core::Img32f * getUndistortionWarpMap() const
returns the internal warp map or NULL if undistortion is not enabled
Definition: GenericGrabber.h:371
scalemode
for scaling of Img images theses functions are provided
Definition: Types.h:84
depth
determines the pixel type of an image (8Bit-int or 32Bit-float)
Definition: Types.h:60
void ignoreDesired()
set the grabber to ignore the desired param of type T
Definition: Grabber.h:212
void setDesiredSizeInternal(const utils::Size &size)
internally set a desired format
Definition: GenericGrabber.h:220
const core::Img32f * getUndistortionWarpMap() const
returns the internal warp map or NULL if undistortion is not enabled
ConfigurableRemoteServer * m_remoteServer
<< internal protection for re-initialization
Definition: GenericGrabber.h:63
const core::ImgBase * grab(core::ImgBase **dst=0)
grab function calls the Grabber-specific acquireImage-method and applies distortion if necessary
Definition: GenericGrabber.h:198
bool isUndistortionEnabled() const
returns whether distortion is currently enabled
utils::Size getDesiredSizeInternal() const
returns the desired format
Definition: GenericGrabber.h:248
void registerCallback(Grabber::callback cb)
passes registered callback to the internal pointer
Definition: GenericGrabber.h:255
virtual void registerCallback(callback cb)
registers a callback that is called each time, a new image is available
void enableUndistortion(const std::string &filename)
enables the undistorion
utils::Mutex m_mutex
Definition: GenericGrabber.h:61
Common interface class for all grabbers.
Definition: GenericGrabber.h:55
#define ICLASSERT_RETURN(X)
Definition: Macros.h:141
GenericGrabber()
Empty default constructor, which creates a null-instance.
Definition: GenericGrabber.h:85
bool isUndistortionEnabled() const
returns whether distortion is currently enabled
Definition: GenericGrabber.h:364
virtual void setDesiredDepthInternal(core::depth d)
internally set a desired format
Definition: ImageUndistortion.h:39
Mutex class of the ICL.
Definition: Mutex.h:54
ImgBase is the Image-Interface class that provides save access to underlying Img-template .
Definition: ImgBase.h:131
Locks a mutex on the stack (mutex is unlocked when the stack's section is released.
Definition: Mutex.h:120
void setDesiredFormatInternal(core::format fmt)
internally set a desired format
Definition: GenericGrabber.h:213
void ignoreDesired()
set the grabber to ignore the desired param of type T
Definition: GenericGrabber.h:295
void useDesired(const T &t)
sets desired parameters (only available for core::depth,utils::Size and core::format)
Definition: GenericGrabber.h:279