public class

FritzVisionStyleResult

extends FritzVisionResult
java.lang.Object
   ↳ ai.fritz.vision.outputs.FritzVisionResult
     ↳ ai.fritz.fritzvisionstyle.FritzVisionStyleResult

Class Overview

FritzVisionStyleResult contains the input and output from FritzVisionStylePredictor#applyStyle(FritzVisionImage).

Summary

[Expand]
Inherited Fields
From class ai.fritz.vision.outputs.FritzVisionResult
Public Constructors
FritzVisionStyleResult(FritzVisionImage originalImage, FritzVisionImage styledImage)
Public Methods
void drawToCanvas(Canvas canvas)
Draw the output to the canvas.
void drawToCanvas(Canvas canvas, Size canvasSize)
Draw the output to the canvas and resize the image.
Bitmap getResultBitmap(Size canvasSize)
Get the styled bitmap scaled to the given size.
Bitmap getResultBitmap()
Get the bitmap result of the styled image.
FritzVisionImage getStyledImage()
Get the styled image output by the model.
[Expand]
Inherited Methods
From class ai.fritz.vision.outputs.FritzVisionResult
From class java.lang.Object

Public Constructors

public FritzVisionStyleResult (FritzVisionImage originalImage, FritzVisionImage styledImage)

Public Methods

public void drawToCanvas (Canvas canvas)

Draw the output to the canvas.

public void drawToCanvas (Canvas canvas, Size canvasSize)

Draw the output to the canvas and resize the image.

public Bitmap getResultBitmap (Size canvasSize)

Get the styled bitmap scaled to the given size.

Parameters
canvasSize - the desired size of the bitmap returned.
Returns
  • a styled bitmap scaled to the given size.

public Bitmap getResultBitmap ()

Get the bitmap result of the styled image.

Returns
  • a bitmap of the styled image.

public FritzVisionImage getStyledImage ()

Get the styled image output by the model.

Returns
  • FritzVisionImage