Skip to content

Commit e88ec53

Browse files
authored
Merge pull request #73 from thewtex/histogram-size-type
BUG: HistogramCreationAndBinAccess: fix type of histogram size
2 parents 7d737de + d800454 commit e88ec53

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Numerics/Statistics/HistogramCreationAndBinAccess/Code.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ int main()
4242
upperBound[0] = 7.1;
4343
upperBound[1] = 8.6;
4444

45-
histogram->Initialize(size, lowerBound, upperBound );
45+
histogram->Initialize( size, lowerBound, upperBound );
4646

4747
// Now the histogram is ready for storing frequency values. There
4848
// are three ways of accessing data elements in the histogram:

src/Numerics/Statistics/HistogramCreationAndBinAccess/Code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
histogram = itk.Histogram.New(MeasurementVectorSize=numberOfComponents)
2424

2525
# We initialize it as a 3x3 histogram with equal size intervals.
26-
size = itk.Size[numberOfComponents]()
26+
size = itk.Array.UL(numberOfComponents)
2727
size.Fill(3)
2828

2929
lowerBound = 1.1, 2.6

0 commit comments

Comments
 (0)