텐서플로우:: ops:: EncodeJpeg

#include <image_ops.h>

이미지를 JPEG 형식으로 인코딩합니다.

요약

image [height, width, channels] 형태의 3차원 uint8 텐서 입니다.

attr format 인코딩된 출력의 색상 형식을 재정의하는 데 사용할 수 있습니다. 값은 다음과 같습니다.

  • `'' : Use a default format based on the number of channels in the image. * grayscale : Output a grayscale JPEG image. The 이미지 dimension of must be 1. * rgb : Output an RGB JPEG image. The 이미지 dimension of 3이어야 합니다.

format 지정되지 않았거나 빈 문자열인 경우 image 의 채널 수에 따라 기본 형식이 선택됩니다.

논거:

  • 범위: Scope 객체
  • 이미지: [height, width, channels] 형태의 3D 이미지.

선택적 속성( Attrs 참조):

  • 형식: 픽셀 단위 이미지 형식.
  • 품질: 압축 품질(0~100, 숫자가 높을수록 좋고 속도가 느림).
  • progressive: True로 설정하면 JPEG 이미지가 점진적으로 로드되는 방식(거친 이미지에서 섬세한 이미지로)으로 생성됩니다.
  • optimize_size: True로 설정하면 품질 저하 없이 크기를 줄이기 위해 CPU/RAM을 사용합니다.
  • 크로마 다운샘플링: http://en.wikipedia.org/wiki/Chroma_subsampling 을 참조하십시오.
  • density_unit: x_density 및 y_density 지정하는 데 사용되는 단위: 인치당 픽셀( 'in' ) 또는 센티미터당 픽셀( 'cm' ).
  • x_density: 밀도 단위당 가로 픽셀 수.
  • y_density: 밀도 단위당 수직 픽셀 수.
  • xmp_metadata: 비어 있지 않으면 이 XMP 메타데이터를 이미지 헤더에 포함합니다.

보고:

  • Output : 0차원 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)

구조

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

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 

연산자::텐서플로우::입력

 operator::tensorflow::Input() const 

연산자::텐서플로우::출력

 operator::tensorflow::Output() const 

공개 정적 함수

크로마다운샘플링

Attrs ChromaDownsampling(
  bool x
)

밀도 단위

Attrs DensityUnit(
  StringPiece x
)

체재

Attrs Format(
  StringPiece x
)

최적화 크기

Attrs OptimizeSize(
  bool x
)

진보적인

Attrs Progressive(
  bool x
)

품질

Attrs Quality(
  int64 x
)

X밀도

Attrs XDensity(
  int64 x
)

Xmp메타데이터

Attrs XmpMetadata(
  StringPiece x
)

Y밀도

Attrs YDensity(
  int64 x
)