51 #ifndef ICL_NO_USING_NAMESPACES 76 const std::string &caption=
"open file",
77 const std::string &initialDirectory=
"_____last",
78 void *parentWidget=0) ;
83 const std::string &caption=
"save file",
84 const std::string &initialDirectory=
"_____last",
85 void *parentWidget=0) ;
92 const std::string &message=
"please write your text here",
93 const std::string &initialText=
"",
96 std::vector<std::string> completionOptions=std::vector<std::string>()) ;
104 #define ICL_QUICK_DEPTH depth32f 105 #define ICL_QUICK_TYPE icl32f 122 inline ImgQ zeros(
int width,
int height,
int channels=1){
123 return zeros<ICL_QUICK_TYPE>(width,height,channels);
136 inline ImgQ ones(
int width,
int height,
int channels=1){
return ones<ICL_QUICK_TYPE>(width,height,channels); }
146 inline ImgQ load(
const std::string &filename) {
return load<ICL_QUICK_TYPE>(filename); }
157 inline ImgQ load(
const std::string &filename,
core::format fmt) {
return load<ICL_QUICK_TYPE>(filename,fmt); }
184 bool releaseGrabber=
false);
187 inline ImgQ grab(
const std::string &dev,
const std::string &devSpec,
189 bool releaseGrabber=
false){
190 return grab<ICL_QUICK_TYPE>(dev,devSpec,size,fmt,releaseGrabber);
292 return icl::qt::filter<float>(image,
filter);
303 return icl::qt::blur<float>(image,maskRadius);
420 ICLQt_API void showSetup(
const string &showCommand =
"xv %s",
const string &rmCommand =
"rm -rf %s",
int msecBeforeDelete = 500);
624 ImgROI &operator=(
float val);
693 ICLQt_API void color(
float r,
float g = -1,
float b = -1,
float alpha = 255);
701 ICLQt_API void fill(
float r,
float g = -1,
float b = -1,
float alpha = 255);
745 triangle(image,a.x,a.y,b.x,b.y,c.x,c.y);
838 ICLQt_API void font(
int size,
const string &family =
"Arial");
ICLQt_API ImgQ sqrt(const ImgQ &image)
calls sqrt( each pixel)
ICLQt_API ImgQ binXOR(const ImgQ &a, const ImgQ &b)
pixels-wise binary or (each value is converted to T brefore binary or)
ICLQt_API ImgQ operator-(const ImgQ &image)
returns image*(-1)
bool operator||(const ProgArg &a, const ProgArg &b)
this allows to check if either of two progargs are defined
Definition: ProgArg.h:202
ICLQt_API void save(const core::ImgBase &image, const std::string &filename)
write an image to HD
ICLQt_API void polygon(ImgQ &image, const std::vector< utils::Point > &corners)
draws a polygon (constructed out of linestrips
void rect(ImgQ &image, const utils::Rect &r, int rounding=0)
draws a rect into an image
Definition: Quick.h:737
undocument this line if you encounter any issues!
Definition: Any.h:37
ICLQt_API ImgQ binAND(const ImgQ &a, const ImgQ &b)
pixels-wise binary or (each value is converted to T brefore binary or)
void line(ImgQ &image, const utils::Point &p1, const utils::Point &p2)
draws a line into an image
Definition: Quick.h:762
static const Size null
null is w=0, h=0
Definition: Size.h:64
ICLQt_API core::Img< T > norm(const core::Img< T > &image)
normalize an images range to [0,255]
Ipp8u icl8u
8Bit unsigned integer type for the ICL
Definition: BasicTypes.h:64
ICLQt_API std::string openFileDialog(const std::string &filter="", const std::string &caption="open file", const std::string &initialDirectory="_____last", void *parentWidget=0)
uses Qt to spawn an open-file dialog with given filter
ICLQt_API void fontsize(int size)
sets up current fontsize (only available with Qt-Support)
ICLQt_API ImgQ operator|(const ImgQ &a, const ImgQ &b)
channel concatenation of images
ICLQt_API ImgQ cc(const ImgQ &image, core::format fmt)
applies a color conversion
ICLQt_API core::Img< T > create(const std::string &name, core::format fmt=icl::core::formatRGB)
create a test image (converted to destination core::format) (affinity for floats)
Definition: AbstractCanvas.h:46
ICLQt_API ImgQ rgb(const ImgQ &image)
converts a given image to formatRGB
ICLQt_API ImgQ levels(const ImgQ &image, icl8u levels)
reduces an images quantisation levels
ICLQt_API ImgQ cvt(const core::ImgBase &image)
Converts a given core::ImgBase into an ImgQ.
Definition: DataSegmentBase.h:40
ICLQt_API ImgROI roi(ImgQ &r)
creates a ROI-struct from an image
ICLQt_API ImgQ operator,(const ImgQ &a, const ImgQ &b)
horizontal image concatenation
ICLQt_API ImgQ flipx(const ImgQ &image)
horizontal flip of an image
ICLQt_API ImgQ ln(const ImgQ &image)
calls ln( each pixel )
void text(ImgQ &image, const utils::Point &p, const string &sText)
renders a text into an image (only available with Qt-Support)
Definition: Quick.h:825
ICLQt_API core::Img< T > zeros(int width, int height, int channels=1)
create an empty (black) ImgQ (affinity for floats)
Definition: Quick.h:122
ICLQt_API void font(int size, const string &family="Arial")
sets up the current font (only available with Qt-Support)
ICLQt_API core::Img32s cvt32s(const ImgQ &image)
Converts the image into depth32s.
Definition: ColorFormatDecoder.h:40
ICLQt_API core::Img32f cvt32f(const ImgQ &image)
Converts the image into depth32f.
ICLQt_API ImgROI data(ImgQ &r)
creates full ROI ROI-struct
format
determines the color-format, that is associated with the images channels
Definition: Types.h:70
ICLQt_API core::Img< T > load(const std::string &filename, core::format fmt)
loads an image file and returns image in given core::format (affinity for floats)
ICLQt_API void linestrip(ImgQ &image, const std::vector< utils::Point > &pts, bool closeLoop=true)
draws a strip of connected lines
ICLQt_API ImgQ label(const ImgQ &image, const string &text)
labels an image in the upper left corner (only available with Qt-Support)
ICLQt_API ImgQ scale(const ImgQ &image, int width, int height)
scales an image to the given size
core::Img< ICL_QUICK_TYPE > ImgQ
typedef for the quick images type (this time core::Img<icl32f>)
Definition: Quick.h:109
Definition: DynMatrix.h:53
ICLQt_API core::Img< T > copy(const core::Img< T > &image)
deep copy for an image
ICLQt_API void toc()
stops a timer started with tic()
ICLQt_API ImgQ hls(const ImgQ &image)
converts a given image to formatHLS
ICLQt_API void fill(float r, float g=-1, float b=-1, float alpha=255)
sets the current fill color to given r,g,b,alpha value
void cross(ImgQ &image, const utils::Point &p)
draws a 6x6-cross into an image
Definition: Quick.h:720
ICLQt_API ImgQ operator+(float val, const ImgQ &image)
adds a constant to each pixel value
ICLQt_API ImgQ abs(const ImgQ &image)
calls abs ( each pixel)
ImgQ image
image data
Definition: Quick.h:616
Size class of the ICL.
Definition: Size.h:61
ICLQt_API void colorinfo(float color[4], float fill[4])
returns the current color state
ICLQt_API core::Img16s cvt16s(const ImgQ &image)
Converts the image into depth16.
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)
ICLQt_API void showSetup(const string &showCommand="xv %s", const string &rmCommand="rm -rf %s", int msecBeforeDelete=500)
setup image visualisation programm
static T sqr(const T &x)
square template (faster than pow(x,2)
Definition: Macros.h:212
ICLQt_API ImgQ thresh(const ImgQ &image, float threshold)
performs an image binarisation for each channel with given threshold
ICLQt_API void tic(const std::string &label="")
starts a timer
ICLQt_API ImgQ gray(const ImgQ &image)
converts a given image to formatGray
ICLQt_API ImgQ binOR(const ImgQ &a, const ImgQ &b)
pixels-wise binary or (each value is converted to T brefore binary or)
ICLQt_API core::Img8u cvt8u(const ImgQ &image)
Converts the image into depth8u.
ICLQt_API core::Img< T > ones(int width, int height, int channels=1)
create an ImgQ that is pre-initialized with ones (affinity for floats)
ICLQt_API core::Img< T > copyroi(const core::Img< T > &image)
deep copy of an images roi
ICLQt_API ImgQ lab(const ImgQ &image)
converts a given image to formatLAB
#define ICLQt_API
Definition: CompatMacros.h:178
void triangle(ImgQ &image, const utils::Point &a, const utils::Point &b, const utils::Point &c)
draws a triangle into an image
Definition: Quick.h:744
Point class of the ICL used e.g. for the Images ROI offset.
Definition: Point.h:58
ICLQt_API void color(float r, float g=-1, float b=-1, float alpha=255)
sets the current color to given r,g,b,alpha value
Definition: AbstractPlotWidget.h:48
ICLQt_API core::Img< T > grab(const std::string &dev, const std::string &devSpec, const utils::Size &size=utils::Size::null, core::format fmt=core::formatRGB, bool releaseGrabber=false)
grabs a new image from given device (affinity for floats)
ICLQt_API void circle(ImgQ &image, int x, int y, int r)
renders a filled circle into an image
ICLQt_API ImgQ flipy(const ImgQ &image)
vertical flip of an image
ICLQt_API core::Img64f cvt64f(const ImgQ &image)
Converts the image into depth64f.
bool operator &&(const ProgArg &a, const ProgArg &b)
this allows to check if two progargs are defined
Definition: ProgArg.h:170
Definition: AffineOp.h:38
ICLQt_API ImgQ operator/(float val, const ImgQ &image)
divides a constant by each pixel value
ICLQt_API std::string execute_process(const std::string &command)
executes the given command as a child process and returns it output
ICLQt_API ImgQ operator *(float val, const ImgQ &image)
multiplies each pixel value with a constant
internal stuct, used for deep image copies
Definition: Quick.h:614
Rectangle class of the ICL used e.g. for the Images ROI-rect.
Definition: Rect.h:95
ICLQt_API ImgQ channel(const ImgQ &image, int channel)
picks a specific image channel
ICLQt_API ImgQ operator%(const ImgQ &a, const ImgQ &b)
vertical image combination (as ,-operator)
std::string textInputDialog(const std::string &caption="text ...", const std::string &message="please write your text here", const std::string &initialText="", void *parentWidget=0, core::ImgBase *visImage=0, std::vector< std::string > completionOptions=std::vector< std::string >())
uses Qt to spawn a text input dialog
void print(const core::Img< T > &image)
print the images parameters to std::out
ImgBase is the Image-Interface class that provides save access to underlying Img-template .
Definition: ImgBase.h:131
ICLQt_API void show(const icl::core::ImgBase &image)
shows an image using TestImages::show
ICLQt_API core::Img< T > blur(const core::Img< T > &image, int maskRadius=1)
applies gaussian blur to a given image (using a maskRadius*2+1-sized gaussian filter)
ICLQt_API std::string saveFileDialog(const std::string &filter="", const std::string &caption="save file", const std::string &initialDirectory="_____last", void *parentWidget=0)
uses Qt to spawn a save-file dialog with given filter
ICLQt_API void pix(ImgQ &image, const vector< vector< utils::Point > > &pts)
draws a set of point sets into an image
ICLQt_API ImgQ exp(const ImgQ &image)
calls exp( each pixel )