রূপগত অপারেশন
আর্থ ইঞ্জিন Image
ক্লাসে ফোকাল অপারেশন, বিশেষত focalMax()
, focalMin()
, focalMedian()
এবং focalMode()
ইনস্ট্যান্স পদ্ধতি হিসাবে রূপগত ক্রিয়াকলাপ প্রয়োগ করে। (এগুলি আরও সাধারণ reduceNeighborhood()
এর জন্য শর্টকাট, যা একটি কার্নেলে পিক্সেলগুলিকে একটি সাংখ্যিক আউটপুট সহ যেকোনো রিডুসারে ইনপুট করতে পারে। আশেপাশের এলাকাগুলি হ্রাস করার বিষয়ে আরও তথ্যের জন্য এই পৃষ্ঠাটি দেখুন)। আকারগত অপারেটরগুলি ক্ষয়, প্রসারণ, খোলা এবং বন্ধ করার মতো ক্রিয়াকলাপ সম্পাদনের জন্য দরকারী। উদাহরণস্বরূপ, একটি খোলার অপারেশন করতে, focalMin()
এর পরে focalMax()
ব্যবহার করুন:
কোড এডিটর (জাভাস্ক্রিপ্ট)
// Load a Landsat 8 image, select the NIR band, threshold, display.
var image = ee.Image('LANDSAT/LC08/C02/T1_TOA/LC08_044034_20140318')
.select(4).gt(0.2);
Map.setCenter(-122.1899, 37.5010, 13);
Map.addLayer(image, {}, 'NIR threshold');
// Define a kernel.
var kernel = ee.Kernel.circle({radius: 1});
// Perform an erosion followed by a dilation, display.
var opened = image
.focalMin({kernel: kernel, iterations: 2})
.focalMax({kernel: kernel, iterations: 2});
Map.addLayer(opened, {}, 'opened');
মনে রাখবেন যে আগের উদাহরণে, একটি কার্নেল আর্গুমেন্ট morphological অপারেটরকে প্রদান করা হয়েছে। কার্নেলের অ-শূন্য উপাদান দ্বারা আচ্ছাদিত পিক্সেলগুলি গণনায় ব্যবহৃত হয়। পুনরাবৃত্তির যুক্তি নির্দেশ করে কতবার অপারেটর প্রয়োগ করতে হবে।
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-02-18 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-02-18 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["Earth Engine uses focal operations like `focalMax()`, `focalMin()`, `focalMedian()`, and `focalMode()` to implement morphological operations for image processing."],["Morphological operations, such as erosion, dilation, opening, and closing, can be performed using these focal operations to modify image structures."],["Users can define kernels to specify the shape and size of the neighborhood used in the operations and control the number of times the operation is applied with the iterations argument."],["An opening operation, for example, can be achieved by applying `focalMin()` followed by `focalMax()` with a defined kernel."]]],["Earth Engine's `Image` class provides `focalMax()`, `focalMin()`, `focalMedian()`, and `focalMode()` for morphological operations like erosion, dilation, opening, and closing. These operations use a kernel to define the neighborhood of pixels. For example, the opening operation is achieved by applying `focalMin()` then `focalMax()`. A kernel argument defines the area for computation, and the iterations argument specifies the number of operator applications. The provided code demonstrates the opening operation on a Landsat 8 image using a circular kernel.\n"]]