org.shapelogic.imageprocessing
Class ColorParticleAnalyzerTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.shapelogic.imageprocessing.AbstractImageProcessingTests
              extended by org.shapelogic.imageprocessing.ColorParticleAnalyzerTest
All Implemented Interfaces:
junit.framework.Test

public class ColorParticleAnalyzerTest
extends AbstractImageProcessingTests

Test ParticleCounter.
The difference of this from BaseParticleCounterTest is that this should test more customized ParticleCounters, while BaseParticleCounterTest should test the basic cases.

Author:
Sami Badawi

Constructor Summary
ColorParticleAnalyzerTest()
           
 
Method Summary
 void assertClose(double expected, double found, double precision)
           
protected  void setUp()
           
 void testBlobsGif()
           
 void testBlobsGifToMask()
           
 void testCleanSpotPng()
          This gets opened as a byte interleaved and not as an int RGB
 void testEmbryos()
           
 void testEmbryosDefaultSettings()
           
 void testEmbryosMoreIterations()
           
 void testEmbryosReadNeuralNetworkFromFile()
           
 void testEmbryosReadNeuralNetworkFromFileMissingStream()
          Called with bad file with missing streams.
Should not throw an exception when running.
But the category stream is not getting populated so is should throw exception here.
 void testEmbryosReadPrintFromFileNeuralNetwork()
           
 void testEmbryosReadPrintFromFileNeuralNetworkMultiLayer()
           
 void testEmbryosReadRulesAndPrintFromFile()
           
 void testEmbryosReadRulesFileMissingStream()
          Called with bad file with missing streams.
Should not throw an exception when running.
But the category stream is not getting populated so is should throw exception here.
 void testEmbryosReadRulesFromFile()
           
 void testEmbryosReadRulesFromFileNeuralNetwork()
           
 void testEmbryosToMask()
           
 void testEmbryosWithParameters()
           
 void testOneWhitePixelGrayPng()
          This shows that when you save and image as PNG it will always be opened as a color image.
 void testOvalCleanPng()
          This gets opened as a byte interleaved and not as an int RGB
 void testWhitePixelGray()
           
 
Methods inherited from class org.shapelogic.imageprocessing.AbstractImageProcessingTests
assertEmptyCollection, dummyTest, printAnnotaions, printLines, printPoints, printPolygon
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ColorParticleAnalyzerTest

public ColorParticleAnalyzerTest()
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Overrides:
setUp in class AbstractImageProcessingTests
Throws:
java.lang.Exception

testWhitePixelGray

public void testWhitePixelGray()

testOneWhitePixelGrayPng

public void testOneWhitePixelGrayPng()
This shows that when you save and image as PNG it will always be opened as a color image.


testBlobsGif

public void testBlobsGif()

testBlobsGifToMask

public void testBlobsGifToMask()

testEmbryos

public void testEmbryos()

testEmbryosDefaultSettings

public void testEmbryosDefaultSettings()

testEmbryosToMask

public void testEmbryosToMask()

assertClose

public void assertClose(double expected,
                        double found,
                        double precision)

testEmbryosWithParameters

public void testEmbryosWithParameters()

testEmbryosMoreIterations

public void testEmbryosMoreIterations()

testCleanSpotPng

public void testCleanSpotPng()
This gets opened as a byte interleaved and not as an int RGB


testOvalCleanPng

public void testOvalCleanPng()
This gets opened as a byte interleaved and not as an int RGB


testEmbryosReadRulesFromFile

public void testEmbryosReadRulesFromFile()

testEmbryosReadRulesAndPrintFromFile

public void testEmbryosReadRulesAndPrintFromFile()

testEmbryosReadRulesFromFileNeuralNetwork

public void testEmbryosReadRulesFromFileNeuralNetwork()

testEmbryosReadPrintFromFileNeuralNetwork

public void testEmbryosReadPrintFromFileNeuralNetwork()

testEmbryosReadNeuralNetworkFromFile

public void testEmbryosReadNeuralNetworkFromFile()

testEmbryosReadPrintFromFileNeuralNetworkMultiLayer

public void testEmbryosReadPrintFromFileNeuralNetworkMultiLayer()

testEmbryosReadRulesFileMissingStream

public void testEmbryosReadRulesFileMissingStream()
Called with bad file with missing streams.
Should not throw an exception when running.
But the category stream is not getting populated so is should throw exception here.


testEmbryosReadNeuralNetworkFromFileMissingStream

public void testEmbryosReadNeuralNetworkFromFileMissingStream()
Called with bad file with missing streams.
Should not throw an exception when running.
But the category stream is not getting populated so is should throw exception here.



Copyright © 2009. All Rights Reserved.