ঘোষণা :
15 এপ্রিল, 2025 এর আগে আর্থ ইঞ্জিন ব্যবহার করার জন্য নিবন্ধিত সমস্ত অবাণিজ্যিক প্রকল্পগুলিকে অবশ্যই আর্থ ইঞ্জিন অ্যাক্সেস বজায় রাখার জন্য
অ-বাণিজ্যিক যোগ্যতা যাচাই করতে হবে।
ee.Image.firstNonZero
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
প্রথম মানটি নির্বাচন করে যদি এটি অ-শূন্য হয়, এবং দ্বিতীয় মানটি অন্যথায় image1 এবং image2 এর প্রতিটি মিলে যাওয়া জোড়া ব্যান্ডের জন্য। যদি image1 বা image2 এর শুধুমাত্র 1 ব্যান্ড থাকে, তাহলে এটি অন্য চিত্রের সমস্ত ব্যান্ডের বিরুদ্ধে ব্যবহার করা হয়। যদি চিত্রগুলিতে একই সংখ্যক ব্যান্ড থাকে, কিন্তু একই নাম না হয়, তবে সেগুলি প্রাকৃতিক ক্রমে জোড়া ব্যবহার করা হয়। আউটপুট ব্যান্ড দুটি ইনপুটের দীর্ঘ সময়ের জন্য নামকরণ করা হয়, অথবা যদি তারা দৈর্ঘ্যে সমান হয়, তাহলে image1 এর ক্রম অনুসারে। আউটপুট পিক্সেলের ধরন হল ইনপুট প্রকারের মিলন।
ব্যবহার | রিটার্নস | Image. firstNonZero (image2) | ছবি |
যুক্তি | টাইপ | বিস্তারিত | এই: image1 | ছবি | যে ছবিটি থেকে বাম অপারেন্ড ব্যান্ডগুলি নেওয়া হয়েছে৷ |
image2 | ছবি | যে ছবিটি থেকে সঠিক অপারেন্ড ব্যান্ডগুলি নেওয়া হয়েছে৷ |
,প্রথম মানটি নির্বাচন করে যদি এটি অ-শূন্য হয়, এবং দ্বিতীয় মানটি অন্যথায় image1 এবং image2 এর প্রতিটি মিলে যাওয়া জোড়া ব্যান্ডের জন্য। যদি image1 বা image2 এর শুধুমাত্র 1 ব্যান্ড থাকে, তাহলে এটি অন্য চিত্রের সমস্ত ব্যান্ডের বিরুদ্ধে ব্যবহার করা হয়। যদি চিত্রগুলিতে একই সংখ্যক ব্যান্ড থাকে, কিন্তু একই নাম না হয়, তবে সেগুলি প্রাকৃতিক ক্রমে জোড়া ব্যবহার করা হয়। আউটপুট ব্যান্ড দুটি ইনপুটের দীর্ঘ সময়ের জন্য নামকরণ করা হয়, অথবা যদি তারা দৈর্ঘ্যে সমান হয়, তাহলে image1 এর ক্রম অনুসারে। আউটপুট পিক্সেলের ধরন হল ইনপুট প্রকারের মিলন।
ব্যবহার | রিটার্নস | Image. firstNonZero (image2) | ছবি |
যুক্তি | টাইপ | বিস্তারিত | এই: image1 | ছবি | যে ছবিটি থেকে বাম অপারেন্ড ব্যান্ডগুলি নেওয়া হয়েছে৷ |
image2 | ছবি | যে ছবিটি থেকে সঠিক অপারেন্ড ব্যান্ডগুলি নেওয়া হয়েছে৷ |
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট 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\u003eSelects the first image's band value if non-zero, otherwise selects the second image's band value, comparing bands pairwise.\u003c/p\u003e\n"],["\u003cp\u003eIf one image has a single band, it's compared against all bands of the other image.\u003c/p\u003e\n"],["\u003cp\u003eOutput bands are named using the longer image's band names, or the first image's if band counts are equal.\u003c/p\u003e\n"],["\u003cp\u003eOutput pixel type is determined by combining the input pixel types to accommodate all possible values.\u003c/p\u003e\n"]]],["The operation compares paired bands from two images, `image1` and `image2`. For each pair, it selects the first non-zero value. If one image has a single band, that band is used against all bands of the other. If band names differ but counts match, they are matched in order. Output bands are named after the longer input or `image1` if lengths are equal, with the output pixel type being a union of input types. The operation returns an `Image`.\n"],null,["# ee.Image.firstNonZero\n\nSelects the first value if it is non-zero, and the second value otherwise for each matched pair of bands in image1 and image2. If either image1 or image2 has only 1 band, then it is used against all the bands in the other image. If the images have the same number of bands, but not the same names, they're used pairwise in the natural order. The output bands are named for the longer of the two inputs, or if they're equal in length, in image1's order. The type of the output pixels is the union of the input types.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|------------------------------|---------|\n| Image.firstNonZero`(image2)` | Image |\n\n| Argument | Type | Details |\n|----------------|-------|---------------------------------------------------------|\n| this: `image1` | Image | The image from which the left operand bands are taken. |\n| `image2` | Image | The image from which the right operand bands are taken. |"]]