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_params & | p = *(_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 |
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] |
Definition at line 324 of file greycstoration.h.
References _greycstoration_params::mutex, and _greycstoration_params::nb_threads.
Referenced by greycstoration_patch_run(), and greycstoration_run().
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 | |||
) |
Run the patch-based version of the GREYCstoration algorithm on the instance image.
Definition at line 248 of file greycstoration.h.
References cimg_OS, _greycstoration_params::counter, _greycstoration_params::fast_approx, greycstoration_is_running(), greycstoration_mutex_create(), _greycstoration_params::is_running, _greycstoration_params::lookup_size, _greycstoration_params::mask, cimg_library::cimg::min(), _greycstoration_params::mutex, _greycstoration_params::nb_threads, _greycstoration_params::patch_based, _greycstoration_params::patch_size, _greycstoration_params::sigma_p, _greycstoration_params::sigma_s, _greycstoration_params::source, _greycstoration_params::stop_request, _greycstoration_params::temporary, temporary, _greycstoration_params::thread, _greycstoration_params::tile, _greycstoration_params::tile_border, and cimg_library::cimg::warn().
float greycstoration_progress | ( | ) | const |
Return the GREYCstoration progress bar indice (between 0 and 100).
Definition at line 134 of file greycstoration.h.
References b, _greycstoration_params::counter, _greycstoration_params::da, greycstoration_is_running(), cimg_library::cimg::min(), _greycstoration_params::patch_based, _greycstoration_params::tile, and _greycstoration_params::tile_border.
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 | |||
) |
Run the non-patch version of the GREYCstoration algorithm on the instance image, using a mask.
Definition at line 153 of file greycstoration.h.
References _greycstoration_params::alpha, _greycstoration_params::amplitude, _greycstoration_params::anisotropy, cimg_OS, _greycstoration_params::counter, _greycstoration_params::da, _greycstoration_params::dl, _greycstoration_params::fast_approx, _greycstoration_params::gauss_prec, _greycstoration_params::gfact, greycstoration_is_running(), greycstoration_mutex_create(), _greycstoration_params::interpolation, _greycstoration_params::is_running, _greycstoration_params::mask, cimg_library::cimg::min(), _greycstoration_params::mutex, _greycstoration_params::nb_threads, _greycstoration_params::patch_based, _greycstoration_params::sharpness, _greycstoration_params::sigma, _greycstoration_params::source, _greycstoration_params::stop_request, _greycstoration_params::temporary, temporary, _greycstoration_params::thread, _greycstoration_params::tile, _greycstoration_params::tile_border, and cimg_library::cimg::warn().
Referenced by greycstoration_run().
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 | ) |
Definition at line 392 of file greycstoration.h.
References _greycstoration_params::alpha, _greycstoration_params::amplitude, _greycstoration_params::anisotropy, _greycstoration_params::da, _greycstoration_params::dl, _greycstoration_params::fast_approx, _greycstoration_params::gauss_prec, _greycstoration_params::gfact, greycstoration_mutex_lock(), greycstoration_mutex_unlock(), _greycstoration_params::interpolation, _greycstoration_params::lookup_size, _greycstoration_params::nb_threads, _greycstoration_params::patch_based, _greycstoration_params::patch_size, _greycstoration_params::sharpness, _greycstoration_params::sigma, _greycstoration_params::sigma_p, _greycstoration_params::sigma_s, _greycstoration_params::stop_request, _greycstoration_params::thread, and _greycstoration_params::tile.
if | ( | !p. | tile | ) |
Definition at line 437 of file greycstoration.h.
References _greycstoration_params::alpha, _greycstoration_params::amplitude, _greycstoration_params::anisotropy, _greycstoration_params::counter, _greycstoration_params::da, _greycstoration_params::dl, _greycstoration_params::fast_approx, _greycstoration_params::gauss_prec, _greycstoration_params::gfact, greycstoration_mutex_destroy(), _greycstoration_params::interpolation, _greycstoration_params::lookup_size, _greycstoration_params::mask, _greycstoration_params::nb_threads, _greycstoration_params::patch_size, _greycstoration_params::sharpness, _greycstoration_params::sigma, _greycstoration_params::sigma_p, _greycstoration_params::sigma_s, _greycstoration_params::source, _greycstoration_params::stop_request, _greycstoration_params::temporary, _greycstoration_params::thread, _greycstoration_params::tile, _greycstoration_params::tile_border, and cimg_library::cimg::wait().
Referenced by lux::BasicColorPhoton::BasicColorPhoton(), lux::MotionSystem::DecomposeMatrix(), cimg_library::CImg< T >::draw_object3d(), lux::GridAccel::Intersect(), lux::Disk::Intersect(), lux::GridAccel::IntersectP(), lux::Disk::IntersectP(), lux::LoopSubdiv::LoopSubdiv(), and PerspectiveBxDF::Sample_f().
Definition at line 390 of file greycstoration.h.
Referenced by cimg_library::CImg< T >::_draw_ellipse(), lux::Sample::AddContribution(), cimg_library::CImg< T >::blur_anisotropic(), cimg_library::CImg< T >::cubic_pix1d(), cimg_library::CImg< T >::cubic_pix2d(), cimg_library::CImg< T >::det(), cimg_library::CImg< T >::draw_gaussian(), cimg_library::CImg< T >::eigen(), cimg_library::CImg< T >::get_default_LUT8(), cimg_library::CImg< T >::get_gradientXY(), cimg_library::CImg< T >::get_logo40x38(), cimg_library::CImg< T >::get_resize(), greycstoration_progress(), lux::RGBReflSPD::init(), lux::RGBIllumSPD::init(), cimg_library::CImg< T >::invert(), lux::Invert3x3(), lux::IrregularSPD::IrregularSPD(), cimg_library::CImg< T >::LabtoXYZ(), lux::lux_png_error(), blender::noise3_perlin(), lux::LoopSubdiv::ObjectBound(), processCommand(), quartic(), lux::LuxGui::LuxLightGroupPanel::ResetValuesFromFilm(), cimg_library::CImg< T >::save_off(), lux::SWCSpectrum::SWCSpectrum(), lux::TaBRecKdTreeAccel::TaBRecKdTreeAccel(), blender::tex_saw(), blender::tex_tri(), lux::UnsafeKdTreeAccel::UnsafeKdTreeAccel(), and lux::LoopSubdiv::WorldBound().
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.
Definition at line 373 of file greycstoration.h.
Referenced by cimg_library::CImg< T >::blur_anisotropic(), cimg_library::CImg< T >::draw_text(), cimg_library::CImg< T >::get_correlate(), cimg_library::CImg< T >::get_dilate(), cimg_library::CImg< T >::get_erode(), cimg_library::CImgList< T >::get_font(), cimg_library::CImg< T >::get_resize_halfXY(), and cimg_library::CImg< T >::load_bmp().
_greycstoration_params& p = *(_greycstoration_params*)arg |
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.
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) |
Definition at line 389 of file greycstoration.h.
Referenced by cimg_library::CImg< T >::blur_anisotropic(), cimg_library::CImg< T >::blur_bilateral(), cimg_library::CImg< T >::draw_fill(), cimg_library::CImg< T >::get_displacement_field(), and cimg_library::CImg< T >::sharpen().