Autopsy  4.19.3
Graphical digital forensics platform for The Sleuth Kit and other tools.
Classes | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Static Private Attributes | List of all members
org.sleuthkit.autopsy.contentviewers.imagetagging.ImageTagsUtil Class Reference

Classes

enum  IconSize
 

Static Public Member Functions

static BufferedImage getImageWithTags (AbstractFile file, Collection< ImageTagRegion > tagRegions) throws IOException, InterruptedException, ExecutionException
 
static BufferedImage getThumbnailWithTags (AbstractFile file, Collection< ImageTagRegion > tagRegions, IconSize iconSize) throws IOException, InterruptedException, ExecutionException
 

Private Member Functions

 ImageTagsUtil ()
 

Static Private Member Functions

static BufferedImage getImageFromFile (AbstractFile file) throws IOException, InterruptedException, ExecutionException
 
static Mat getImageMatFromFile (AbstractFile file) throws InterruptedException, ExecutionException, IOException
 
static MatOfByte getResizedMatrix (MatOfByte taggedMatrix, IconSize size)
 
static MatOfByte getTaggedImageMatrix (Mat sourceImage, Collection< ImageTagRegion > tagRegions)
 

Static Private Attributes

static final String AWT_PNG = "png"
 
static final String OPENCV_PNG = ".png"
 

Detailed Description

Utility for drawing rectangles on image files.

Definition at line 47 of file ImageTagsUtil.java.

Constructor & Destructor Documentation

org.sleuthkit.autopsy.contentviewers.imagetagging.ImageTagsUtil.ImageTagsUtil ( )
private

Definition at line 217 of file ImageTagsUtil.java.

Member Function Documentation

static BufferedImage org.sleuthkit.autopsy.contentviewers.imagetagging.ImageTagsUtil.getImageFromFile ( AbstractFile  file) throws IOException, InterruptedException, ExecutionException
staticprivate

Get the image from file.

Parameters
file
Returns
Exceptions
IOException
InterruptedException
ExecutionException

Definition at line 91 of file ImageTagsUtil.java.

References org.sleuthkit.autopsy.coreutils.ImageUtils.isGIF(), and org.sleuthkit.autopsy.coreutils.ImageUtils.newReadImageTask().

Referenced by org.sleuthkit.autopsy.contentviewers.imagetagging.ImageTagsUtil.getImageMatFromFile().

static Mat org.sleuthkit.autopsy.contentviewers.imagetagging.ImageTagsUtil.getImageMatFromFile ( AbstractFile  file) throws InterruptedException, ExecutionException, IOException
staticprivate

Reads the image and converts it into an OpenCV equivalent.

Parameters
fileImage to read
Returns
raw image bytes
Exceptions
IOException
InterruptedExceptionCalling thread was interrupted.
ExecutionExceptionError while reading image from AbstractFile

Definition at line 117 of file ImageTagsUtil.java.

References org.sleuthkit.autopsy.contentviewers.imagetagging.ImageTagsUtil.getImageFromFile().

Referenced by org.sleuthkit.autopsy.contentviewers.imagetagging.ImageTagsUtil.getImageWithTags(), and org.sleuthkit.autopsy.contentviewers.imagetagging.ImageTagsUtil.getThumbnailWithTags().

static BufferedImage org.sleuthkit.autopsy.contentviewers.imagetagging.ImageTagsUtil.getImageWithTags ( AbstractFile  file,
Collection< ImageTagRegion tagRegions 
) throws IOException, InterruptedException, ExecutionException
static

Creates an image with tags applied.

Parameters
fileSource image.
tagRegionsTags to apply.
Returns
Tagged image.
Exceptions
IOException
InterruptedExceptionCalling thread was interrupted
ExecutionExceptionError while reading image from AbstractFile

Definition at line 66 of file ImageTagsUtil.java.

References org.sleuthkit.autopsy.contentviewers.imagetagging.ImageTagsUtil.getImageMatFromFile(), and org.sleuthkit.autopsy.contentviewers.imagetagging.ImageTagsUtil.getTaggedImageMatrix().

Referenced by org.sleuthkit.autopsy.report.modules.html.HTMLReport.addThumbnailRows().

static MatOfByte org.sleuthkit.autopsy.contentviewers.imagetagging.ImageTagsUtil.getResizedMatrix ( MatOfByte  taggedMatrix,
IconSize  size 
)
staticprivate

Resizes the image matrix.

Parameters
taggedMatrixImage to resize.
sizeSize of thumbnail.
Returns
A new resized image matrix.

Definition at line 201 of file ImageTagsUtil.java.

References org.sleuthkit.autopsy.contentviewers.imagetagging.ImageTagsUtil.IconSize.getSize().

Referenced by org.sleuthkit.autopsy.contentviewers.imagetagging.ImageTagsUtil.getThumbnailWithTags().

static MatOfByte org.sleuthkit.autopsy.contentviewers.imagetagging.ImageTagsUtil.getTaggedImageMatrix ( Mat  sourceImage,
Collection< ImageTagRegion tagRegions 
)
staticprivate
static BufferedImage org.sleuthkit.autopsy.contentviewers.imagetagging.ImageTagsUtil.getThumbnailWithTags ( AbstractFile  file,
Collection< ImageTagRegion tagRegions,
IconSize  iconSize 
) throws IOException, InterruptedException, ExecutionException
static

Creates a thumbnail with tags applied.

Parameters
fileInput file to apply tags & produce thumbnail from
tagRegionsTags to apply
iconSizeSize of the output thumbnail
Returns
BufferedImage Thumbnail image
Exceptions
InterruptedExceptionCalling thread was interrupted.
ExecutionExceptionError while reading image from file.

Definition at line 174 of file ImageTagsUtil.java.

References org.sleuthkit.autopsy.contentviewers.imagetagging.ImageTagsUtil.getImageMatFromFile(), org.sleuthkit.autopsy.contentviewers.imagetagging.ImageTagsUtil.getResizedMatrix(), and org.sleuthkit.autopsy.contentviewers.imagetagging.ImageTagsUtil.getTaggedImageMatrix().

Referenced by org.sleuthkit.autopsy.report.modules.html.HTMLReport.addThumbnailRows().

Member Data Documentation

final String org.sleuthkit.autopsy.contentviewers.imagetagging.ImageTagsUtil.AWT_PNG = "png"
staticprivate

Definition at line 50 of file ImageTagsUtil.java.

final String org.sleuthkit.autopsy.contentviewers.imagetagging.ImageTagsUtil.OPENCV_PNG = ".png"
staticprivate

Definition at line 53 of file ImageTagsUtil.java.


The documentation for this class was generated from the following file:

Copyright © 2012-2022 Basis Technology. Generated on: Tue Jun 27 2023
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.