filename RGBIOps.c
#
#	Copyright 1994, Center for Computer Vision and Visualization,
#	University of Florida.  All rights reserved.
#

#
# $Log: rgb-operations.desc,v $
# Revision 1.3.1.1  1994/12/28  18:20:26  thoth
# Image operations are now friendly with FBI
# Image ops now use operations table instead of switch.
#
# Revision 1.3  1994/08/22  15:20:29  thoth
# DOS-inspired name rework.
#
# Revision 1.2  1994/05/17  12:58:54  thoth
# modifications to work with new operations generation scheme.
#

# RGB operations for the RGB Discrete Image

"C#include "FBI.h"
"C#include "../valueset/OpTable.h"

constructor I(IA_RGB) I(IA_Bit)
constructor I(IA_RGB) I(u_char)

#
# Need to be able to construct an RGB from three u_chars
#
#constructor I(IA_RGB) I(u_char) I(u_char) I(u_char)

unary pointwise to_int I(int) I(IA_RGB)
unary pointwise to_float I(float) I(IA_RGB)

unary pointwise red I(u_char) I(IA_RGB)
unary pointwise green I(u_char) I(IA_RGB)
unary pointwise blue I(u_char) I(IA_RGB)

binary strictrel commutative operator== int I(IA_RGB) I(IA_RGB)
binary strictrel commutative operator== int I(IA_RGB) IA_RGB

binary strictrel commutative strict_ne subop=operator!= int I(IA_RGB) I(IA_RGB)
binary strictrel commutative strict_ne subop=operator!= int I(IA_RGB) IA_RGB

binary pointwise commutative chi_eq subop=operator== I(IA_Bit) I(IA_RGB) I(IA_RGB)
binary pointwise commutative chi_eq subop=operator== I(IA_Bit) I(IA_RGB) IA_RGB

binary pointwise commutative chi_ne subop=operator!= I(IA_Bit) I(IA_RGB) I(IA_RGB)
binary pointwise commutative chi_ne subop=operator!= I(IA_Bit) I(IA_RGB) IA_RGB
