File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed
src/main/java/net/imagej/ops/morphology Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -85,8 +85,7 @@ public class DefaultDilate<T extends RealType<T>> extends
8585 @ Override
8686 public boolean conforms () {
8787 if (in1 () == null || in2 () == null || out () == null ) return true ;
88- if (isFull ) return createOutput (in ()).iterationOrder ().equals (out ());
89- return Maps .compatible (in (), out ());
88+ return isFull || Maps .compatible (in (), out ());
9089 }
9190
9291 @ SuppressWarnings ({ "rawtypes" , "unchecked" })
Original file line number Diff line number Diff line change 3333
3434import net .imagej .ops .Contingent ;
3535import net .imagej .ops .Ops ;
36+ import net .imagej .ops .map .Maps ;
3637import net .imagej .ops .morphology .Morphologies ;
3738import net .imagej .ops .special .computer .BinaryComputerOp ;
3839import net .imagej .ops .special .computer .Computers ;
@@ -80,7 +81,7 @@ public class ListDilate<T extends RealType<T>> extends
8081 @ Override
8182 public boolean conforms () {
8283 return in1 () == null || in2 () == null || out () == null || //
83- createOutput (). iterationOrder (). equals ( out (). iterationOrder ());
84+ Maps . compatible ( in1 (), out ());
8485 }
8586
8687 @ SuppressWarnings ({ "rawtypes" , "unchecked" })
Original file line number Diff line number Diff line change @@ -85,8 +85,7 @@ public class DefaultErode<T extends RealType<T>> extends
8585 @ Override
8686 public boolean conforms () {
8787 if (in1 () == null || in2 () == null || out () == null ) return true ;
88- if (isFull ) return createOutput (in ()).iterationOrder ().equals (out ());
89- return Maps .compatible (in (), out ());
88+ return isFull || Maps .compatible (in (), out ());
9089 }
9190
9291 @ SuppressWarnings ({ "rawtypes" , "unchecked" })
Original file line number Diff line number Diff line change 3333
3434import net .imagej .ops .Contingent ;
3535import net .imagej .ops .Ops ;
36+ import net .imagej .ops .map .Maps ;
3637import net .imagej .ops .morphology .Morphologies ;
3738import net .imagej .ops .special .computer .BinaryComputerOp ;
3839import net .imagej .ops .special .computer .Computers ;
@@ -80,7 +81,7 @@ public class ListErode<T extends RealType<T>> extends
8081 @ Override
8182 public boolean conforms () {
8283 return in1 () == null || in2 () == null || out () == null || //
83- createOutput (). iterationOrder (). equals ( out (). iterationOrder ());
84+ Maps . compatible ( in1 (), out ());
8485 }
8586
8687 @ SuppressWarnings ({ "rawtypes" , "unchecked" })
You can’t perform that action at this time.
0 commit comments