텐서플로:: 작전:: 디코딩Png
#include <image_ops.h>
PNG로 인코딩된 이미지를 uint8 또는 uint16 텐서로 디코딩합니다.
요약
attr channels
은 디코딩된 이미지에 대해 원하는 색상 채널 수를 나타냅니다.
허용되는 값은 다음과 같습니다.
- 0: PNG로 인코딩된 이미지의 채널 수를 사용합니다.
- 1: 회색조 이미지를 출력합니다.
- 3: RGB 이미지를 출력합니다.
- 4: RGBA 이미지를 출력합니다.
필요한 경우 PNG로 인코딩된 이미지가 요청된 색상 채널 수와 일치하도록 변환됩니다.
이 작업은 인터페이스가 동일하기 때문에 JPEG 및 애니메이션이 아닌 GIF 디코딩도 지원하지만 tf.image.decode_image
를 사용하는 것이 더 깨끗합니다.
인수:
- 범위: 범위 개체
- 내용: 0-D. PNG로 인코딩된 이미지입니다.
선택적 속성( Attrs
참조):
- 채널: 디코딩된 이미지의 색상 채널 수입니다.
보고:
-
Output
: 모양이[height, width, channels]
인 3D .
생성자와 소멸자 | |
---|---|
DecodePng (const :: tensorflow::Scope & scope, :: tensorflow::Input contents) | |
DecodePng (const :: tensorflow::Scope & scope, :: tensorflow::Input contents, const DecodePng::Attrs & attrs) |
공개 속성 | |
---|---|
image | |
operation |
공공 기능 | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
공개 정적 함수 | |
---|---|
Channels (int64 x) | |
Dtype (DataType x) |
구조체 | |
---|---|
tensorflow:: ops:: DecodePng:: 속성 | DecodePng 에 대한 선택적 속성 설정자. |
공개 속성
영상
::tensorflow::Output image
작업
Operation operation
공공 기능
디코딩Png
DecodePng( const ::tensorflow::Scope & scope, ::tensorflow::Input contents )
디코딩Png
DecodePng( const ::tensorflow::Scope & scope, ::tensorflow::Input contents, const DecodePng::Attrs & attrs )
마디
::tensorflow::Node * node() const
연산자::텐서플로::입력
operator::tensorflow::Input() const
연산자::텐서플로우::출력
operator::tensorflow::Output() const
공개 정적 함수
채널
Attrs Channels( int64 x )
디타입
Attrs Dtype( DataType x )