お知らせ:
2025 年 4 月 15 日より前に Earth Engine の使用を登録したすべての非商用プロジェクトは、Earth Engine へのアクセスを維持するために
非商用目的での利用資格を確認する必要があります。
ee.Algorithms.CannyEdgeDetector
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
: 画像に Canny エッジ検出アルゴリズムを適用します。出力は、バンドの名前が入力バンドと同じで、ゼロ以外の値がエッジを示し、値の大きさがグラデーションの大きさを示す画像です。
用途 | 戻り値 |
---|
ee.Algorithms.CannyEdgeDetector(image, threshold, sigma) | 画像 |
引数 | タイプ | 詳細 |
---|
image | 画像 | エッジ検出を適用する画像。 |
threshold | 浮動小数点数 | しきい値。グラデーションの大きさがこのしきい値を超えている場合にのみ、ピクセルはエッジ検出の対象と見なされます。 |
sigma | 浮動小数点数、デフォルト: 1 | エッジ検出の前に適用されるガウス フィルタのシグマ値。0 はフィルタリングを適用しないことを意味します。 |
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-26 UTC。
[null,null,["最終更新日 2025-07-26 UTC。"],[[["\u003cp\u003eIdentifies edges within an image by calculating gradient magnitude and applying a threshold.\u003c/p\u003e\n"],["\u003cp\u003eReturns an image where non-zero values represent edges, and the magnitude of the value corresponds to the gradient magnitude.\u003c/p\u003e\n"],["\u003cp\u003eOffers customization options through a threshold for gradient magnitude and a sigma value for pre-filtering.\u003c/p\u003e\n"]]],[],null,["# ee.Algorithms.CannyEdgeDetector\n\nApplies the Canny edge detection algorithm to an image. The output is an image whose bands have the same names as the input bands, and in which non-zero values indicate edges, and the magnitude of the value is the gradient magnitude.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|----------------------------------------------------------------|---------|\n| `ee.Algorithms.CannyEdgeDetector(image, threshold, `*sigma*`)` | Image |\n\n| Argument | Type | Details |\n|-------------|-------------------|---------------------------------------------------------------------------------------------------------------------------|\n| `image` | Image | The image on which to apply edge detection. |\n| `threshold` | Float | Threshold value. The pixel is only considered for edge detection if the gradient magnitude is higher than this threshold. |\n| `sigma` | Float, default: 1 | Sigma value for a gaussian filter applied before edge detection. 0 means apply no filtering. |"]]