Package org.verapdf.features
Class ImageFeaturesData
java.lang.Object
org.verapdf.features.FeaturesData
org.verapdf.features.ImageFeaturesData
- All Implemented Interfaces:
Closeable
,AutoCloseable
Features data of an image for feature extractor
- Author:
- Maksim Bezrukov
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Class which represents a filter and it's parameters. -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
getWidth()
static ImageFeaturesData
newInstance
(InputStream metadata, InputStream stream, Integer width, Integer height, List<ImageFeaturesData.Filter> filters) Creates ICCProfileFeaturesDataMethods inherited from class org.verapdf.features.FeaturesData
getStream
-
Method Details
-
newInstance
public static ImageFeaturesData newInstance(InputStream metadata, InputStream stream, Integer width, Integer height, List<ImageFeaturesData.Filter> filters) Creates ICCProfileFeaturesData- Parameters:
metadata
- metadata streamstream
- object streamwidth
- parameter Width from the iccprofile dictionaryheight
- parameter Height from the iccprofile dictionaryfilters
- list of FilterStructures elements. The order of them is the same as in pdf file
-
getMetadata
- Returns:
- metadata stream
-
getWidth
- Returns:
- parameter Width from the iccprofile dictionary
-
getHeight
- Returns:
- parameter Height from the iccprofile dictionary
-
getFilters
- Returns:
- list of FilterStructures elements. The order of them is the same as in pdf files
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classFeaturesData
- Throws:
IOException
-