텐서플로우:: ops:: EncodeJpeg:: Attrs

#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 Attrs
x_density 및 y_density 지정하는 데 사용되는 단위는 인치당 픽셀( 'in' ) 또는 센티미터당 픽셀( 'cm' )입니다.
Format (StringPiece x)
TF_MUST_USE_RESULT Attrs
픽셀 단위 이미지 형식입니다.
OptimizeSize (bool x)
TF_MUST_USE_RESULT Attrs
만약 사실이라면, 품질 저하 없이 크기를 줄이기 위해 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_메타데이터_

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
)

만약 사실이라면, 품질 저하 없이 크기를 줄이기 위해 CPU/RAM을 사용합니다.

기본값은 false입니다.

진보적인

TF_MUST_USE_RESULT Attrs tensorflow::ops::EncodeJpeg::Attrs::Progressive(
  bool x
)

True로 설정하면, 이미지가 점진적으로 (거친 이미지에서 섬세한 이미지로) 로드되는 JPEG 파일을 생성합니다.

기본값은 false입니다.

품질

TF_MUST_USE_RESULT Attrs tensorflow::ops::EncodeJpeg::Attrs::Quality(
  int64 x
)

압축 품질은 0에서 100까지 조절 가능합니다 (높을수록 좋고 속도가 느립니다).

기본값은 95입니다.

X밀도

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입니다.