<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hello,<div><br></div><div>The cost of doing the reference counting is what the performance concern is about. The LightObject is rather light otherwise. The Object class adds the Command/Observer, and MetaDataDictionary features, along with a few other items.</div><div><br></div><div>Common places where these classes are not used, are for numeric classes such as Point, Matrix, Vector etc, and structures internal to classes for variety of reasons there.</div><div><br></div><div>If you just need reference counting the LightObject is a good class to use.</div><div><br></div><div>Hope that helps,</div><div>Brad</div><div><br><div><div>On May 5, 2014, at 9:12 AM, Rashad M <<a href="mailto:mohammedrashadkm@gmail.com">mohammedrashadkm@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><div dir="ltr">Hi all,<div><br></div><div>I have some doubts about the usage of itkLightObject. The situation is I need to have a simple class and it must has Smart pointers and macro definitions as in itk class. This class does not involve image inputs and not a filter type. So I decided to go with itkLightObject for the base class. </div>
<div><br></div><div>From the documentation of itkLightObject[1]. It says:</div><div><br></div><div><span style="font-family: 'Lucida Grande', Verdana, Geneva, Arial, sans-serif; font-size: 12px; line-height: 22px;">All ITK objects should be a subclass of </span><a class="" href="http://www.itk.org/Doxygen/html/classitk_1_1LightObject.html" title="Light weight base class for most itk classes. " style="color:rgb(70,101,162);font-weight:bold;font-family:'Lucida Grande',Verdana,Geneva,Arial,sans-serif;font-size:12px;line-height:22px">LightObject</a><span style="font-family: 'Lucida Grande', Verdana, Geneva, Arial, sans-serif; font-size: 12px; line-height: 22px;"> or </span><a class="" href="http://www.itk.org/Doxygen/html/classitk_1_1Object.html" title="Base class for most ITK classes. " style="color:rgb(70,101,162);font-weight:bold;font-family:'Lucida Grande',Verdana,Geneva,Arial,sans-serif;font-size:12px;line-height:22px">Object</a><span style="font-family: 'Lucida Grande', Verdana, Geneva, Arial, sans-serif; font-size: 12px; line-height: 22px;"> with few exceptions (due to performance concerns).</span><br>
</div><div><span style="font-family: 'Lucida Grande', Verdana, Geneva, Arial, sans-serif; font-size: 12px; line-height: 22px;"><br></span></div><div><span style="font-family: 'Lucida Grande', Verdana, Geneva, Arial, sans-serif; font-size: 12px; line-height: 22px;">Could any explain me the few exceptions concerning performance?</span></div>
<div><br></div><div>[1] <a href="http://www.itk.org/Doxygen/html/classitk_1_1LightObject.html">http://www.itk.org/Doxygen/html/classitk_1_1LightObject.html</a></div><div><div><br></div>-- <br><div><font face="arial, helvetica, sans-serif">Regards,<br>
Rashad</font></div>
</div></div>
_______________________________________________<br>Powered by <a href="http://www.kitware.com">www.kitware.com</a><br><br>Visit other Kitware open-source projects at<br><a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br><br>Kitware offers ITK Training Courses, for more information visit:<br>http://kitware.com/products/protraining.php<br><br>Please keep messages on-topic and check the ITK FAQ at:<br>http://www.itk.org/Wiki/ITK_FAQ<br><br>Follow this link to subscribe/unsubscribe:<br>http://www.itk.org/mailman/listinfo/insight-developers<br></blockquote></div><br></div></body></html>