텐서플로우:: 작전:: 인코딩Png

#include <image_ops.h>

이미지를 PNG로 인코딩합니다.

요약

image [height, width, channels] 모양의 3차원 uint8 또는 uint16 텐서 입니다. 여기서 channels 다음과 같습니다.

  • 1: 회색조용.
  • 2: 그레이스케일 + 알파용.
  • 3: RGB용.
  • 4: RGBA용.

ZLIB 압축 수준인 compression PNG 인코더 기본값의 경우 -1이거나 0에서 9 사이의 값일 수 있습니다. 9는 가장 높은 압축 수준으로 가장 작은 출력을 생성하지만 속도가 느립니다.

인수:

  • 범위: 범위 개체
  • 이미지: 모양이 [height, width, channels] 인 3D입니다.

선택적 속성( Attrs 참조):

  • 압축: 압축 수준.

보고:

  • Output : 0-D. PNG로 인코딩된 이미지.

생성자와 소멸자

EncodePng (const :: tensorflow::Scope & scope, :: tensorflow::Input image)
EncodePng (const :: tensorflow::Scope & scope, :: tensorflow::Input image, const EncodePng::Attrs & attrs)

공개 속성

contents
operation

공공 기능

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

공개 정적 함수

Compression (int64 x)

구조체

텐서플로우:: ops:: EncodePng:: 속성

EncodePng 에 대한 선택적 속성 설정자입니다.

공개 속성

내용물

::tensorflow::Output contents

작업

Operation operation

공공 기능

인코딩Png

 EncodePng(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input image
)

인코딩Png

 EncodePng(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input image,
  const EncodePng::Attrs & attrs
)

마디

::tensorflow::Node * node() const 

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

 operator::tensorflow::Input() const 

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

 operator::tensorflow::Output() const 

공개 정적 함수

압축

Attrs Compression(
  int64 x
)