텐서플로우:: ops:: EncodePng
#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는 가장 높은 압축 수준으로, 가장 작은 출력 파일을 생성하지만 속도가 느립니다.
논거:
- 범위: Scope 객체
- 이미지:
[height, width, channels]형태의 3D 이미지.
선택적 속성( Attrs 참조):
- 압축: 압축 수준.
보고:
-
Output: 0차원 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:: Attrs | 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 )