컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
텐서플로우:: 작전:: 크기 조정바이큐빅
#include <image_ops.h>
쌍입방 보간을 사용하여 images
size
조정합니다.
요약
입력 이미지는 다양한 유형일 수 있지만 출력 이미지는 항상 부동입니다.
인수:
- 범위: 범위 개체
- 이미지:
[batch, height, width, channels]
모양의 4D. - size: = 2개 요소로 구성된 1차원 int32 텐서 :
new_height, new_width
. 이미지의 새로운 크기입니다.
선택적 속성( Attrs
참조):
- align_corners: true인 경우 입력 및 출력 텐서의 4개 모서리 픽셀의 중심이 정렬되어 모서리 픽셀의 값이 유지됩니다. 기본값은 거짓입니다.
보고:
-
Output
: [batch, new_height, new_width, channels]
모양의 4D.
공개 속성
공공 기능
마디
::tensorflow::Node * node() const
operator::tensorflow::Input() const
연산자::텐서플로우::출력
operator::tensorflow::Output() const
공개 정적 함수
모서리 정렬
Attrs AlignCorners(
bool x
)
HalfPixelCenter
Attrs HalfPixelCenters(
bool x
)
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-26(UTC)
[null,null,["최종 업데이트: 2025-07-26(UTC)"],[],[],null,["# tensorflow::ops::ResizeBicubic Class Reference\n\ntensorflow::ops::ResizeBicubic\n==============================\n\n`#include \u003cimage_ops.h\u003e`\n\nResize `images` to `size` using bicubic interpolation.\n\nSummary\n-------\n\n[Input](/versions/r2.2/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input) images can be of different types but output images are always float.\n\nArguments:\n\n- scope: A [Scope](/versions/r2.2/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object\n- images: 4-D with shape `[batch, height, width, channels]`.\n- size: = A 1-D int32 [Tensor](/versions/r2.2/api_docs/cc/class/tensorflow/tensor#classtensorflow_1_1_tensor) of 2 elements: `new_height, new_width`. The new size for the images.\n\n\u003cbr /\u003e\n\nOptional attributes (see [Attrs](/versions/r2.2/api_docs/cc/struct/tensorflow/ops/resize-bicubic/attrs#structtensorflow_1_1ops_1_1_resize_bicubic_1_1_attrs)):\n\n- align_corners: If true, the centers of the 4 corner pixels of the input and output tensors are aligned, preserving the values at the corner pixels. Defaults to false.\n\n\u003cbr /\u003e\n\nReturns:\n\n- [Output](/versions/r2.2/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output): 4-D with shape `[batch, new_height, new_width, channels]`.\n\n\u003cbr /\u003e\n\n| ### Constructors and Destructors ||\n|---|---|\n| [ResizeBicubic](#classtensorflow_1_1ops_1_1_resize_bicubic_1a096d544f83cc6f082255083cb48d02fe)`(const ::`[tensorflow::Scope](/versions/r2.2/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r2.2/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` images, ::`[tensorflow::Input](/versions/r2.2/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` size)` ||\n| [ResizeBicubic](#classtensorflow_1_1ops_1_1_resize_bicubic_1a9ab221a334d2ffb94c5adf308f8b6bfd)`(const ::`[tensorflow::Scope](/versions/r2.2/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r2.2/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` images, ::`[tensorflow::Input](/versions/r2.2/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` size, const `[ResizeBicubic::Attrs](/versions/r2.2/api_docs/cc/struct/tensorflow/ops/resize-bicubic/attrs#structtensorflow_1_1ops_1_1_resize_bicubic_1_1_attrs)` & attrs)` ||\n\n| ### Public attributes ||\n|-------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------|\n| [operation](#classtensorflow_1_1ops_1_1_resize_bicubic_1a843ff0ef59ba5d108883bc783791dc13) | [Operation](/versions/r2.2/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n| [resized_images](#classtensorflow_1_1ops_1_1_resize_bicubic_1abacd676e0eccfa1ed35dce58f9b1baea) | `::`[tensorflow::Output](/versions/r2.2/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\n\n| ### Public functions ||\n|--------------------------------------------------------------------------------------------------------------------------|------------------------|\n| [node](#classtensorflow_1_1ops_1_1_resize_bicubic_1a53f33ac8a7c45193dc998500b92f8b39)`() const ` | `::tensorflow::Node *` |\n| [operator::tensorflow::Input](#classtensorflow_1_1ops_1_1_resize_bicubic_1ab5a27bb0ada787a04cba91cf8511ce13)`() const ` | ` ` ` ` |\n| [operator::tensorflow::Output](#classtensorflow_1_1ops_1_1_resize_bicubic_1a31ee74b6628f0dfd0a3721d7f306d5a7)`() const ` | ` ` ` ` |\n\n| ### Public static functions ||\n|-------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------|\n| [AlignCorners](#classtensorflow_1_1ops_1_1_resize_bicubic_1af6ac21d35f211eaeff6d5eb37dc3f9ba)`(bool x)` | [Attrs](/versions/r2.2/api_docs/cc/struct/tensorflow/ops/resize-bicubic/attrs#structtensorflow_1_1ops_1_1_resize_bicubic_1_1_attrs) |\n| [HalfPixelCenters](#classtensorflow_1_1ops_1_1_resize_bicubic_1ab7631fc0294bef994e8a9b00b8137849)`(bool x)` | [Attrs](/versions/r2.2/api_docs/cc/struct/tensorflow/ops/resize-bicubic/attrs#structtensorflow_1_1ops_1_1_resize_bicubic_1_1_attrs) |\n\n| ### Structs ||\n|----------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [tensorflow::ops::ResizeBicubic::Attrs](/versions/r2.2/api_docs/cc/struct/tensorflow/ops/resize-bicubic/attrs) | Optional attribute setters for [ResizeBicubic](/versions/r2.2/api_docs/cc/class/tensorflow/ops/resize-bicubic#classtensorflow_1_1ops_1_1_resize_bicubic). |\n\nPublic attributes\n-----------------\n\n### operation\n\n```text\nOperation operation\n``` \n\n### resized_images\n\n```scdoc\n::tensorflow::Output resized_images\n``` \n\nPublic functions\n----------------\n\n### ResizeBicubic\n\n```gdscript\n ResizeBicubic(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input images,\n ::tensorflow::Input size\n)\n``` \n\n### ResizeBicubic\n\n```gdscript\n ResizeBicubic(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input images,\n ::tensorflow::Input size,\n const ResizeBicubic::Attrs & attrs\n)\n``` \n\n### node\n\n```gdscript\n::tensorflow::Node * node() const \n``` \n\n### operator::tensorflow::Input\n\n```gdscript\n operator::tensorflow::Input() const \n``` \n\n### operator::tensorflow::Output\n\n```gdscript\n operator::tensorflow::Output() const \n``` \n\nPublic static functions\n-----------------------\n\n### AlignCorners\n\n```text\nAttrs AlignCorners(\n bool x\n)\n``` \n\n### HalfPixelCenters\n\n```text\nAttrs HalfPixelCenters(\n bool x\n)\n```"]]