ঘোষণা :
15 এপ্রিল, 2025 এর আগে আর্থ ইঞ্জিন ব্যবহার করার জন্য নিবন্ধিত সমস্ত অবাণিজ্যিক প্রকল্পগুলিকে অবশ্যই আর্থ ইঞ্জিন অ্যাক্সেস বজায় রাখার জন্য
অ-বাণিজ্যিক যোগ্যতা যাচাই করতে হবে।
ee.Image.spectralDistance
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
দুটি ছবির মধ্যে প্রতি-পিক্সেল বর্ণালী দূরত্ব গণনা করে। যদি চিত্রগুলি অ্যারে ভিত্তিক হয় তবে প্রতিটি চিত্রের প্রথম ব্যান্ডটি ব্যবহার করা হয়; অন্যথায় সমস্ত ব্যান্ড দূরত্ব গণনার সাথে জড়িত। তাই দুটি ছবিতে একই সংখ্যক ব্যান্ড থাকবে বা একই 1-মাত্রিক অ্যারে দৈর্ঘ্য থাকবে বলে আশা করা হচ্ছে।
ব্যবহার | রিটার্নস | Image. spectralDistance (image2, metric ) | ছবি |
যুক্তি | টাইপ | বিস্তারিত | এই: image1 | ছবি | প্রথম ছবি। |
image2 | ছবি | দ্বিতীয় চিত্র। |
metric | স্ট্রিং, ডিফল্ট: "স্যাম" | ব্যবহার করার জন্য বর্ণালী দূরত্ব মেট্রিক। 'স্যাম' (বর্ণালী কোণ ম্যাপার), 'সিড' (বর্ণালী তথ্য বিচ্যুতি), 'সেড' (বর্গীয় ইউক্লিডীয় দূরত্ব), বা 'এমডি' (আর্থ মুভার্স দূরত্ব) এর মধ্যে একটি। |
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-24 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-07-24 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003eComputes the spectral distance between two images on a per-pixel basis, considering either a single band or all bands depending on image type.\u003c/p\u003e\n"],["\u003cp\u003eImages must have the same number of bands or be 1-dimensional arrays of the same length.\u003c/p\u003e\n"],["\u003cp\u003eOffers various spectral distance metrics including SAM, SID, SED, and EMD, with SAM as the default.\u003c/p\u003e\n"],["\u003cp\u003eReturns a new image representing the calculated spectral distances.\u003c/p\u003e\n"],["\u003cp\u003eAccessible through the \u003ccode\u003espectralDistance()\u003c/code\u003e method applied to the first image, taking the second image and an optional metric as arguments.\u003c/p\u003e\n"]]],[],null,["# ee.Image.spectralDistance\n\nComputes the per-pixel spectral distance between two images. If the images are array based then only the first band of each image is used; otherwise all bands are involved in the distance computation. The two images are therefore expected to contain the same number of bands or have the same 1-dimensional array length.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|----------------------------------------------|---------|\n| Image.spectralDistance`(image2, `*metric*`)` | Image |\n\n| Argument | Type | Details |\n|----------------|------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| this: `image1` | Image | The first image. |\n| `image2` | Image | The second image. |\n| `metric` | String, default: \"sam\" | The spectral distance metric to use. One of 'sam' (spectral angle mapper), 'sid' (spectral information divergence), 'sed' (squared Euclidean distance), or 'emd' (earth movers distance). |"]]