IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
ImageStripSplitUtils.h
Go to the documentation of this file.
1 // ImageStripSplitUtils.h:
3 // -----------------------
4 //
14 
15 #ifndef __IPSDKIMAGEPROCESSING_IMAGESTRIPSPLITUTILS_H__
16 #define __IPSDKIMAGEPROCESSING_IMAGESTRIPSPLITUTILS_H__
17 
20 #include <IPSDKUtil/Tools/ProcessingResult.h>
21 #include <boost/utility/enable_if.hpp>
22 
23 namespace ipsdk {
24 namespace imaproc {
25 
28 
31 template <typename OutputDataType>
32 inline typename boost::enable_if_c<OutputDataType::g_bInput, BoolResult>::type
33 readStripFromImage(const OutputDataType& strip) {
34 
35  return strip.readFromImage();
36 }
37 template <typename OutputDataType>
38 inline typename boost::disable_if_c<OutputDataType::g_bInput, BoolResult>::type
39 readStripFromImage(const OutputDataType& strip) {
40 
41  return true;
42 }
44 
47 
48 } // end of namespace imaproc
49 } // end of namespace ipsdk
50 
51 #endif // __IPSDKIMAGEPROCESSING_IMAGESTRIPSPLITUTILS_H__
Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
Predefined types for image strips management.
Utility functions for image fragment split management.
boost::enable_if_c< OutputDataType::g_bInput, BoolResult >::type readStripFromImage(const OutputDataType &strip)
method allowing to read strip data from image for input strips types
Definition: ImageStripSplitUtils.h:33