Irregular Land Area from Image (irg_landimg)
Calculate the irregular land area from an image in pixel units. Get image size and land area percentage.
Irregular Land Area from Image
Purpose
The purpose of this function is to calculate the area of irregular land from an image provided by the user.
Use Cases
This function can be used when you have an image of a piece of land with irregular shape and you want to calculate its area.
How to Use
- Upload an image of the land.
- Click on the "Calculate" button.
- The function will process the image and return the calculated land area.
Input Values
- Land Image: Upload an image of the land.
Output Values
- Image Size: The size of the uploaded image in pixels.
- Land Area: The calculated area of the irregular land in percentage.
- Land Image: The uploaded image.
Any other Instruction
Ensure that the uploaded image is clear and properly captures the boundaries of the land.
Code Analysis
- Read the uploaded image.
- Convert the image to black and white.
- Calculate the area of the land based on the black and white pixels.
- Calculate the percentage of the land area.
- Return the image size, land area, and the land image.
Technical Parameters
land_image
Return Values
Image Size, Land Area, Land Image
Example Expressions
You can use the following expressions to directly evaluate in a non-interactive manner using eva():
irg_landimg(land_image=image1)
irg_landimg(land_image=image2)
Click on Help icon to open the help page on a separate window.