Code Monkey home page Code Monkey logo

ims_reader's Introduction

ims_reader

reads image data, spot locations, and surface locations from imaris files

Usage:

initialize object

filename = 'file.ims' x = ims_read(filename)

read in image info from the ims file (dimensions, number of channels, pixel size, ...)

x.get_dataset_info()

read surface area for all surfaces (or certain surfaces of interest):

for i in range(x.n_surf): x.get_surf_info(i)

read spot area for all spots objects (or certain spot objects of interest):

for i in range(x.n_pts): x.get_pt_info(i)

save out image data:

x.save_image_data('filename', '.tif') # Each channel will be saved as filename_ch[0, 1, ...].tif

take note of which image channel was used to generate a surface:

surf_n = 1 image_chan = x.surfs[surf_n]["ch"]

pull image data from a specific channel

x.get_channel(image_chan) #(will be stored in x.data[n])

plot surface centers:

x.plot_surf_project(image_chan, surf_n, crop_area=None) # plot surface centers over a projection of an image channel, eg: x.plot_surf_project(image_chan, surf_n, crop_area=[750,1000,600,900])

image

Notes on functionality:

Here, we are mostly reading in the surface centroids since we are interested in small objects, so this will not read out whole surface information (full surface shape)

ims_reader's People

Contributors

caylamiller avatar

Watchers

 avatar

Forkers

ucsdmanorlab

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.