greycstoration.h File Reference

Go to the source code of this file.

Classes

struct  _greycstoration_params

Functions

bool greycstoration_is_running () const
 Test if GREYCstoration threads are still running.
CImg & greycstoration_stop ()
 Force the GREYCstoration threads to stop.
float greycstoration_progress () const
 Return the GREYCstoration progress bar indice (between 0 and 100).
CImg & greycstoration_run (const CImg< unsigned char > &mask, const float amplitude=60, const float sharpness=0.7f, const float anisotropy=0.3f, const float alpha=0.6f, const float sigma=1.1f, const float gfact=1.0f, const float dl=0.8f, const float da=30.0f, const float gauss_prec=2.0f, const unsigned int interpolation=0, const bool fast_approx=true, const unsigned int tile=0, const unsigned int tile_border=0, const unsigned int nb_threads=1)
 Run the non-patch version of the GREYCstoration algorithm on the instance image, using a mask.
CImg & greycstoration_run (const float amplitude=50, const float sharpness=0.7f, const float anisotropy=0.3f, const float alpha=0.6f, const float sigma=1.1f, const float gfact=1.0f, const float dl=0.8f, const float da=30.0f, const float gauss_prec=2.0f, const unsigned int interpolation=0, const bool fast_approx=true, const unsigned int tile=0, const unsigned int tile_border=0, const unsigned int nb_threads=1)
 Run the non-patch version of the GREYCstoration algorithm on the instance image.
CImg & greycstoration_patch_run (const unsigned int patch_size=5, const float sigma_p=10, const float sigma_s=100, const unsigned int lookup_size=20, const bool fast_approx=true, const unsigned int tile=0, const unsigned int tile_border=0, const unsigned int nb_threads=1)
 Run the patch-based version of the GREYCstoration algorithm on the instance image.
static void greycstoration_mutex_create (_greycstoration_params &p)
static void greycstoration_mutex_lock (_greycstoration_params &p)
static void greycstoration_mutex_unlock (_greycstoration_params &p)
static void greycstoration_mutex_destroy (_greycstoration_params &p)
 greycstoration_mutex_lock (p)
 if (!p.tile)
 if (threed)
 if (p.nb_threads)

Variables

_greycstoration_params greycstoration_params [16]
_greycstoration_paramsp = *(_greycstoration_params*)arg
const CImg< unsigned char > & mask = *(p.mask)
CImg< T > & source = *(p.source)
else CImg< T > & temporary = *(p.temporary)
const bool threed = (source.depth>1)
const unsigned int b = p.tile_border
unsigned int ctile = 0
p is_running = false
 return

Function Documentation

bool greycstoration_is_running (  )  const

Test if GREYCstoration threads are still running.

Definition at line 120 of file greycstoration.h.

References _greycstoration_params::is_running.

Referenced by greycstoration_patch_run(), greycstoration_progress(), greycstoration_run(), and greycstoration_stop().

static void greycstoration_mutex_create ( _greycstoration_params p  )  [static]
static void greycstoration_mutex_destroy ( _greycstoration_params p  )  [static]

Definition at line 355 of file greycstoration.h.

References _greycstoration_params::mutex, and _greycstoration_params::nb_threads.

Referenced by if().

greycstoration_mutex_lock ( p   ) 
static void greycstoration_mutex_lock ( _greycstoration_params p  )  [static]

Definition at line 335 of file greycstoration.h.

References _greycstoration_params::mutex, and _greycstoration_params::nb_threads.

Referenced by if().

static void greycstoration_mutex_unlock ( _greycstoration_params p  )  [static]

Definition at line 345 of file greycstoration.h.

References _greycstoration_params::mutex, and _greycstoration_params::nb_threads.

Referenced by if().

CImg& greycstoration_patch_run ( const unsigned int  patch_size = 5,
const float  sigma_p = 10,
const float  sigma_s = 100,
const unsigned int  lookup_size = 20,
const bool  fast_approx = true,
const unsigned int  tile = 0,
const unsigned int  tile_border = 0,
const unsigned int  nb_threads = 1 
)
float greycstoration_progress (  )  const
CImg& greycstoration_run ( const float  amplitude = 50,
const float  sharpness = 0.7f,
const float  anisotropy = 0.3f,
const float  alpha = 0.6f,
const float  sigma = 1.1f,
const float  gfact = 1.0f,
const float  dl = 0.8f,
const float  da = 30.0f,
const float  gauss_prec = 2.0f,
const unsigned int  interpolation = 0,
const bool  fast_approx = true,
const unsigned int  tile = 0,
const unsigned int  tile_border = 0,
const unsigned int  nb_threads = 1 
)

Run the non-patch version of the GREYCstoration algorithm on the instance image.

Definition at line 237 of file greycstoration.h.

References greycstoration_run().

