0

are there "imshowpair" matlab function alternative in octave function or method?

when try it?

error: 'imshowpair' undefined near line 15, column 15

The 'imshowpair' function belongs to the image package from Octave Forge
but has not yet been implemented.

Please read <https://www.octave.org/missing.html> to learn how you can
contribute missing functionality.

the code:

close all
clear
clc
i=imread('1.jpg');
##BW=imbinarize(i);
BW=im2bw(i);
figure;
imshow(BW);
title('Binary image')
x=input("Enter whatever u want")
cc8=bwconncomp(BW,x);
L8=labelmatrix(cc8);
RGBLabel=label2rgb(L8,'jet','k','shuffle');
figure
imshowpair(L8,RGBLabel,'montage');
title(['lable img with ',int2str(x),'connctivity']);
imwrite(RGBLabel,'label.png');

Best Regards

Zaman
  • 811
  • 7
  • 15

0 Answers0