Open umgpy opened 4 years ago
@umgpy We are working on this. Could you please provide the image and mask being used so we may verify the problem and solution?
@nathanhillyer I may not be able to provide the image that I was using since it's part of our internal dataset, however I have replicated the error with the publicly available TCIA dataset. Image and mask
used are uploaded here.
`# Run CoLlage Algorithm.Prepare
full_images = collage.execute()
Image shape = (240, 240, 155) Mask size = 14x17x24 Image shape (cropped and padded) = (24, 27, 26) Note: Dividing image values by 255 to convert to 0-1 range Calculating pixel gradients: Calculating pixel gradients done. Calculating dominant gradient angles using SVD for each image patch of size 5x5 Window patch shape for dominant angle calculation = (11, 11, 1) Calculating dominant gradient angles done. Dominant angles shape = (14, 17, 26, 2) Calculating haralick features of angles: Calculating features for angle 0: Rescaling dominant angles to 64 unique values. Rescaling dominant angles done.
IndexError Traceback (most recent call last)
@umgpy Thank you, we've corrected this issue on the latest version.
Please run docker pull radxtools/collageradiomics-examples:latest
and try it out.
@nathanhillyer Thank you for the quick fix, I shall give it a try.
Hi I was trying the collage module on the example jupyter notebook through the docker image. However on trying to pass a numpy array of a nifti image, collage.execute() results in an error. I am adding the error below, please let me know if anything more is required to replicate this error. Thanks
Error while calculating the collage features.