CImg& greycstoration_run ( const CImg< unsigned char > &  mask,
const float  amplitude = 60,
const float  sharpness = 0.7f,
const float  anisotropy = 0.3f,
const float  alpha = 0.6f,
const float  sigma = 1.1f,
const float  gfact = 1.0f,
const float  dl = 0.8f,
const float  da = 30.0f,
const float  gauss_prec = 2.0f,
const unsigned int  interpolation = 0,
const bool  fast_approx = true,
const unsigned int  tile = 0,
const unsigned int  tile_border = 0,
const unsigned int  nb_threads = 1 
)
CImg& greycstoration_stop (  ) 

Force the GREYCstoration threads to stop.

Definition at line 125 of file greycstoration.h.

References greycstoration_is_running(), _greycstoration_params::is_running, _greycstoration_params::stop_request, and cimg_library::cimg::wait().

if ( p.  nb_threads  ) 

Definition at line 462 of file greycstoration.h.

if ( threed   ) 
if ( !p.  tile  ) 

Variable Documentation

const unsigned int b = p.tile_border
unsigned int ctile = 0

Definition at line 391 of file greycstoration.h.

Definition at line 111 of file greycstoration.h.

p is_running = false

Definition at line 460 of file greycstoration.h.

const CImg<unsigned char>& mask = *(p.mask)

Definition at line 371 of file greycstoration.h.

Referenced by cimg_library::CImg< T >::_draw_polygon(), cimg_library::CImg< T >::_draw_spline(), lux::Voxel::AddPrimitive(), cimg_library::CImg< T >::blur_patch(), lux::BruteForceAccel::BruteForceAccel(), lux::BVHAccel::BuildArray(), lux::BVHAccel::BVHAccel(), lux::IrregularSPD::calc_spline_data(), lux::ClosePhoton< PhotonType >::ClosePhoton(), lux::AreaLight::CreateAreaLight(), lux::Quad::CreateShape(), cimg_library::CImg< T >::draw_line(), cimg_library::CImg< T >::draw_mandelbrot(), cimg_library::CImg< T >::draw_point(), cimg_library::CImg< T >::draw_polygon(), cimg_library::CImg< T >::draw_spline(), cimg_library::CImg< T >::draw_text(), lux::EClosePhoton::EClosePhoton(), lux::BidirIntegrator::evalPath(), generateEyePath(), generateLightPath(), lux::BidirIntegrator::generatePath(), cimg_library::CImg< T >::get_permute(), getEnvironmentLight(), lux::GridAccel::GridAccel(), cimg_library::CImg< T >::HSLtoRGB(), lux::Voxel::Intersect(), lux::Voxel::IntersectP(), lux::MeshQuadrilateral::IsPlanar(), lux::LightPhotonMap::LDiffusePhoton(), lux::WhittedIntegrator::Li(), lux::SingleScattering::Li(), lux::PhotonIntegrator::Li(), lux::PathIntegrator::Li(), lux::MLTPathIntegrator::Li(), lux::IrradianceCache::Li(), lux::IGIIntegrator::Li(), lux::ExPhotonIntegrator::Li(), lux::EmissionIntegrator::Li(), lux::BidirIntegrator::Li(), lux::ExPhotonIntegrator::LiDirectLightingMode(), lux::DistributedPath::LiInternal(), lux::DirectLightingIntegrator::LiInternal(), lux::ExPhotonIntegrator::LiPathMode(), lux::LightPhotonMap::LPhoton(), lux::RadiancePhotonMap::LPhoton(), lux::ExPhotonIntegrator::LPhoton(), lux::LightPhotonMap::LPhotonDiffuseApprox(), main(), lux::LuxGLViewer::OnMouse(), lux::ExPhotonIntegrator::Preprocess(), lux::PrimitiveSet::PrimitiveSet(), lux::LuxGuiApp::ProcessCommandLine(), quartic(), lux::KdTree< NodeData, LookupProc >::recursiveBuild(), lux::Torus::Sample(), lux::Sphere::Sample(), lux::Quadrilateral::Sample(), lux::Disk::Sample(), lux::Cylinder::Sample(), lux::Cone::Sample(), lux::SphericalPhi(), cimg_library::CImg< T >::SVD(), cimg_library::CImg< T >::symmetric_eigen(), lux::TaBRecKdTreeAccel::TaBRecKdTreeAccel(), lux::UnsafeKdTreeAccel::UnsafeKdTreeAccel(), lux::VertexCB(), weightPath(), and lux::FlexImageFilm::WriteImage().

Definition at line 470 of file greycstoration.h.

CImg<T>& source = *(p.source)

Definition at line 374 of file greycstoration.h.

else CImg<T>& temporary = *(p.temporary)

Definition at line 388 of file greycstoration.h.

Referenced by greycstoration_patch_run(), and greycstoration_run().

const bool threed = (source.depth>1)
Generated by  doxygen 1.6.2-20100208