32 if (e->imageFloat->size().area() > 0)
38 vigra::RGBToGrayAccessor<vigra::RGBValue<float> > ga;
39 vigra::FindMinMax<float> minmax;
40 vigra::inspectImage(
srcImageRange(*(e->imageFloat), ga), minmax);
42 vigra::BRGBImage mappedImg(e->imageFloat->size());
45 wxImage mappedwxImg(mappedImg.width(), mappedImg.height(), (
unsigned char *)mappedImg.data(),
true);
46 return mappedwxImg.Copy();
53 return wxImage(img->width(), img->height(), (
unsigned char *)img->data(),
true);
HuginBase::ImageCache::ImageCacheRGB8Ptr ImageCacheRGB8Ptr
void applyMapping(vigra::triple< SrcIterator, SrcIterator, SrcAccessor > img, vigra::pair< DestIterator, DestAccessor > dest, T min, T max, int mapping)
functions to manage ROI's
wxImage imageCacheEntry2wxImage(ImageCache::EntryPtr e)
vigra::pair< typename ROIImage< Image, Alpha >::image_traverser, typename ROIImage< Image, Alpha >::ImageAccessor > destImage(ROIImage< Image, Alpha > &img)
vigra::triple< typename ROIImage< Image, Mask >::image_const_traverser, typename ROIImage< Image, Mask >::image_const_traverser, typename ROIImage< Image, Mask >::ImageConstAccessor > srcImageRange(const ROIImage< Image, Mask > &img)
helper function for ROIImages
#define HUGIN_IMGCACHE_MAPPING_FLOAT