In a C # project, I get an error using the AddImageFilter
which in the Simplicator Is provided. Is there a mistake trying to add two images with this filter? For example, maybe a rule images must be repeated or integer
.
The error I get is:
Image2 for AddImageFilter does not match any type or dimension!
In a definite way, your guess is correct I can not find the exact error that you found I was able to find out if you see the AddImageFilter :: Execute ()
function in 33 lines, then this exception will be thrown:
Std :: cerr & lt; & Lt; "Both of the image types or dimensions for the add filter do not match!" & Lt; & Lt; Std :: endl;
That seems to be related to you (maybe a bit different to a different version of ITK). And this exception is thrown when it gets verified:
if (type! = Image2-> GetDataType ()) Dimension! = Image2- & gt; GetDimension ())
Then, one condition for AddImageFilter is that both dimensions will be the same, and must agree to the metadata associated with the images understand this It comes as the matrix is possible only if its dimension (and, of course, when they contain information of the same type)
If you are trying to add two different types of images, an example: a DICOM with TIFF), I want to put both of them in the same "metadata space" to be less of them Suggestion to change at least one.
Comments
Post a Comment