Giter VIP home page Giter VIP logo

peakfind's Introduction

peakfind

Finds peaks in 3d slices of 4d images. Adapted from peak_4dfp by Avi
Snyder and peak_nii by Tony Wilson.

Copyright (c) 2012 Washington University
Author: Kevin A. Archie <[email protected]>

All Fortran subroutines in the package were written by Avi Snyder.

This package produces two MATLAB functions (as mex files):

------------------------------------------------------------

[peaks, roi] = peakfind(image, mmppixr, centerr, orad, mask, ...)

Produces a list of peaks and an ROI mask image.

image : single-precision 3D image data in which peaks will be identified
mmppixr : single-precision 3-vector of voxel dimensions in mm
centerr : single-precision 3-vector atlas space offset of image
orad : radius of peak ROIs, in mm
mask : mask applied before producing ROI

optional arguments can be specified like this:

[p, r] = peakfind(i, m, c, o, mask, 'vtpos', 0.5, 'vtneg', 0.1);

valid optional arguments are:

vtpos : positive threshold peak value (default 0)
vtneg : negative threshold peak value (default 0)
ntop : maximum number of output peaks (default 1000)
minvox : minimum output ROI voxel count (default 1)
dthresh : maximum distance for merging peaks (default 0)
ctpos : peak curvature threshold for positive peaks (default 0)
ctneg : peak curvature threshold for negative peaks (default 0)

return values are:

peaks: array of peak structures; each peak structure contains fields:
  i : floating point index (i,j,k) of peak center (rederived from x)
  x : floating point location (x,y,z) of peak center in atlas space
  v : value at peak center
  del2v : Laplacian at peak center
  weight : number of peaks consolidated into this peak
  voxels : size of this peak's ROI sphere, in voxels

------------------------------------------------------------

blurimg = sphereblur(image, mmppixr, radius)

Blurs the provided image by convolving with a spherical kernel of
specified radius.

image : single-precision 3D image to be blurred
mmppixr : single-precision 3-vector of voxel dimensions in mm
radius : sphere radius, in mm

peakfind's People

Contributors

karchie avatar

Stargazers

 avatar  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.