텐서플로우:: 작전:: 인코딩Jpeg:: 속성
#include <image_ops.h>EncodeJpeg 에 대한 선택적 속성 설정자입니다.
요약
| 공개 속성 | |
|---|---|
| chroma_downsampling_ = true | bool | 
| density_unit_ = "in" | StringPiece | 
| format_ = "" | StringPiece | 
| optimize_size_ = false | bool | 
| progressive_ = false | bool | 
| quality_ = 95 | int64 | 
| x_density_ = 300 | int64 | 
| xmp_metadata_ = "" | StringPiece | 
| y_density_ = 300 | int64 | 
| 공공 기능 | |
|---|---|
| ChromaDownsampling (bool x) | TF_MUST_USE_RESULT Attrs | 
| DensityUnit (StringPiece x) | TF_MUST_USE_RESULT Attrsx_density및y_density지정하는 데 사용되는 단위: 인치당 픽셀('in') 또는 센티미터('cm'). | 
| Format (StringPiece x) | TF_MUST_USE_RESULT Attrs 픽셀당 이미지 형식입니다. | 
| OptimizeSize (bool x) | TF_MUST_USE_RESULT Attrs True인 경우 CPU/RAM을 사용하여 품질 변경 없이 크기를 줄입니다. | 
| Progressive (bool x) | TF_MUST_USE_RESULT Attrs True인 경우 점진적으로(거친 것부터 미세한 것까지) 로드되는 JPEG를 만듭니다. | 
| Quality (int64 x) | TF_MUST_USE_RESULT Attrs 압축 품질은 0에서 100까지입니다(높을수록 좋고 느립니다). | 
| XDensity (int64 x) | TF_MUST_USE_RESULT Attrs 밀도 단위당 수평 픽셀. | 
| XmpMetadata (StringPiece x) | TF_MUST_USE_RESULT Attrs 비어 있지 않은 경우 이 XMP 메타데이터를 이미지 헤더에 포함합니다. | 
| YDensity (int64 x) | TF_MUST_USE_RESULT Attrs 밀도 단위당 수직 픽셀. | 
공개 속성
크로마_다운샘플링_
bool tensorflow::ops::EncodeJpeg::Attrs::chroma_downsampling_ = true
밀도_단위_
StringPiece tensorflow::ops::EncodeJpeg::Attrs::density_unit_ = "in"
체재_
StringPiece tensorflow::ops::EncodeJpeg::Attrs::format_ = ""
최적화_크기_
bool tensorflow::ops::EncodeJpeg::Attrs::optimize_size_ = false
진보적_
bool tensorflow::ops::EncodeJpeg::Attrs::progressive_ = false
품질_
int64 tensorflow::ops::EncodeJpeg::Attrs::quality_ = 95
x_밀도_
int64 tensorflow::ops::EncodeJpeg::Attrs::x_density_ = 300
xmp_metadata_
StringPiece tensorflow::ops::EncodeJpeg::Attrs::xmp_metadata_ = ""
y_밀도_
int64 tensorflow::ops::EncodeJpeg::Attrs::y_density_ = 300
공공 기능
크로마다운샘플링
TF_MUST_USE_RESULT Attrs tensorflow::ops::EncodeJpeg::Attrs::ChromaDownsampling( bool x )
http://en.wikipedia.org/wiki/Chroma_subsampling을 참조하세요.
기본값은 true입니다.
밀도단위
TF_MUST_USE_RESULT Attrs tensorflow::ops::EncodeJpeg::Attrs::DensityUnit( StringPiece x )
x_density 및 y_density 지정하는 데 사용되는 단위: 인치당 픽셀( 'in' ) 또는 센티미터( 'cm' ).
기본값은 "in"입니다.
체재
TF_MUST_USE_RESULT Attrs tensorflow::ops::EncodeJpeg::Attrs::Format( StringPiece x )
픽셀당 이미지 형식입니다.
기본값은 ""입니다.
최적화크기
TF_MUST_USE_RESULT Attrs tensorflow::ops::EncodeJpeg::Attrs::OptimizeSize( bool x )
True인 경우 CPU/RAM을 사용하여 품질 변경 없이 크기를 줄입니다.
기본값은 거짓
프로그레시브
TF_MUST_USE_RESULT Attrs tensorflow::ops::EncodeJpeg::Attrs::Progressive( bool x )
True인 경우 점진적으로(거친 것부터 미세한 것까지) 로드되는 JPEG를 만듭니다.
기본값은 거짓
품질
TF_MUST_USE_RESULT Attrs tensorflow::ops::EncodeJpeg::Attrs::Quality( int64 x )
압축 품질은 0에서 100까지입니다(높을수록 좋고 느립니다).
기본값은 95입니다.
XDensity
TF_MUST_USE_RESULT Attrs tensorflow::ops::EncodeJpeg::Attrs::XDensity( int64 x )
밀도 단위당 수평 픽셀.
기본값은 300입니다.
Xmp메타데이터
TF_MUST_USE_RESULT Attrs tensorflow::ops::EncodeJpeg::Attrs::XmpMetadata( StringPiece x )
비어 있지 않은 경우 이 XMP 메타데이터를 이미지 헤더에 포함합니다.
기본값은 ""입니다.
Y밀도
TF_MUST_USE_RESULT Attrs tensorflow::ops::EncodeJpeg::Attrs::YDensity( int64 x )
밀도 단위당 수직 픽셀.
기본값은 300입니다.