텐서플로우:: ops:: DecodeGif

#include <image_ops.h>

GIF로 인코딩된 이미지의 프레임을 uint8 텐서로 디코딩합니다.

요약

프레임 또는 투명도 압축이 적용된 GIF 이미지는 지원되지 않습니다. Linux 및 MacOS 시스템에서는 다음 명령을 실행하여 압축된 GIF 애니메이션을 압축되지 않은 GIF로 변환하십시오.

convert $src.gif -coalesce $dst.gif

이 연산은 JPEG 및 PNG 디코딩도 지원하지만, tf.io.decode_image 사용하는 것이 더 깔끔합니다.

논거:

  • 범위: Scope 객체
  • 내용: 0-D. GIF로 인코딩된 이미지.

보고:

  • Output : [num_frames, height, width, 3] 형태의 4차원 이미지. RGB 채널 순서.

생성자와 소멸자

DecodeGif (const :: tensorflow::Scope & scope, :: tensorflow::Input contents)

공개 속성

image
operation

공공 기능

node () const
::tensorflow::Node *
operator::tensorflow::Input () const
operator::tensorflow::Output () const

공개 속성

영상

::tensorflow::Output image

작업

Operation operation

공공 기능

디코드Gif

 DecodeGif(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input contents
)

마디

::tensorflow::Node * node() const 

연산자::텐서플로우::입력

 operator::tensorflow::Input() const 

연산자::텐서플로우::출력

 operator::tensorflow::Output() const