class
ImageFileExporterWrite image to a file with various formats.
Contents
- Reference
This exporter will look at the file extension and determine which image exporter should be used to read the file.
- .jpg, .jpeg, .png, .bmp, .gif -> ImageExporter
- .mhd -> MetaImageExporter
Input ports
0: Image
Base classes
- class FileExporter
- Abstract class for file exporters.
Public functions
- auto create(std::string filename, bool compress, bool resampleIfNeeded) -> std::shared_ptr<ImageFileExporter>
- void setResampleIfNeeded(bool resample)
Private functions
- void execute() override
Function documentation
std::shared_ptr<ImageFileExporter> fast:: ImageFileExporter:: create(std::string filename,
bool compress,
bool resampleIfNeeded)
Parameters | |
---|---|
filename | Filename to export image to |
compress | Use lossless compression if possible (.mhd/.zraw) |
resampleIfNeeded | If image is not isotropic and target format is standard image (jpg,gif,bmp etc), image will be resampled first to be isotropic. |
Returns | instance |
Create instance