सूचना: 15 अप्रैल, 2025 से पहले, Earth Engine का इस्तेमाल करने के लिए रजिस्टर किए गए सभी गैर-व्यावसायिक प्रोजेक्ट को, Earth Engine का ऐक्सेस बनाए रखने के लिए, गैर-व्यावसायिक इस्तेमाल की ज़रूरी शर्तों की पुष्टि करनी होगी.
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
यह फ़ंक्शन, एक जैसी शेप वाले पिक्सल वाली इमेज के ऐरे बैंड को नई शेप वाले ऐरे की इमेज में बदलता है. पिक्सल कई डाइमेंशन वाले हो सकते हैं.
इस्तेमाल
रिटर्न
Image.arrayReshape(lengths, dimensions)
इमेज
आर्ग्यूमेंट
टाइप
विवरण
यह: image
इमेज
ऐरे की इमेज, जिसे फिर से आकार देना है.
lengths
इमेज
एक बैंड वाली इमेज, जिसमें इनपुट इमेज के हर ऐक्सिस की नई लंबाई दी गई है. इसे पिक्सल के हिसाब से 1-डी ऐरे के तौर पर दिखाया गया है. हर शेप के ऐरे में, 'dimensions' की लंबाई की वैल्यू होनी चाहिए. अगर लंबाई में से कोई एक वैल्यू -1 है, तो उस ऐक्सिस के लिए लंबाई की वैल्यू इस तरह से कैलकुलेट की जाएगी कि कुल साइज़ एक जैसा रहे. खास तौर पर, [-1] शेप को 1-D में बदला जाता है. शेप के ज़्यादा से ज़्यादा एक कॉम्पोनेंट की वैल्यू -1 हो सकती है.
dimensions
पूर्णांक
आउटपुट ऐरे के सभी पिक्सल के साथ शेयर किए गए डाइमेंशन की संख्या.
[[["समझने में आसान है","easyToUnderstand","thumb-up"],["मेरी समस्या हल हो गई","solvedMyProblem","thumb-up"],["अन्य","otherUp","thumb-up"]],[["वह जानकारी मौजूद नहीं है जो मुझे चाहिए","missingTheInformationINeed","thumb-down"],["बहुत मुश्किल है / बहुत सारे चरण हैं","tooComplicatedTooManySteps","thumb-down"],["पुराना","outOfDate","thumb-down"],["अनुवाद से जुड़ी समस्या","translationIssue","thumb-down"],["सैंपल / कोड से जुड़ी समस्या","samplesCodeIssue","thumb-down"],["अन्य","otherDown","thumb-down"]],["आखिरी बार 2025-07-26 (UTC) को अपडेट किया गया."],[[["`Image.arrayReshape()` transforms images with array-shaped pixels into images with a new array shape, potentially changing the dimensionality of the pixels."],["It takes the original image, desired lengths for each axis of the new shape, and the total number of dimensions as input."],["You can specify `-1` for a dimension length to have Earth Engine automatically calculate it, ensuring the total number of elements remains constant."],["This function is useful for tasks like converting between 1D, 2D, or higher-dimensional array representations of data within an image."],["Examples demonstrate reshaping a 1D array into a 2D array, using `-1` for automatic dimension calculation, and flattening a 2D array back to 1D."]]],[]]