Git Product home page Git Product logo

neurogen's Introduction

neurogen

An R package for creating generative art using Brain Imaging Data.

The neurogen package was born from a collaboration with brothers Daniel and Tyler Wishard, UCLA for a proposal at the 2022 Organization of Human Brain Mapping in Glasgow, Scotland - which is titled "Neuro-Fungible Tokens". Proceeds from the sale of any NFT's will be donated to organizations conducting neurological disease research.

Tyler is a Ph.D. candidate in the Neuroscience Interdisciplinary Program at UCLA whose work focuses on multimodal MRI to determine neuroimaging-based markers of age-related memory decline and optimize non-invasive neuromodulation to improve older adults' cognitive outcomes.

All example image data provided in package was produced using a 7-tesla MRI of Tyler Wishard's brain, aka 'Ty's Brain' and can be found in inst/data.


Installation

devtools::install_github("jameswcraig/neurogen")

Usage

library(neurogen)

# Get Ty's brain...
nii_path <- system.file(package = "neurogen", "data", "Ty_brain.nii.gz")

Brain Infuse

Infuse selected color palette into greyscale image.

brain_infuse(file = nii_path,
             color_palette = RColorBrewer::brewer.pal(name = "Set3", n = 8),
             infuse_rate = 0.9,
             trim_start = 0.31,
             trim_end = 0.08)

Brain Warp

Add a color warp to brain image.

brain_warp(file = nii_path,
           color_palette = RColorBrewer::brewer.pal(name = "Set3", n = 8),
           trim_start = 0.31,
           trim_end = 0.08)


brain_warp(file = nii_path,
           color_palette = RColorBrewer::brewer.pal(name = "PuBuGn", n = 9),
           color_background = "#FAF9F6",
           trim_start = 0.31,
           trim_end = 0.08)

brain_warp(file = nii_path,
           color_palette = c("#F8B195", "#F67280", "#C06C84", "#6C5B7B"),
           color_background = "#355C7D",
           trim_start = 0.31,
           trim_end = 0.08)

Brain Contour

Add contour color into greyscale image.

brain_contour(file = nii_path,
             color_palette = RColorBrewer::brewer.pal(name = "Set2", n = 8),
             color_background = "#FFFFFF",
             trim_start = 0.31,
             trim_end = 0.08)

neurogen's People

Contributors

jameswcraig avatar

Stargazers

 avatar

Watchers

 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.