cerr / CERR

Matlab/Octave based platform for Radiological Research.
https://cerr.github.io/CERR/
GNU Lesser General Public License v2.1
192 stars 102 forks source link

[Solved] Missing "padarray.m" when using "getInterTumorHeteroFeature.m" [Solved] #738

Open acnhwang opened 2 years ago

acnhwang commented 2 years ago

Updated: The problem is solved by installing Image Processing Toolbox.

I am using the getInterTumorHeteroFeature function, then it gives the following error

CERR>>  Using zValues to compute voxel thicknesses.
Warning: No rasterSegments exist for structure ROI_1, generating. 
Creating raster-scan representation of roi_1 contour.
Saving updated data for ROI_1...
Warning: No rasterSegments exist for structure All lesions, generating. 
Creating raster-scan representation of all lesions contour.
Saving updated data for All lesions...
Warning: No rasterSegments exist for structure ROI_1, generating. 
Creating raster-scan representation of roi_1 contour.
Saving updated data for ROI_1...
Warning: No rasterSegments exist for structure All lesions, generating. 
Creating raster-scan representation of all lesions contour.
Saving updated data for All lesions...
Undefined function 'padarray' for input arguments of type 'double'.

-Error in textureByPatchCombineCooccur (line 82)
-q = padarray(q,[numRowsPad numColsPad numSlcsPad],NaN,'both');

-Error in processImage (line 106)
-            clustProminence,haralCorr] = textureByPatchCombineCooccur(volToEval,...

-Error in getInterTumorHeteroFeature (line 85)
-   outS = processImage(filterType,simg,mask3M,textureParamS,NaN);

-Error in test (line 29)
-featureS = getInterTumorHeteroFeature(structNumV,textureParamS,nCenters,planC)

It seems that it requires "padarray.m" but it is missing. I would appreciate it if you could help me to solve this problem. Thank you.

adityaapte commented 2 years ago

padarray is a part of the image processing toolbox. You might be able to find an open source replacement. For example, https://github.com/gpeyre/matlab-toolboxes/blob/master/toolbox_nlmeans/toolbox/ordfilt2/padarray.m

On Tue, Jul 19, 2022 at 11:53 PM Andy Hwang @.***> wrote:

I am using the getInterTumorHeteroFeature function, then it gives the following error

CERR>> Using zValues to compute voxel thicknesses. Warning: No rasterSegments exist for structure ROI_1, generating. Creating raster-scan representation of roi_1 contour. Saving updated data for ROI_1... Warning: No rasterSegments exist for structure All lesions, generating. Creating raster-scan representation of all lesions contour. Saving updated data for All lesions... Warning: No rasterSegments exist for structure ROI_1, generating. Creating raster-scan representation of roi_1 contour. Saving updated data for ROI_1... Warning: No rasterSegments exist for structure All lesions, generating. Creating raster-scan representation of all lesions contour. Saving updated data for All lesions... Undefined function 'padarray' for input arguments of type 'double'. -Error in textureByPatchCombineCooccur (line 82)-q = padarray(q,[numRowsPad numColsPad numSlcsPad],NaN,'both'); -Error in processImage (line 106)- clustProminence,haralCorr] = textureByPatchCombineCooccur(volToEval,... -Error in getInterTumorHeteroFeature (line 85)- outS = processImage(filterType,simg,mask3M,textureParamS,NaN); -Error in test (line 29)-featureS = getInterTumorHeteroFeature(structNumV,textureParamS,nCenters,planC)

It seems that it requires "padarray.m" but it is missing. I would appreciate it if you could help me to solve this problem. Thank you.

— Reply to this email directly, view it on GitHub https://github.com/cerr/CERR/issues/738, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAGNJB2SB2EGASMXYALKPLTVU5Z5DANCNFSM54CCXTZQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>