MCPcopy Create free account
hub / github.com/CRVI/OpenCLIPP / CheckCompatibility

Function CheckCompatibility

C++/programs/Program.cpp:452–461  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

450}
451
452void CheckCompatibility(const ImageBase& Img1, const ImageBase& Img2)
453{
454 CheckSameSize(Img1, Img2);
455
456 if (Img1.IsFloat() != Img2.IsFloat())
457 throw cl::Error(CL_INVALID_VALUE, "Different image types used");
458
459 if (Img1.IsUnsigned() != Img2.IsUnsigned())
460 throw cl::Error(CL_INVALID_VALUE, "Different image types used");
461}
462
463void CheckSizeAndType(const ImageBase& Img1, const ImageBase& Img2)
464{

Callers 15

ThresholdGTLTMethod · 0.85
ThresholdMethod · 0.85
CheckSizeAndTypeFunction · 0.85
ComputeLabelsMethod · 0.85
RenameLabelsMethod · 0.85
ErodeMethod · 0.85
DilateMethod · 0.85
LUTMethod · 0.85
LUTLinearMethod · 0.85
GaussianBlurMethod · 0.85
GaussMethod · 0.85
SharpenMethod · 0.85

Calls 3

CheckSameSizeFunction · 0.85
IsFloatMethod · 0.80
IsUnsignedMethod · 0.80

Tested by

no test coverage detected