User Tools

Site Tools


jvs:fscan:manual:chapter2:expression:rgb

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
jvs:fscan:manual:chapter2:expression:rgb [2014/08/04 16:03]
127.0.0.1 external edit
jvs:fscan:manual:chapter2:expression:rgb [2023/02/23 18:43] (current)
Line 1: Line 1:
 **fScan Reference Manual, Chapter 2 (CmdLineOptions:Expr): rgb** **fScan Reference Manual, Chapter 2 (CmdLineOptions:Expr): rgb**
-===== rgb -- ===== +===== rgb -- manipulate voxel color ===== 
- **usage:  -expr rgb **\\+ **usage:  -expr rgb [flag] [WORDSIZE wdsiz] **\\
  
- +The RGB expression can be used to convert to or from 24-bit (or 32-bit) RGB values. 
 + 
 +Converting 8-bit or 16-bit  
 + 
 +to gray-scale values or to new RGB values with rearranged color byte order.  The RGB operator 
 + 
 +When converting RGB values, the FLAG option can be used to specify the conversion method.\\ 
 +FLAG values:\\ 
 +  * 0 - convert as RGB magnitude (sqrt(r*r+g*g+b*b)); this is the default conversion 
 +  * 7 - convert to maximum of Red or Green or Blue values 
 +  * 15 - convert 24-bit RGB to 15-bit RGB (5 bits per color) 
 +  * 16 - convert 24-bit RGB to 16-bit RGB (5 bits RED, 6 bits GREEN, 5 bits BLUE) 
 +  * 123 - convert to BGR (blue is high byte, red is low byte) 
 +  * 321 - convert to RGB (red is high byte, blue is low byte) 
 +  * xyz - like above where X,Y,Z specify byte order; 1=BLUE, 2=GREEN, and 3=RED 
 +  
 **See Also:**\\ **See Also:**\\
 [[jvs:fscan|fScan Home]],  [[jvs:fscan|fScan Home]], 
jvs/fscan/manual/chapter2/expression/rgb.txt · Last modified: 2023/02/23 18:43 (external edit)