ঘোষণা :
15 এপ্রিল, 2025 এর আগে আর্থ ইঞ্জিন ব্যবহার করার জন্য নিবন্ধিত সমস্ত অবাণিজ্যিক প্রকল্পগুলিকে অবশ্যই আর্থ ইঞ্জিন অ্যাক্সেস বজায় রাখার জন্য
অ-বাণিজ্যিক যোগ্যতা যাচাই করতে হবে।
ee.Image.where
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
মানগুলির শর্তসাপেক্ষ প্রতিস্থাপন করে।
'ইনপুট'-এর প্রতিটি ব্যান্ডের প্রতিটি পিক্সেলের জন্য, যদি 'টেস্ট'-এ সংশ্লিষ্ট পিক্সেলটি অশূন্য হয়, তাহলে সংশ্লিষ্ট পিক্সেলটিকে মান দিয়ে আউটপুট করুন, অন্যথায় ইনপুট পিক্সেলটি আউটপুট করুন।
যদি একটি প্রদত্ত পিক্সেলে, হয় পরীক্ষা বা মান মাস্ক করা হয়, ইনপুট মান ব্যবহার করা হয়। ইনপুট মাস্ক করা হলে, কিছুই করা হয় না.
আউটপুট ব্যান্ডগুলির ইনপুট ব্যান্ডগুলির মতো একই নাম রয়েছে। প্রতিটি ব্যান্ডের আউটপুট প্রকার ইনপুট এবং মান প্রকারের চেয়ে বড়। আউটপুট ইমেজ ইনপুট ইমেজের মেটাডেটা এবং পদচিহ্ন ধরে রাখে।
ব্যবহার | রিটার্নস | Image. where (test, value) | ছবি |
যুক্তি | টাইপ | বিস্তারিত | এই: input | ছবি | ইনপুট ইমেজ. |
test | ছবি | পরীক্ষার চিত্র। এই চিত্রের পিক্সেলগুলি নির্ধারণ করে যে কোন ইনপুট পিক্সেলটি ফেরত দেওয়া হবে। যদি এটি একটি একক ব্যান্ড হয় তবে এটি ইনপুট চিত্রের সমস্ত ব্যান্ডের জন্য ব্যবহৃত হয়। এটি একটি অ্যারে ইমেজ নাও হতে পারে. |
value | ছবি | আউটপুট মান যেখানে পরীক্ষা শূন্য নয় সেখানে ব্যবহার করা হবে। যদি এটি একটি একক ব্যান্ড হয় তবে এটি ইনপুট চিত্রের সমস্ত ব্যান্ডের জন্য ব্যবহৃত হয়। |
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট 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\u003eReplaces input image pixel values with values from a secondary image based on a test image's pixel values.\u003c/p\u003e\n"],["\u003cp\u003eIf the test image pixel is non-zero, the corresponding pixel from the value image is used; otherwise, the original input pixel is retained.\u003c/p\u003e\n"],["\u003cp\u003eInput image metadata and footprint are preserved in the output image.\u003c/p\u003e\n"],["\u003cp\u003eOutput image band types are determined by the larger type between the input and value images.\u003c/p\u003e\n"],["\u003cp\u003eMasked pixels in either test or value images result in the original input pixel being used in the output.\u003c/p\u003e\n"]]],[],null,["# ee.Image.where\n\nPerforms conditional replacement of values.\n\n\u003cbr /\u003e\n\nFor each pixel in each band of 'input', if the corresponding pixel in 'test' is nonzero, output the corresponding pixel in value, otherwise output the input pixel.\n\nIf at a given pixel, either test or value is masked, the input value is used. If the input is masked, nothing is done.\n\nThe output bands have the same names as the input bands. The output type of each band is the larger of the input and value types. The output image retains the metadata and footprint of the input image.\n\n| Usage | Returns |\n|----------------------------|---------|\n| Image.where`(test, value)` | Image |\n\n| Argument | Type | Details |\n|---------------|-------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| this: `input` | Image | The input image. |\n| `test` | Image | The test image. The pixels of this image determines which of the input pixels is returned. If this is a single band, it is used for all bands in the input image. This may not be an array image. |\n| `value` | Image | The output value to use where test is not zero. If this is a single band, it is used for all bands in the input image. |"]]