<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">Hi,</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">I'm using IPD and SIVP, This is my code</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><br></div><div><div><font face="times new roman, new york, times, serif">Im = imread('C:\Users\Pictures\Lion2.png');</font></div><div><br></div><div><font face="times new roman, new york, times, serif">[h,l,c]=size(Im);</font></div><div><font face="times new roman, new york, times, serif">Im2 = zeros(h,l,c);</font></div><div><font face="times new roman, new york, times, serif">for m = 1 : 76</font></div><div><span style="font-family: 'times new roman', 'new york', times, serif; ">    for i = 1*m :
 8*m</span><br></div><div><font face="times new roman, new york, times, serif">    for j = 1 : 16</font></div><div><font face="times new roman, new york, times, serif">        for k = 1 : 3</font></div><div><font face="times new roman, new york, times, serif"> </font><font face="times new roman, new york, times, serif">            Im2(i,j,k)=</font><span style="font-family: 'times new roman', 'new york', times, serif; "> </span><span style="font-family: 'times new roman', 'new york', times, serif; ">Im(i,j,k);</span></div><div><font face="times new roman, new york, times, serif">        end;</font></div><div><font face="times new roman, new york, times, serif">    end;</font></div><div><font face="times new roman, new york, times, serif">end;</font></div><div><font face="times new roman, new york, times, serif">end;</font></div><div><span
 style="font-family: 'times new roman', 'new york', times, serif; ">imshow(Im2);</span><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'Times New Roman'; background-color: transparent; font-style: normal; "><span style="font-family: 'times new roman', 'new york', times, serif; "><br></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal; "><span style="font-family: 'times new roman', 'new york', times, serif; ">and error message</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal; "><span style="font-family: 'times new roman', 'new york', times, serif; "><br></span></div><div style="background-color: transparent; "><span><font face="times new roman, new york, times, serif"><div
 style="background-color: transparent; "> !--error 17 </div><div style="background-color: transparent; ">: stack size exceeded (Use stacksize function to increase it).</div><div style="background-color: transparent; ">at line     100 of function generic_i_hm called by :  </div><div style="background-color: transparent; ">at line       5 of function %i_i_hm called by :  </div><div style="background-color: transparent; ">            Im2(i,j,k)=a;</div><div style="background-color: transparent; ">at line      17 of exec file called by :    </div><div style="background-color: transparent; ">exec('C:\Users\Pictures\Mosaic.sce', -1)</div><div style="background-color: transparent; "><br></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; font-style: normal; ">Thank
 you</div></font></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal; "><span style="font-family: 'times new roman', 'new york', times, serif; "><br></span></div></div></div></body></html>