공지사항:
2025년 4월 15일 전에 Earth Engine 사용을 위해 등록된 모든 비상업용 프로젝트는 Earth Engine 액세스를 유지하기 위해
비상업용 자격 요건을 인증해야 합니다.
ee.Image.displacement
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
로컬 고무 시트 변형을 허용하면서 이미지를 참조 이미지에 등록하는 데 필요한 변위를 결정합니다. 변위는 입력 이미지 투영, 참조 이미지 투영, 요청된 투영의 세 가지 투영 중 가장 낮은 해상도에 따라 참조 이미지의 CRS에서 계산됩니다. 그런 다음 변위가 출력용으로 사용자 지정 투영으로 변환됩니다.
사용 | 반환 값 |
---|
Image.displacement(referenceImage, maxOffset, projection, patchWidth, stiffness) | 이미지 |
인수 | 유형 | 세부정보 |
---|
다음과 같은 경우: image | 이미지 | 등록할 이미지입니다. |
referenceImage | 이미지 | 등록할 이미지입니다. |
maxOffset | 부동 소수점 수 | 입력 이미지를 정렬하려고 할 때 허용되는 최대 오프셋(단위: 미터)입니다. 더 작은 값을 사용하면 계산 시간을 크게 줄일 수 있지만 전체 이미지 영역 내에서 가장 큰 변위를 포함할 수 있을 만큼 커야 합니다. |
projection | 예상, 기본값: null | 변위 값을 출력할 투영입니다. 기본값은 참조 이미지의 첫 번째 밴드의 투영입니다. |
patchWidth | 부동 소수점 수, 기본값: null | 이미지 오프셋 감지를 위한 패치 크기(미터)입니다. 텍스처를 캡처할 수 있을 만큼 커야 하며 무시할 수 있는 객체가 패치 내에서 작을 만큼 커야 합니다. 기본값은 null입니다. 제공되지 않으면 패치 크기가 자동으로 결정됩니다. |
stiffness | 부동 소수점 수, 기본값: 5 | 솔루션에 강성 제약 조건을 적용합니다. 유효한 값은 [0,10] 범위에 있습니다. 강성은 인접한 그리드 포인트에서 변위를 결정할 때 이상치 거부에 사용됩니다. 값이 클수록 솔루션이 강체 변환에 가까워집니다. 값이 낮을수록 등록 중에 이미지의 왜곡이나 휘어짐이 더 많이 허용됩니다. |
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-26(UTC)
[null,null,["최종 업데이트: 2025-07-26(UTC)"],[[["\u003cp\u003eThis method calculates the displacements needed to align an image with a reference image, allowing for localized, flexible deformations.\u003c/p\u003e\n"],["\u003cp\u003eDisplacements are determined in the reference image's coordinate system and at a resolution based on the input, reference, and requested projections.\u003c/p\u003e\n"],["\u003cp\u003eUsers can specify a maximum offset for alignment, a projection for outputting displacements, a patch size for offset detection, and a stiffness parameter to control deformation.\u003c/p\u003e\n"],["\u003cp\u003eThe output is an image containing the calculated displacement values, which can be used to warp or transform the input image to match the reference image.\u003c/p\u003e\n"],["\u003cp\u003eUsing a smaller \u003ccode\u003emaxOffset\u003c/code\u003e value can speed up computation but must be sufficient to cover the largest displacement within the image.\u003c/p\u003e\n"]]],[],null,["# ee.Image.displacement\n\nDetermines displacements required to register an image to a reference image while allowing local, rubber sheet deformations. Displacements are computed in the CRS of the reference image, at a scale dictated by the lowest resolution of the following three projections: input image projection, reference image projection, and requested projection. The displacements are then transformed into the user-specified projection for output.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|--------------------------------------------------------------------------------------------------|---------|\n| Image.displacement`(referenceImage, maxOffset, `*projection* `, `*patchWidth* `, `*stiffness*`)` | Image |\n\n| Argument | Type | Details |\n|------------------|---------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| this: `image` | Image | The image to register. |\n| `referenceImage` | Image | The image to register to. |\n| `maxOffset` | Float | The maximum offset allowed when attempting to align the input images, in meters. Using a smaller value can reduce computation time significantly, but it must still be large enough to cover the greatest displacement within the entire image region. |\n| `projection` | Projection, default: null | The projection in which to output displacement values. The default is the projection of the first band of the reference image. |\n| `patchWidth` | Float, default: null | Patch size for detecting image offsets, in meters. This should be set large enough to capture texture, as well as large enough that ignorable objects are small within the patch. Default is null. Patch size will be determined automatically if not provided. |\n| `stiffness` | Float, default: 5 | Enforces a stiffness constraint on the solution. Valid values are in the range \\[0,10\\]. The stiffness is used for outlier rejection when determining displacements at adjacent grid points. Higher values move the solution towards a rigid transformation. Lower values allow more distortion or warping of the image during registration. |"]]