Giter Club home page Giter Club logo

spherical-pano-update's Introduction

Updated scripts for converting smartphone spherical panoramas into hemispherical images

This repo contains scripts to process smartphone spherical panoramas into upward facing hemispherical images for estimating forest canopy metrics.

This repo is an update to my earlier analysis pipeline from Arietta, A.Z.A. (2021) Estimation of forest canopy structure and understory light using spherical panorama images from smartphone photography. Forestry. DOI: 10.1093/forestry/cpab034 to process smartphone spherical panoramas into upward facing hemispherical images for estimating forest canopy metrics.

Vingette

The easiest way to convert all of your spherical panos to hemispherical projections is to source the function from my github:

source("https://raw.githubusercontent.com/andisa01/Spherical-Pano-UPDATE/main/Spheres_to_Hemis.R")

When you source the script, it will install and load all necessary packages. It also downloads the masking file that we will use to black out the periphery of the images.

The script contains the function convert_spheres_to_hemis(), which does exactly what is says. You'll need to put all of your raw spherical panos into a subdirectory within your working directory. We can then pass the path to the directory as an argument to the function.

convert_spheres_to_hemis(focal_path = "./raw_panos/")

This function will loop through all of your raw panos, convert them to masked, north-oriented upward-facing hemispherical images and put them all in a folder called "masked_hemispheres" in your working directory. It will also output a csv file called "canopy_output.csv" that contains information about the image.

Please see my blog post for a detailed walk-though of how the function works.

Example a spherical panorama that has been converted into a masked hemispherical projection.

Please take a look at my other blog posts that detail:

Tips for taking better spherical panorama images

Using spherical panoramas form smartphones

Analyzing hemispherical photos

Hemispherical light estimates

Taking traditional hemispherical canopy photos

Hardware for traditional hemispherical photos

spherical-pano-update's People

Contributors

andisa01 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.