tensorflow :: ops :: EncodeJpeg
#include <image_ops.h>
이미지를 JPEG로 인코딩합니다.
요약
image
는 3D uint8 Tensor of shape [height, width, channels]
입니다.
attr format
을 사용하여 인코딩 된 출력의 색상 형식을 재정의 할 수 있습니다. 값은 다음과 같습니다.
- ` ''
: Use a default format based on the number of channels in the image. *
그레이 스케일: Output a grayscale JPEG image. The
이미지: Output a grayscale JPEG image. The
채널dimension of
must be 1. *
rgb: Output an RGB JPEG image. The
채널dimension of
3이어야합니다.
format
이 지정되지 않았거나 빈 문자열 인 경우 기본 형식이 image
의 채널 수에 따라 선택됩니다.
인수 :
- 범위 : 범위 개체
- 이미지 : 3 차원 모양
[height, width, channels]
.
선택적 속성 ( Attrs
참조) :
- 형식 : 픽셀 당 이미지 형식.
- quality : 0에서 100까지의 압축 품질 (높을수록 좋고 느림).
- Progressive : True 인 경우 점진적으로로드되는 JPEG를 만듭니다 (거친에서 미세하게).
- optimize_size : True 인 경우 CPU / RAM을 사용하여 품질 변경없이 크기를 줄입니다.
- chroma_downsampling : http://en.wikipedia.org/wiki/Chroma_subsampling을 참조하십시오.
- density_unit :
x_density
및y_density
를 지정하는 데 사용되는 단위 : 인치당 픽셀 ('in'
) 또는 센티미터 ('cm'
). - x_density : 밀도 단위당 수평 픽셀.
- y_density : 밀도 단위당 수직 픽셀.
- xmp_metadata : 비어 있지 않은 경우이 XMP 메타 데이터를 이미지 헤더에 포함합니다.
보고:
-
Output
: 0-D. JPEG로 인코딩 된 이미지.
생성자와 소멸자 | |
---|---|
EncodeJpeg (const :: tensorflow::Scope & scope, :: tensorflow::Input image) | |
EncodeJpeg (const :: tensorflow::Scope & scope, :: tensorflow::Input image, const EncodeJpeg::Attrs & attrs) |
공용 속성 | |
---|---|
contents | |
operation |
공공 기능 | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
공개 정적 함수 | |
---|---|
ChromaDownsampling (bool x) | |
DensityUnit (StringPiece x) | |
Format (StringPiece x) | |
OptimizeSize (bool x) | |
Progressive (bool x) | |
Quality (int64 x) | |
XDensity (int64 x) | |
XmpMetadata (StringPiece x) | |
YDensity (int64 x) |
구조체 | |
---|---|
tensorflow :: ops :: EncodeJpeg :: 속성 | EncodeJpeg에 대한 선택적 속성 설정자. |
공용 속성
내용
::tensorflow::Output contents
조작
Operation operation
공공 기능
EncodeJpeg
EncodeJpeg( const ::tensorflow::Scope & scope, ::tensorflow::Input image )
EncodeJpeg
EncodeJpeg( const ::tensorflow::Scope & scope, ::tensorflow::Input image, const EncodeJpeg::Attrs & attrs )
마디
::tensorflow::Node * node() const
연산자 :: tensorflow :: 입력
operator::tensorflow::Input() const
연산자 :: tensorflow :: 출력
operator::tensorflow::Output() const
공개 정적 함수
크로마 다운 샘플링
Attrs ChromaDownsampling( bool x )
밀도 단위
Attrs DensityUnit( StringPiece x )
체재
Attrs Format( StringPiece x )
OptimizeSize
Attrs OptimizeSize( bool x )
프로그레시브
Attrs Progressive( bool x )
품질
Attrs Quality( int64 x )
XDensity
Attrs XDensity( int64 x )
XmpMetadata
Attrs XmpMetadata( StringPiece x )
YDensity
Attrs YDensity( int64 x )