tensorflow::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
ดูข้อมูลเพิ่มเติมได้ ที่ http://en.wikipedia.org/wiki/Chroma_subsampling
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
หากเลือก 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_

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

ความหนาแน่น 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