Fabian Torres
2017-08-30 22:03:17 UTC
Hi everyone.
IÂŽm using itk VariableMatrix to do some image processing. But I have some
problems initializing my matrices.
When I use small sizes like this I do not have any problem
//matrix A
regionSize[0] = 15;
regionSze[1] = 15;
VariableSizeMatrix<long double> matA;
matA.SetSize(2*regionSize[0]*regionSize[1],2*regionSize[0]*regionSize[1]);
matA.Fill(0.0);
But when I use bigger sizes like:
regionSize[0] = 100;
regionSze[1] = 100;
I get an Acces Violation exception
Access violation reading location 0xcdcdcdc1.
I'm using Visualstudio 2008 and ITK 4.4
Does this has something to do with memory allocation?
Is there a way a could verify if I have enough memory to allocate my matrix?
Thanks.
IÂŽm using itk VariableMatrix to do some image processing. But I have some
problems initializing my matrices.
When I use small sizes like this I do not have any problem
//matrix A
regionSize[0] = 15;
regionSze[1] = 15;
VariableSizeMatrix<long double> matA;
matA.SetSize(2*regionSize[0]*regionSize[1],2*regionSize[0]*regionSize[1]);
matA.Fill(0.0);
But when I use bigger sizes like:
regionSize[0] = 100;
regionSze[1] = 100;
I get an Acces Violation exception
Access violation reading location 0xcdcdcdc1.
I'm using Visualstudio 2008 and ITK 4.4
Does this has something to do with memory allocation?
Is there a way a could verify if I have enough memory to allocate my matrix?
Thanks.
--
Fabián Torres Robles
Maestria en Ciencias en IngenierÃa Electrónica
IngenierÃa en Sistemas Electrónicos
tel. 58081280, 0445534661338
e-mail ***@gmail.com, ***@gmail.com
Fabián Torres Robles
Maestria en Ciencias en IngenierÃa Electrónica
IngenierÃa en Sistemas Electrónicos
tel. 58081280, 0445534661338
e-mail ***@gmail.com, ***@gmail.com