Esempio n. 1
0
	pixel_locator_gradientLocalMaxima_t( const SView& src )
	: _loc_ref(src.xy_at(0,0))
	, LT(_loc_ref.cache_location(-1,-1))
	, CT(_loc_ref.cache_location( 0,-1))
	, RT(_loc_ref.cache_location( 1,-1))

	, LC(_loc_ref.cache_location(-1, 0))
	, RC(_loc_ref.cache_location( 1, 0))

	, LB(_loc_ref.cache_location(-1, 1))
	, CB(_loc_ref.cache_location( 0, 1))
	, RB(_loc_ref.cache_location( 1, 1))
	{
		using namespace terry::numeric;
		pixel_assigns_min( _black );
	}
Esempio n. 2
0
    pixel_locator_thinning_t(const SView& src, const bool* lut)
        : _lut(lut)
        , _loc_ref(src.xy_at(0, 0))
        , LT(_loc_ref.cache_location(-1, -1))
        , CT(_loc_ref.cache_location(0, -1))
        , RT(_loc_ref.cache_location(1, -1))

        , LC(_loc_ref.cache_location(-1, 0))
        , RC(_loc_ref.cache_location(1, 0))

        , LB(_loc_ref.cache_location(-1, 1))
        , CB(_loc_ref.cache_location(0, 1))
        , RB(_loc_ref.cache_location(1, 1))
    {
        using namespace terry::numeric;
        pixel_assigns_max(_sWhite);
        pixel_assigns_min(_dBlack);
        pixel_assigns_max(_dWhite);
    }