Go to the documentation of this file.
52 #ifndef __PCL_FileFormatInstance_h
53 #define __PCL_FileFormatInstance_h
57 #ifndef __PCL_BUILDING_PIXINSIGHT_APPLICATION
72 class PCL_CLASS ColorFilterArray;
73 class PCL_CLASS DisplayFunction;
74 class PCL_CLASS FileFormat;
75 class PCL_CLASS ICCProfile;
214 return Open( images, filePath,
IsoString( hints ) );
228 bool SelectImage(
int index );
238 int SelectedImageIndex()
const;
252 const void* FormatSpecificData()
const;
263 String ImageFormatInfo()
const;
275 bool ReadICCProfile( ICCProfile& icc );
292 bool ReadRGBWorkingSpace( RGBColorSystem& rgbws );
309 bool ReadDisplayFunction( DisplayFunction& df );
325 bool ReadColorFilterArray( ColorFilterArray& cfa );
390 return PropertyDescriptions().Contains( property );
395 return HasProperty(
IsoString( property ) );
417 if ( i == properties.
End() )
443 Variant ReadProperty(
const IsoString& property );
447 return ReadProperty( IsoString( property ) );
495 return ImagePropertyDescriptions().Contains( property );
500 return HasImageProperty(
IsoString( property ) );
517 if ( i == properties.
End() )
524 return ImagePropertyDescription(
IsoString( property ) );
538 Variant ReadImageProperty(
const IsoString& property );
542 return ReadImageProperty( IsoString( property ) );
561 bool ReadImage(
FImage& image );
567 bool ReadImage(
DImage& image );
600 case 32:
return ReadImage(
static_cast<pcl::Image&
>( *image ) );
601 case 64:
return ReadImage(
static_cast<pcl::DImage&
>( *image ) );
622 bool CanReadIncrementally()
const;
651 bool ReadSamples(
FImage::sample* buffer,
int startRow,
int rowCount,
int channel );
660 bool ReadSamples(
DImage::sample* buffer,
int startRow,
int rowCount,
int channel );
669 bool ReadSamples(
UInt8Image::sample* buffer,
int startRow,
int rowCount,
int channel );
697 bool WasInexactRead()
const;
766 return Create( filePath,
IsoString( hints ), numberOfImages );
779 bool SetId(
const IsoString&
id );
783 return SetId( IsoString(
id ) );
796 bool SetOptions(
const ImageOptions& options );
826 bool SetFormatSpecificData(
const void* data );
835 bool WriteICCProfile(
const ICCProfile& icc );
847 bool WriteRGBWorkingSpace(
const RGBColorSystem& rgbws );
859 bool WriteDisplayFunction(
const DisplayFunction& df );
871 bool WriteColorFilterArray(
const ColorFilterArray& cfa );
880 bool WriteThumbnail(
const UInt8Image& image );
899 bool WriteProperty(
const IsoString& property,
const Variant& value );
903 return WriteProperty( IsoString( property ), value );
915 return WriteProperty( property.
Id(), property.
Value() );
952 return WriteImageProperty(
IsoString( property ), value );
965 return WriteImageProperty( property.
Id(), property.
Value() );
978 bool WriteImageProperties(
const PropertyArray& properties );
993 bool WriteImage(
const FImage& image );
999 bool WriteImage(
const DImage& image );
1032 case 32:
return WriteImage(
static_cast<const pcl::Image&
>( *image ) );
1033 case 64:
return WriteImage(
static_cast<const pcl::DImage&
>( *image ) );
1038 case 8:
return WriteImage(
static_cast<const pcl::UInt8Image&
>( *image ) );
1039 case 16:
return WriteImage(
static_cast<const pcl::UInt16Image&
>( *image ) );
1040 case 32:
return WriteImage(
static_cast<const pcl::UInt32Image&
>( *image ) );
1054 bool CanWriteIncrementally()
const;
1071 bool CreateImage(
const ImageInfo& info );
1112 bool WriteSamples(
const FImage::sample* buffer,
int startRow,
int rowCount,
int channel );
1121 bool WriteSamples(
const DImage::sample* buffer,
int startRow,
int rowCount,
int channel );
1130 bool WriteSamples(
const UInt8Image::sample* buffer,
int startRow,
int rowCount,
int channel );
1139 bool WriteSamples(
const UInt16Image::sample* buffer,
int startRow,
int rowCount,
int channel );
1148 bool WriteSamples(
const UInt32Image::sample* buffer,
int startRow,
int rowCount,
int channel );
1158 bool WasLossyWrite()
const;
1166 void* CloneHandle()
const override;
1168 friend class FileFormatInstancePrivate;
1175 #endif // __PCL_BUILDING_PIXINSIGHT_APPLICATION
1177 #endif // __PCL_FileFormatInstance_h
16-bit unsigned integer image.
const identifier_type & Id() const
Acts like a union to store instances of different data types.
bool IsFloatSample() const noexcept
Eight-bit string (ISO/IEC-8859-1 or UTF-8 string)
Dynamic array of Property objects.
Dynamic array of FITS header keywords.
Root base class for all user interface objects.
8-bit unsigned integer image.
An identifier-value association.
GenericString< char16_type, CharTraits, PCL_STRING_ALLOCATOR > ustring_base
A structure to describe a data property.
typename pixel_traits::sample sample
32-bit unsigned integer image.
Dynamic array of PropertyDescription structures.
A simple structure to hold basic information about images.
bool IsComplexSample() const noexcept
64-bit floating point real image.
const value_type & Value() const
iterator Search(const T &v) const noexcept
32-bit floating point real image.
Acts like a union for all types of images in PCL, with optional class-wide ownership of transported i...
int BitsPerSample() const noexcept
Implements a generic, two-dimensional, shared or local image.