albintre / aforge

Automatically exported from code.google.com/p/aforge
Other
0 stars 0 forks source link

Debugging issues in Horizontalintensitystatistics and verticalintensitystatistics #207

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
  HorizontalIntensityStatistics his = new HorizontalIntensityStatistics(image1); //image1 should be rgb
            int[] hisValues = (int[])his.Gray.Values.Clone();

What is the expected output? What do you see instead?
This should throw exception like "source image not in correct format" but 
instead it shows "Object reference not set to an instance of an object." use 
new keyword.

What version of the product are you using?
2.1.5

Please provide any additional information below.

Its not reallly a prob, but correcting it will make debugging much easier.

Original issue reported on code.google.com by MAK2c...@gmail.com on 24 Apr 2011 at 7:42

GoogleCodeExporter commented 9 years ago
Statistics classes now throw InvalidImagePropertiesException exception if user 
access invalid histogram - gray histogram for color image or color histograms 
for grayscale image.

Committed in revision 1430. Will be released in next version.

Original comment by andrew.k...@gmail.com on 25 Apr 2011 at 6:53

GoogleCodeExporter commented 9 years ago

Original comment by andrew.k...@gmail.com on 28 Jul 2011 at 9:46

GoogleCodeExporter commented 9 years ago

Original comment by andrew.k...@gmail.com on 10 Aug 2011 at 9:33