ঘোষণা :
15 এপ্রিল, 2025 এর আগে আর্থ ইঞ্জিন ব্যবহার করার জন্য নিবন্ধিত সমস্ত অবাণিজ্যিক প্রকল্পগুলিকে অবশ্যই আর্থ ইঞ্জিন অ্যাক্সেস বজায় রাখার জন্য
অ-বাণিজ্যিক যোগ্যতা যাচাই করতে হবে।
ee.Kernel.rectangle
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
একটি আয়তক্ষেত্রাকার-আকৃতির কার্নেল তৈরি করে।
ব্যবহার | রিটার্নস | ee.Kernel.rectangle(xRadius, yRadius, units , normalize , magnitude ) | কার্নেল |
যুক্তি | টাইপ | বিস্তারিত | xRadius | ভাসা | উৎপন্ন কার্নেলের অনুভূমিক ব্যাসার্ধ। |
yRadius | ভাসা | উৎপন্ন কার্নেলের উল্লম্ব ব্যাসার্ধ। |
units | স্ট্রিং, ডিফল্ট: "পিক্সেল" | কার্নেলের জন্য পরিমাপের সিস্টেম ("পিক্সেল" বা "মিটার")। কার্নেলটি মিটারে নির্দিষ্ট করা থাকলে, জুম-স্তর পরিবর্তন করা হলে এটির আকার পরিবর্তন হবে। |
normalize | বুলিয়ান, ডিফল্ট: সত্য | কার্নেলের মানগুলিকে 1 এ যোগ করার জন্য স্বাভাবিক করুন। |
magnitude | ফ্লোট, ডিফল্ট: 1 | এই পরিমাণ দ্বারা প্রতিটি মান স্কেল. |
উদাহরণ
কোড এডিটর (জাভাস্ক্রিপ্ট)
print('A rectangle kernel', ee.Kernel.rectangle({xRadius: 2, yRadius: 1}));
/**
* Output weights matrix (up to 1/1000 precision for brevity)
*
* [0.066, 0.066, 0.066, 0.066, 0.066]
* [0.066, 0.066, 0.066, 0.066, 0.066]
* [0.066, 0.066, 0.066, 0.066, 0.066]
*/
পাইথন সেটআপ
পাইথন এপিআই এবং ইন্টারেক্টিভ ডেভেলপমেন্টের জন্য geemap
ব্যবহার করার জন্য পাইথন এনভায়রনমেন্ট পৃষ্ঠাটি দেখুন।
import ee
import geemap.core as geemap
Colab (পাইথন)
from pprint import pprint
print('A rectangle kernel:')
pprint(ee.Kernel.rectangle(**{'xRadius': 2, 'yRadius': 1}).getInfo());
# Output weights matrix (up to 1/1000 precision for brevity)
# [0.066, 0.066, 0.066, 0.066, 0.066]
# [0.066, 0.066, 0.066, 0.066, 0.066]
# [0.066, 0.066, 0.066, 0.066, 0.066]
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট 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\u003eCreates a rectangular-shaped kernel for image processing.\u003c/p\u003e\n"],["\u003cp\u003eDefines the kernel's dimensions using horizontal (\u003ccode\u003exRadius\u003c/code\u003e) and vertical (\u003ccode\u003eyRadius\u003c/code\u003e) radii.\u003c/p\u003e\n"],["\u003cp\u003eAllows for specifying the kernel's units as either "pixels" or "meters", with "pixels" being the default.\u003c/p\u003e\n"],["\u003cp\u003eOptionally normalizes the kernel's weights to sum to 1 and scales the values using \u003ccode\u003emagnitude\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eCan be utilized in both JavaScript and Python environments for Earth Engine applications.\u003c/p\u003e\n"]]],[],null,["# ee.Kernel.rectangle\n\nGenerates a rectangular-shaped kernel.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|------------------------------------------------------------------------------------|---------|\n| `ee.Kernel.rectangle(xRadius, yRadius, `*units* `, `*normalize* `, `*magnitude*`)` | Kernel |\n\n| Argument | Type | Details |\n|-------------|---------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `xRadius` | Float | The horizontal radius of the kernel to generate. |\n| `yRadius` | Float | The vertical radius of the kernel to generate. |\n| `units` | String, default: \"pixels\" | The system of measurement for the kernel (\"pixels\" or \"meters\"). If the kernel is specified in meters, it will resize when the zoom-level is changed. |\n| `normalize` | Boolean, default: true | Normalize the kernel values to sum to 1. |\n| `magnitude` | Float, default: 1 | Scale each value by this amount. |\n\nExamples\n--------\n\n### Code Editor (JavaScript)\n\n```javascript\nprint('A rectangle kernel', ee.Kernel.rectangle({xRadius: 2, yRadius: 1}));\n\n/**\n * Output weights matrix (up to 1/1000 precision for brevity)\n *\n * [0.066, 0.066, 0.066, 0.066, 0.066]\n * [0.066, 0.066, 0.066, 0.066, 0.066]\n * [0.066, 0.066, 0.066, 0.066, 0.066]\n */\n```\nPython setup\n\nSee the [Python Environment](/earth-engine/guides/python_install) page for information on the Python API and using\n`geemap` for interactive development. \n\n```python\nimport ee\nimport geemap.core as geemap\n```\n\n### Colab (Python)\n\n```python\nfrom pprint import pprint\n\nprint('A rectangle kernel:')\npprint(ee.Kernel.rectangle(**{'xRadius': 2, 'yRadius': 1}).getInfo());\n\n# Output weights matrix (up to 1/1000 precision for brevity)\n\n# [0.066, 0.066, 0.066, 0.066, 0.066]\n# [0.066, 0.066, 0.066, 0.066, 0.066]\n# [0.066, 0.066, 0.066, 0.066, 0.066]\n```"]]