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
Nested ClassesModifier and TypeClassDescriptionstatic classClass which represents a filter and it's parameters. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()getWidth()static ImageFeaturesDatanewInstance(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:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classFeaturesData- Throws:
IOException
-