If you have a gray-scaled image then your image has 1 scalar component (just the gray level) and if you have a colored image then your image has 3 scalar components (RGB, HSV, HSI, etc). GetNumberOfScalarComponents will tell you this number.
<br><br>
<div><span class="gmail_quote">On 10/17/07, <b class="gmail_sendername">tuo zhang</b> <<a href="mailto:zhangtuo123@yahoo.com.cn">zhangtuo123@yahoo.com.cn</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi all,<br>what does "scalar components" mean?<br><br>Thanks!<br><br> Jedi 07/10/17
<br><br><br> ___________________________________________________________<br>ÑÅ»¢ÓÊÏ䣬ÖÕÉú»ï°é£¡<br><a href="http://mail.yahoo.com.cn/">http://mail.yahoo.com.cn/</a><br>_______________________________________________<br>This is the private VTK discussion list.
<br>Please keep messages on-topic. Check the FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a><br>Follow this link to subscribe/unsubscribe:<br><a href="http://www.vtk.org/mailman/listinfo/vtkusers">
http://www.vtk.org/mailman/listinfo/vtkusers</a><br></blockquote></div><br>