I have created matlab function for 8 bit binary multiplier. I have to use this multiplier function (.m file) to perform multiplication of two images. Can anyone suggest me how to do this
Thanks for your answer Abhinav Jha. I completed the multiplication. But my simulation is running quite long time. This is my code. Can you provide any idea to solve this?
I = imread('peppers.png');
%I = imread('11.jpg');
[m n]=size(I);
%I=im2double(I);
for i=1:m
for j=1:n
%ui = typecast(pi, 'uint8');
b(i,j)= MULTIPLIER_ACCURATE(I(i,j),I(i,j));%just for trail
You could find out which portion of your code is taking the most time using the debug routines in Matlab. I have a feeling it is the MULTIPLIER_ACCURATE routine since everything else seems quite straightforward.