Image Component Library (ICL)
|
Utility class for creating test images. More...
#include <TestImages.h>
Static Public Member Functions | |
static core::ImgBase * | create (const std::string &name, const utils::Size &size, core::format f=core::formatRGB, core::depth d=core::depth8u) |
creates a new testimage instance More... | |
static core::ImgBase * | create (const std::string &name, core::format f=core::formatRGB, core::depth d=core::depth8u) |
creats testimages in original size More... | |
static void | xv (const core::ImgBase *image, const std::string &tmpName="./tmp_image.ppm", long msec_to_rm_call=1000) |
writes the image to the disc an shows it using xv. More... | |
static void | show (const core::ImgBase *image, const std::string &showCommand="icl-xv -input %s -delete", long msec_to_rm_call=0, const std::string &rmCommand="") |
writes the image to the hard disk and show it using the given shell command More... | |
Static Private Member Functions | |
static core::Img8u * | internalCreate (const std::string &name) |
internal creation funtion for image More... | |
Utility class for creating test images.
|
static |
creates a new testimage instance
possible values for name are
name | name identifier of the image |
size | destination size of the image |
f | core::format of the image |
d | core::depth of the image |
|
static |
creats testimages in original size
name | name identifier of the image |
f | core::format of the image |
d | core::depth of the image |
|
staticprivate |
internal creation funtion for image
|
static |
writes the image to the hard disk and show it using the given shell command
image | image to show |
showCommand | command to visualize the image. As default, the iclxv viewer of the ICLQt package is used. Enshure, that at least a link to this viewer is available in your path variable. A temporarily created filename (composed of a prefix, a current-system-time-body and a file name postfix is inserted where the s token is found |
msec_to_rm_call | when showing images using other image viewers, the temporarily created image must be deleted when the extern editor has read the image. This value determines how many milliseconds should be waited before the rmCommand is called. |
rmCommand | command to remove the temporary image (something like "rm -rf %s" |
|
static |
writes the image to the disc an shows it using xv.
image | image to write and to show |
tmpName | temporary filename for this image |
msec_to_rm_call | this time in msec is waited for xv to come up and to read the tmp image |