16 # include <vcl_msvc_warnings.h> 41 return property_value ? (*static_cast<bool*>(property_value)) =
true :
true;
43 return src_->get_property(tag, property_value);
47 unsigned j0,
unsigned nj)
const 50 if (!vs)
return nullptr;
52 switch (vs->pixel_format())
54 #define macro( F , T ) \ 56 vil_clamp(static_cast<vil_image_view<T >&>(*vs), static_cast<vil_image_view<T >&>(*vs), \ 63 macro(VIL_PIXEL_FORMAT_UINT_64 , vxl_uint_64 )
64 macro(VIL_PIXEL_FORMAT_INT_64 , vxl_int_64 )
76 vs->pixel_format(),
"vil_clamp_image_resource::get_copy_view") );
void vil_clamp(const vil_image_view< T > &src, vil_image_view< T > &dest, T lo, T hi)
Clamp an image view between two values.
unsigned ni() const override
Dimensions: Planes x ni x nj.
Exceptions thrown by vil, and a mechanism for turning them off.
A generic_image adaptor that behaves like a clamped version of its input.
unsigned nj() const override
Dimensions: Planes x ni x nj.
vil_image_view_base_sptr get_copy_view() const
Create a read/write view of a copy of all the data.
There is no class or function called vil_property.
vil_image_resource_sptr src_
Reference to underlying image source.
void vil_exception_warning(T exception)
Throw an exception indicating a potential problem.
#define vil_property_read_only
Indicate that you can't call put_view on this image.
vil_clamp_image_resource(vil_image_resource_sptr const &, double low, double high)
bool get_property(char const *tag, void *property_value=nullptr) const override
Extra property information.