[Insight-users] ScalarImageTextureCalculator

Aster.Wardhani at csiro.au Aster.Wardhani at csiro.au
Wed Sep 14 03:21:19 EDT 2005


Hi,

I am using ScalarImageTextureCalculator to compute textural features
from a CT slice.
I initially segment the slice using region growing. The source image is
then divided into blocks of say 8x8. A mask image and each block
(obtained using ExtractImageFilter) is fed into the
ScalarImageTextureCalculator but all features received are all zeros.
Below is a snippet of the code.

------------------------------------------------------------------------
----------

// Extract Image Filter

CropFilterType::Pointer crop_filter = CropFilterType::New();
crop_filter->SetInput( _srcImage );

// ScalarImageTextureCalculator

textureMeasureType::Pointer texture_measure = textureMeasureType::New();
texture_measure->FastCalculationsOn();
texture_measure->SetImageMask( _maskImage );	// label image
texture_measure->SetNumberOfBinsPerAxis( 16 );
texture_measure->SetInsidePixelValue( 255 );

// for loop...(etc. omitted)

block.SetSize( size );
block.SetIndex( start );
		
	crop_filter->SetExtractionRegion( block );
	crop_filter->UpdateLargestPossibleRegion();

	texture_measure->SetInput( crop_filter->GetOutput() );
	texture_measure->Compute();

	feature_vector = texture_measure->GetFeatureMeans();
			
			
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20050914/80f63e8b/attachment.html


More information about the Insight-users mailing list