DecodeImage.Options

public static class DecodeImage.Options

Optional attributes for DecodeImage

Public Methods

DecodeImage.Options
channels(Long channels)
DecodeImage.Options
expandAnimations(Boolean expandAnimations)

Inherited Methods

boolean
equals(Object arg0)
final Class<?>
getClass()
int
hashCode()
final void
notify()
final void
notifyAll()
String
toString()
final void
wait(long arg0, int arg1)
final void
wait(long arg0)
final void
wait()

Public Methods

public DecodeImage.Options channels (Long channels)

Parameters
channels Number of color channels for the decoded image.

public DecodeImage.Options expandAnimations (Boolean expandAnimations)

Parameters
expandAnimations Controls the output shape of the returned op. If True, the returned op will produce a 3-D tensor for PNG, JPEG, and BMP files; and a 4-D tensor for all GIFs, whether animated or not. If, False, the returned op will produce a 3-D tensor for all file types and will truncate animated GIFs to the first frame.