Saturday, August 25, 2012

Imagej docs

http://stackoverflow.com/questions/7218309/smoothing-a-jagged-path
Tutorials
http://albert.rierol.net/imagej_programming_tutorials.html#ImageJ

API
http://rsbweb.nih.gov/ij/developer/api/ij/

http://rsbweb.nih.gov/ij/developer/api/index.html

Stackoverflow
 http://stackoverflow.com/questions/11495020/imagej-api-getting-rgb-values-from-image

ImageJ list
https://list.nih.gov/cgi-bin/wa.exe?A0=IMAGEJ 

Books
http://www.imagingbook.com/index.php?id=111
http://www.imagingbook.com/index.php?id=98

PPT
Larsen Image analysis-filtering

Math
http://www.cafeaulait.org/course/week4/40.html 

Code
http://www.myoops.org/twocw/mit/NR/rdonlyres/Civil-and-Environmental-Engineering/1-00Introduction-to-Computers-and-Engineering-Problem-SolvingFall2002/C5DB3655-BC62-4010-9A5D-DFE91D68F5BF/0/MedianFilter.java 
// http://download.java.net/jdk7/archive/b123/docs/api/java/awt/image/Raster.html
        // http://download.java.net/jdk7/archive/b123/docs/api/java/awt/image/WritableRaster.html
        // http://kickjava.com/src/java/awt/image/Raster.java.htm
        // http://kickjava.com/src/java/awt/image/BufferedImage.java.htm
        // http://stackoverflow.com/questions/5069678/cutting-up-image-illegalargumentexception-for-createwritablechild
        // http://www.exampledepot.com/egs/java.awt.image/ImagePixel.html

Object Outline code
http://stackoverflow.com/questions/10834109/java-create-a-shape-from-border-around-image

Larsen lectures
http://www.matdat.life.ku.dk/ia/sessions/ 

Greyscale code

// grayscale transparent image:

ColorSpace gsColorSpace = ColorSpace.getInstance(ColorSpace.CS_GRAY);

ComponentColorModel ccm = new ComponentColorModel(gsColorSpace, true, false, Transparency.TRANSLUCENT, DataBuffer.TYPE_BYTE);

WritableRaster raster = ccm.createCompatibleWritableRaster(width, height);

Image result = new BufferedImage(ccm, raster, ccm.isAlphaPremultiplied(), null);



///
public static BufferedImage convertToGray(BufferedImage image) {
BufferedImage gray = new BufferedImage(image.getWidth(),
image.getHeight(),BufferedImage.TYPE_BYTE_GRAY);
ColorConvertOp op = new ColorConvertOp(
image.getColorModel().getColorSpace(),
gray.getColorModel().getColorSpace(),null);
op.filter(image,gray);
return gray;
}