Hello !

I am trying to use the wavelet method for my 3D images and I have met a few 
errors :
1) There is an exception 

itk::ERROR: MultiThreader(000000000D11A9A0): Exception occurred during 
SingleMethodExecute

c:\dev\itk\4.3.2\include\itk-4.3\itkImageConstIterator.h:206:

itk::ERROR: Region ImageRegion (0000000000127000)

Dimension: 3

Index: [0, 0, 0]

Size: [152, 54, 49]

is outside of buffered region ImageRegion (000000000B714EB0)

Dimension: 3

Index: [0, 0, 0]

Size: [0, 0, 0]
This exception is raised in file otbWaveletFilterBank.txx, line 560 : 
IteratorType outLowPass(outputLowPass, 
subItLowPass.GenerateOutputInformation()); 
outputLowPass is a newly allocated OutputImage (m_SubsampleImageFactor = 1 
in this configuration).


2) In the otbWaveletFilterBank.txx, line 182, I get a vector error when I 
set m_SubsampleImageFactor to 2. Indeed, on the above method 
(BeforeThreadedGenerateData, which called AllocateInternalData where I face 
the problem), my vector m_InternalImages is allocated this way : 
m_InternalImages[0].size = 4 and m_InternalImages[1].size = 2
In line 180, the loop ending does not seem to match the inner part of the 
loop, when i = 2 there is an exception (tries to allocate at 
m_InternalImages[1][2])
I think the correct loop should be :     for (unsigned int i = 0; i < 
m_InternalImages[InputImageDimension - 2 - direction].size(); ++i)    
instead of   for (unsigned int i = 0; i < 
m_InternalImages[direction].size(); ++i)   if we want to code   
m_InternalImages[InputImageDimension - 2 - direction][i] = 
OutputImageType::New();

or maybe the other way : change the inner part of the loop to   
m_InternalImages[direction]    instead of    
m_InternalImages[InputImageDimension - 2 - direction] ?


3) Once I solved 2) by changing the loop bounds, I got another vector error 
in otbWaveletFilterBank.txx, line 575. Indeed, I try to cast  
static_cast<OutputImageType*>(m_InternalImages[direction - 2][idx / (1 << 
(direction - 1))]) whereas direction = 1 and m_InternalImages[-1] does not 
exist. 


Any ideas on how to solve my problems?


Thanks in advance !

-- 
-- 
Check the OTB FAQ at
http://www.orfeo-toolbox.org/FAQ.html

You received this message because you are subscribed to the Google
Groups "otb-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/otb-users?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"otb-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to