VTK-m
2.0
|
Manages reading images using the PNG format via lodepng. More...
#include <ImageReaderPNG.h>
Public Member Functions | |
VTKM_CONT | ~ImageReaderPNG () noexcept override |
ImageReaderPNG (const ImageReaderPNG &)=delete | |
ImageReaderPNG & | operator= (const ImageReaderPNG &)=delete |
Public Member Functions inherited from vtkm::io::ImageReaderBase | |
VTKM_CONT | ImageReaderBase (const char *filename) |
VTKM_CONT | ImageReaderBase (const std::string &filename) |
virtual VTKM_CONT | ~ImageReaderBase () noexcept |
ImageReaderBase (const ImageReaderBase &)=delete | |
ImageReaderBase & | operator= (const ImageReaderBase &)=delete |
const VTKM_CONT vtkm::cont::DataSet & | ReadDataSet () |
const VTKM_CONT vtkm::cont::DataSet & | GetDataSet () const |
const VTKM_CONT std::string & | GetPointFieldName () const |
VTKM_CONT void | SetPointFieldName (const std::string &name) |
const VTKM_CONT std::string & | GetFileName () const |
VTKM_CONT void | SetFileName (const std::string &filename) |
Protected Member Functions | |
VTKM_CONT void | Read () override |
Protected Member Functions inherited from vtkm::io::ImageReaderBase | |
void | InitializeImageDataSet (const vtkm::Id &width, const vtkm::Id &height, const ColorArrayType &pixels) |
Resets the DataSet to hold the given pixels. More... | |
Private Types | |
using | Superclass = ImageReaderBase |
Additional Inherited Members | |
Public Types inherited from vtkm::io::ImageReaderBase | |
using | ColorArrayType = vtkm::cont::ArrayHandle< vtkm::Vec4f_32 > |
Protected Attributes inherited from vtkm::io::ImageReaderBase | |
std::string | FileName |
std::string | PointFieldName = "color" |
vtkm::cont::DataSet | DataSet |
Manages reading images using the PNG format via lodepng.
ImageReaderPNG
extends ImageReaderBase
and implements reading images in a valid PNG format. It utilizes lodepng's decode file functions to read PNG images that are automatically compressed to optimal sizes relative to the actual bit complexity of the image.
ImageReaderPNG
will automatically upsample/downsample read image data to a 16 bit RGB no matter how the image is compressed. It is up to the user to decide the pixel format for input PNGs
|
private |
|
overridenoexcept |
|
delete |
|
delete |
|
overrideprotectedvirtual |
Implements vtkm::io::ImageReaderBase.