Hi all,<br><br> I am trying to compare the efficiency of different options to access pixel values in ITK image. I understand if it is<br>a serial access (from begin to end), the iterator is the best choice. But what if I would like to access one arbitrary<br>
pixel at a time. What would be more efficient?<br> <br> (1) Use iterator->SetIndex(ind) and then iterator->Get() or iterator->Set();<br> (2) Use image->GetPixel(ind) or image->SetPixel(ind);<br> (3) or something else<br>
<br>Thanks,<br>Mengda<br><br>