public static bool IsEqualTo(this IPix pix, IPix other, Func <PixImage, PixImage, bool> imageEqualFun = null, Func <PixVolume, PixVolume, bool> volumeEqualFun = null, Func <string, string, bool> stringEqualFun = null) { if (imageEqualFun == null) { imageEqualFun = (a, b) => a == b; } if (volumeEqualFun == null) { volumeEqualFun = (a, b) => a == b; } if (stringEqualFun == null) { stringEqualFun = (a, b) => a == b; } try { return(pix.Op(new PixInnerProductOp <bool>( new PixEqualOp(imageEqualFun, volumeEqualFun, stringEqualFun), other))()); } catch { return(false); } }
public static IPix GetDescriptors(this IPix pix) { return(pix.Op(new PixGetInfo())); }
public static PixImage[] GetPixImageArray(this IPix pix, int level = 0) { return(pix.Op(new PixGetPixImageArray(level))()); }
public static IPix ToPixImage <T>(this IPix pix) { return(pix.Op(new PixToPixImage <T>())); }
public static IPix WithMipMaps( this IPix pix, PixImageMipMap.MipMapOptions options = null) { return(pix.Op(new PixCreateMipMaps(options == null ? PixImageMipMap.MipMapOptions.Default : options))); }
/// <summary> /// </summary> /// <returns>The number of saved PixImages.</returns> public static int SaveImages(this IPix pix, IPix names, string pathPrefix = null) { return(pix.Op(new PixSaveOp(names, pathPrefix == null ? "" : pathPrefix))()); }
public static IPix WithLoadedImages(this IPix pix, string pathPrefix = null) { return(pix.Op(new PixLoadOp(pathPrefix == null ? "" : pathPrefix))); }
public static IPix WithRemovedMipMaps(this IPix pix) { return(pix.Op(new PixRemoveMipMaps())); }