Error using imshow function
Afficher commentaires plus anciens
the error I get is
Error using imageDisplayValidateParams Expected input number 2, [LOW HIGH], to be non-NaN.
Error in checkDisplayRange (line 10) validateattributes(display_range, {'numeric'},...
Error in imageDisplayValidateParams (line 53) common_args.DisplayRange = checkDisplayRange(common_args.DisplayRange,mfilename);
Error in imageDisplayParseInputs (line 78) common_args = imageDisplayValidateParams(common_args);
Error in imshow (line 219) [common_args,specific_args] = ...
Error in aceDet (line 14) figure; imshow(SWIR_ACEimgNorm,[])
Error in mat2op (line 150) [VIS_ACEimgNorm,VIS_ACEresults,VIS_ACEimg,SWIR_ACEresults,SWIR_ACEimg, SWIR_ACEimgNorm] = aceDet(VIS_M, VIStarget,SWIR_M, SWIRtarget,m,n);
The code is
function [VIS_ACEimgNorm,VIS_ACEresults,VIS_ACEimg,SWIR_ACEresults,SWIR_ACEimg, SWIR_ACEimgNorm] = aceDet(VIS_M, VIStarget,SWIR_M, SWIRtarget,m,n)
% Apply ACE
VIS_ACEresults = hyperAce(VIS_M, VIStarget);
VIS_ACEimg = hyperConvert3d(VIS_ACEresults, m, n, 1);
VIS_ACEimgNorm = hyperNormalize(VIS_ACEimg);
SWIR_ACEresults = hyperAce(SWIR_M, SWIRtarget);
SWIR_ACEimg = hyperConvert3d(SWIR_ACEresults, m, n, 1);
SWIR_ACEimgNorm = hyperNormalize(SWIR_ACEimg);
figure; imshow(VIS_ACEimgNorm,[])
title('VIS ACE');
figure; imshow(SWIR_ACEimgNorm,[])
title('SWIR ACE');
The VIS_ACEimgNorm will show but the SWIR_ACEimgNorm come up with the error. The variables for VIS_M, VIStarget,SWIR_M, SWIRtarget,m,n are:
- VIS_M 117x10000 double
- VIStarget 117x1 double
- SWIR_M 237x10000 double
- SWIRtarget 237x10000 double
- m 100
- n 100
Please let me know is you need more information and thank you for any help.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Hyperspectral Image Processing dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!