bbSetOutputOut(NULL);
return;
}
-
-
+
if ( (bbGetInputOperation()>=0) && (bbGetInputOperation()<=5) )
{
-
-
if (ope!=NULL)
{
ope->Delete();
#if (VTK_MAJOR_VERSION >= 6)
ope->SetInput1Data((vtkDataObject*)bbGetInputIn1());
#endif
-
if (bbGetInputIn2() != NULL)
{
return;
}
+ int ext1[6];
+ int ext2[6];
+ bbGetInputIn1()->GetExtent(ext1);
+ bbGetInputIn2()->GetExtent(ext2);
+ if ( (ext1[0]!=ext2[0]) || (ext1[1]!=ext2[1]) || (ext1[2]!=ext2[2]) || (ext1[3]!=ext2[3]) || (ext1[4]!=ext2[4]) || (ext1[5]!=ext2[5]) )
+ {
+ printf( "EED Warning!!! (%s) BinaryOperations::Process Sizes of images are not the same.\n", bbGetFullName().c_str() );
+ bbSetOutputOut(NULL);
+ return;
+ }
+
switch ( bbGetInputOperation() )
{
case 0: