<div dir="ltr"><div><div>Hello, <br>I try to create an cli module allowing texture analysis of 3d images in slicer based on itk:<br>-ScalarImageToTextureFeaturesFilter.h<br>-ScalarImageToRunLengthFeaturesFilter.h<br></div>
It compile well but give value that i'm not sure.<br></div><div>It give the same RunlenghtFeature for a constant image (value=64) size 256x256x47 with different spacing (spacing-1=1,1,1 and spacing-2=10,10,10). For the LongRunEmphasis as it proportionnal to (run lenght)^2, i'll expect a difference.<br>
</div><div>Also if the spacing is change like (1,1,10) the value are differents. So i wonder if this programme take account of the real position of the voxels?<br><br></div><div>Another request i that i want to change the offset so i try:<br>
typedef itk::Statistics::ScalarImageToRunLengthFeaturesFilter<ImageType, HistogramFrequencyContainerType>::OffsetVector OffsetVectorType; <br> OffsetVectorType::Pointer list_offset=OffsetVectorType::New();<br> <br>
list_offset->reserve(1);<br> <br> OffsetType d;<br> <br> d[0]=1;<br> d[1]=0;<br> d[2]=0;<br> <br> //typedef itk::VectorContainer<int, 3> PointType<br> <br> OffsetVectorType::Iterator direction=list_offset->Begin();<br>
<br> direction->Value()=d;<br> <br></div><div> runlenghtfilter->SetOffsets(list_offset);<br></div><div> <br><br></div><div>I think that OffsetType is not correctly initialize but it's a sub type of OffsetVector.<br>
Also it is not clear if the offset is a direction or an angle. <br></div><div>Thanks for your reply,<br></div><div>Cyril<br></div></div>