PROJECT#3(b) Astrocyte Analysis BY Bhimanathini Venkatsai Sai Kumar Maddula.

Slides:



Advertisements
Similar presentations
Section Find the outcome space for each of the following experiments: (a) (b) (c) (d) (e) A teenager is selected at random from a street corner.
Advertisements

Computer Science 111 Fundamentals of Programming I More Digital Image Processing.
The Binary Numbering Systems
Computational Biology: A Measurement Perspective Alden Dima Information Technology Laboratory
School of Computing Science Simon Fraser University
School of Engineering and Computer Science Victoria University of Wellington Copyright: Peter Andreae & david streader, VUW Images and 2D Graphics COMP.
Lecture 5 Sept 10 Goals: 2-d arrays Image representation Image processing examples Stack data structure.
Vision January 10, Today's Agenda ● Some general notes on vision ● Colorspaces ● Numbers and Java ● Feature detection ● Rigid body motion.
CS430 © 2006 Ray S. Babcock CS430 – Image Processing Image Representation.
Exercise 1 - Poisson Image completion using Discrete Poisson Linear Systems.
First Bytes - LabVIEW. Today’s Session Introduction to LabVIEW Colors and computers Lab to create a color picker Lab to manipulate an image Visual ProgrammingImage.
Image Representation.
ImageJ Tutorial.
Data starts with width and height of image Then an array of pixel values (colors) The number of elements in this array is width times height Colors can.
Structure of GridWorld classes Creating a GridWorld project without the jar file Modifying GridWorld classes Removing grid lines Changing the color of.
Shorter of two objects and changing color Functions, events and setting the color Susan Rodger, Duke University June 2008.
L.
School of Engineering and Computer Science Victoria University of Wellington Copyright: Peter Andreae, VUW Images and 2D Graphics COMP # 16.
CS559-Computer Graphics Copyright Stephen Chenney Image File Formats How big is the image? –All files in some way store width and height How is the image.
Image Processing.  a typical image is simply a 2D array of color or gray values  i.e., a texture  image processing takes as input an image and outputs.
Digital Images The digital representation of visual information.
© GCSE Computing Candidates should be able to:  explain the representation of an image as a series of pixels represented in binary  explain the need.
Image Processing & Perception Sec 9-11 Web Design.
Shorter of two objects and changing color V2 Functions, events and setting the color in sequence and randomly This is a modification of the Changing Color.
CSE 219 Computer Science III Images. HW1 Has been posted on Blackboard Making a Game of Life with limited options.
Recursion. Recursive Methods HAVE: 1.A base case or termination condition that causes the method to end 2.A non-base case whose actions move the algorithm.
ImageJ EE4H, M.Sc Computer Vision Dr. Mike Spann
L. Akshay Masare Piyush Awasthi IMAGE PROCESSING AND OPENCV.
Image Synthesis Rabie A. Ramadan, PhD D Images.
Using geWorkbench: Hierarchical & SOM Clustering Fan Lin, Ph. D Molecular Analysis Tools Knowledge Center Columbia University and The Broad Institute of.
Using the JImageViewer classes. JImageViewer classes JImageViewer class JImageViewer class ImagePanel class ImagePanel class Image class Image class.
Computer Science 210 Computer Organization Arrays.
CIS-165 C++ Programming I CIS-165 C++ Programming I Bergen Community College Prof. Faisal Aljamal.
Which is the Pink Pen? Here is the Pink Pen (Example taken from
CSE 219 Computer Science III Image Manipulation. HW 1 Has been posted on Blackboard Making a Game of Life with limited.
Vision Geza Kovacs Maslab Colorspaces RGB: red, green, and blue components HSV: hue, saturation, and value Your color-detection code will be more.
NestedLoops-Mody7-part51 Two-Dimensional Arrays and Nested Loops – part 5 Rotations Barb Ericson Georgia Institute of Technology May 2007.
Processing Workshop. What is processing? “Processing is an open source programming language and environment for people who want to program images, animation,
Lecture 24: Color Announcements & Review Lab 7 Due Thursday 2 D arrays - embedding graphs in an array Computer Science Artifacts Abstraction Representations.
PROJECT#3(b) Astrocyte Analysis
A brief introduction to doxygen. What does a compiler do?  A compiler ignores comments and processes the code.  What does doxygen do? –It ignores the.
June 14, ‘99 COLORS IN MATLAB.
©Soham Sengupta,
Essential components of the implementation are:  Formation of the network and weight initialization routine  Pixel analysis of images for symbol detection.
Color Image Segmentation Mentor : Dr. Rajeev Srivastava Students: Achit Kumar Ojha Aseem Kumar Akshay Tyagi.
CompSci From bits to bytes to ints  At some level everything is stored as either a zero or a one  A bit is a binary digit a byte is a binary.
數位影像處理 Digital Image Processing 吳育龍老師. Read image data Screen Resolution : 1024 X
HADI Tutorial Void Inspection Contents 1.Basic Void Inspection Procedure 2.Smooth ROI 3.Background Processing (Flatten BG) 4.Thresholding (Void.
ITEC2110, Digital Media Chapter 2 Fundamentals of Digital Imaging 1 GGC -- ITEC Digital Media.
Coin Recognition Using MATLAB - Emad Zaben - Bakir Hasanein - Mohammed Omar.
From bits to bytes to ints
Half Toning Dithering RGB CMYK Models
Modifying GridWorld Classes.
Perfect Attendance Report by Cindy Nidiffer
Image Processing & Perception
How to print black and white on your printer. (PC) Go to File
Reading Netpbm Images.
Minimum wall thickness macro
Basic Graphics Drawing Shapes 1.
CS320n –Visual Programming
Images in Binary.
Multi-Image Colocalization and Its Statistical Significance
What do these words mean to you?
Hexadecimal Binary Made Easier.
Colours.
COMS 161 Introduction to Computing
What Color is it?.
Digital Image Processing
Perfect Attendance Report by Cindy Nidiffer
Presentation transcript:

PROJECT#3(b) Astrocyte Analysis BY Bhimanathini Venkatsai Sai Kumar Maddula

1. Astrocyte Analysis 2. Algorithm for Converting into 8-bit 3. Algorithm for Thresholding 4. Sample code for Thresholding 5. Overlapping/Touching of cell structure ◦Watershed Algorithm ◦Analyze Particles And Future workContents

Load the stack File into ImageJ File  Open  Browse Stack File Astrocyte Analysis:

Converting to 8bit java.util import Random imp = IJ.createImage("A Random Image", "8-bit", 512, 512, 1) Random().nextBytes(imp.getProcessor().g etPixels()) imp.show()

Algorithm for Threshold: 1. start set THRESHOLD = 30 red = getRedPixelFromImage(row,column) green = getGreenPixelFromImage(row,column) blue = getBluePixelFromImage(row,column) 2. avg = (red+green+blue)/3 3. if(avg<THRESHOLD) paint white else paint black. 4. end

Code for Threshold import java.awt.image.BufferedImage; public class ImageOperations { public static BufferedImage Threshold(BufferedImage img,int requiredThresholdValue) { int height = img.getHeight(); int width = img.getWidth(); BufferedImage finalThresholdImage = new BufferedImage(width,height,BufferedImage.TYPE_INT_RGB) ; int red = 0; int green = 0; int blue = 0; for (int x = 0; x < width; x++) { //System.out.println("Row: " + x); try { for (int y = 0; y < height; y++) { int color = img.getRGB(x, y); red = ImageOperations.getRed(color); green = ImageOperations.getGreen(color); blue = ImageOperations.getBlue(color); //System.out.println("Threshold : " + requiredThresholdValue); if((red+green+green)/3 < (int) (requiredThresholdValue)) { finalThresholdImage.setRGB(x,y,ImageOperations.mixColor(0, 0,0)); } else { finalThresholdImage.setRGB(x,y,ImageOperations.mixColor(255, 255,255)); } } catch (Exception e) { e.getMessage(); } return finalThresholdImage; } private static int mixColor(int red, int green, int blue) { return red<<16|green<<8|blue; } public static int getRed(int color) { return (color & 0x00ff0000) >> 16; } public static int getGreen(int color) { return(color & 0x0000ff00) >> 8; } public static int getBlue(int color) { return (color & 0x000000ff) >> 0; }

Here we have to apply Watershed and Analyze Particles. So we done with some code for Watershed and to Analyze Particles. Overlapping/Touching Cell Structures

Watershed algorithm: # 1 - Obtain an image blobs = IJ.openImage(“aaa.tip") # Make a copy with the same properties as blobs image: imp = blobs.createImagePlus() ip = blobs.getProcessor().duplicate() imp.setProcessor("blobs copy", ip) # 2 - Apply a threshold: only zeros and ones # Set the desired threshold range: keep from 0 to 74 ip.setThreshold(147, 147, ImageProcessor.NO_LUT_UPDATE) # Call the Thresholder to convert the image to a mask IJ.run(imp, "Convert to Mask", "") # 3 - Apply watershed # Create and run new EDM object, which is an Euclidean Distance Map (EDM) # and run the watershed on the ImageProcessor: EDM().toWatershed(ip) # 4 - Show the watersheded image: imp.show()

Analyze particles: # Create a table to store the results table = ResultsTable() # Create a hidden ROI manager, to store a ROI for each blob or cell roim = RoiManager(True) # Create a ParticleAnalyzer, with arguments: # 1. options (could be SHOW_ROI_MASKS, SHOW_OUTLINES, SHOW_MASKS, SHOW_NONE, ADD_TO_MANAGER, and others; combined with bitwise-or) # 2. measurement options # 3. a ResultsTable to store the measurements # 4. The minimum size of a particle to consider for measurement # 5. The maximum size (idem) # 6. The minimum circularity of a particle # 7. The maximum circularity pa = ParticleAnalyzer(ParticleAnalyzer.ADD_TO_MANAGER, Measurements.AREA, table, 0, Double.POSITIVE_INFINITY, 0.0, 1.0) pa.setHideOutputImage(True) if pa.analyze(imp): print "All ok" else: print "There was a problem in analyzing", blobs # The measured areas are listed in the first column of the results table, as a float array: areas = table.getColumn(0)

Expected Results:

Expected Results

Still working on.. Segmentation by 3D Viewer Combine individual Plugin into one Plugin.

Thank you..!!