tensorflow :: ops :: DecodeAndCropJpeg
#include <image_ops.h>
JPEG로 인코딩 된 이미지를 uint8 텐서로 디코딩하고 자릅니다.
요약
attr channels
은 디코딩 된 이미지에 대해 원하는 색상 채널 수를 나타냅니다.
허용되는 값은 다음과 같습니다.
- 0 : JPEG 인코딩 된 이미지의 채널 수를 사용합니다.
- 1 : 회색조 이미지를 출력합니다.
- 3 : RGB 이미지를 출력합니다.
필요한 경우 JPEG로 인코딩 된 이미지가 요청 된 색상 채널 수와 일치하도록 변환됩니다.
attr ratio
사용하면 디코딩 중에 정수 요소로 이미지를 축소 할 수 있습니다. 허용되는 값은 1, 2, 4 및 8입니다. 이것은 나중에 이미지를 축소하는 것보다 훨씬 빠릅니다.
디코딩 및 자르기의 조합과 동일하지만 부분 jpeg 이미지 만 디코딩하면 훨씬 빠릅니다.
인수 :
- 범위 : 범위 개체
- 내용 : 0-D. JPEG로 인코딩 된 이미지입니다.
- crop_window : 1-D. 자르기 창 : [crop_y, crop_x, crop_height, crop_width].
선택적 속성 ( Attrs
참조) :
- 채널 : 디코딩 된 이미지의 색상 채널 수입니다.
- 비율 : 축소 비율.
- fancy_upscaling : true 인 경우 크로마 플레인의 더 느리지 만 더 좋은 업 스케일링을 사용합니다 (yuv420 / 422 만 해당).
- try_recover_truncated : true 인 경우 잘린 입력에서 이미지 복구를 시도합니다.
- ceptable_fraction : 잘린 입력이 허용되기 전에 필요한 최소 라인 비율.
- dct_method : 압축 해제에 사용되는 알고리즘에 대한 힌트를 지정하는 문자열입니다. 기본값은 시스템 별 기본값에 매핑되는 ""입니다. 현재 유효한 값은 [ "INTEGER_FAST", "INTEGER_ACCURATE"]입니다. 힌트는 무시 될 수 있습니다 (예 : 내부 jpeg 라이브러리가 특정 옵션이없는 버전으로 변경됨).
보고:
-
Output
: 3D 모양[height, width, channels]
..
생성자와 소멸자 | |
---|---|
DecodeAndCropJpeg (const :: tensorflow::Scope & scope, :: tensorflow::Input contents, :: tensorflow::Input crop_window) | |
DecodeAndCropJpeg (const :: tensorflow::Scope & scope, :: tensorflow::Input contents, :: tensorflow::Input crop_window, const DecodeAndCropJpeg::Attrs & attrs) |
공용 속성 | |
---|---|
image | |
operation |
공공 기능 | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
공개 정적 함수 | |
---|---|
AcceptableFraction (float x) | |
Channels (int64 x) | |
DctMethod (StringPiece x) | |
FancyUpscaling (bool x) | |
Ratio (int64 x) | |
TryRecoverTruncated (bool x) |
구조체 | |
---|---|
tensorflow :: ops :: DecodeAndCropJpeg :: Attrs | DecodeAndCropJpeg에 대한 선택적 속성 설정자. |
공용 속성
영상
::tensorflow::Output image
조작
Operation operation
공공 기능
DecodeAndCropJpeg
DecodeAndCropJpeg( const ::tensorflow::Scope & scope, ::tensorflow::Input contents, ::tensorflow::Input crop_window )
DecodeAndCropJpeg
DecodeAndCropJpeg( const ::tensorflow::Scope & scope, ::tensorflow::Input contents, ::tensorflow::Input crop_window, const DecodeAndCropJpeg::Attrs & attrs )
마디
::tensorflow::Node * node() const
연산자 :: tensorflow :: 입력
operator::tensorflow::Input() const
연산자 :: tensorflow :: 출력
operator::tensorflow::Output() const
공개 정적 함수
AcceptableFraction
Attrs AcceptableFraction( float x )
채널
Attrs Channels( int64 x )
DctMethod
Attrs DctMethod( StringPiece x )
FancyUpscaling
Attrs FancyUpscaling( bool x )
비율
Attrs Ratio( int64 x )
TryRecoverTruncated
Attrs TryRecoverTruncated( bool x )