octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #46455] Input bug for .m function


From: andrefou
Subject: [Octave-bug-tracker] [bug #46455] Input bug for .m function
Date: Wed, 25 Nov 2015 10:51:05 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:41.0) Gecko/20100101 Firefox/41.0

Follow-up Comment #3, bug #46455 (project octave):


Here is the script herebelow,
The problem seems to be related to the function "babu" that I am using. When I
use a string paameter to any function (can be "babu" or anything else), the
problem occurs. Looks like a memory issue. Do you see anything wrong with what
I am doing here.
I understand that in octave all function parameters are passed by value 

I also tried
   
essai1=babu('/home/andre/clone/search-workers/image-processing/algo/set_of_images/testsethamed/Images/3.jpg');

----------------------------
function loaded = image_loader(s)
%let the user launch some matlab functions on the set of pictures realized by
hamed

l={1;2;6;9;10;12;14;15;17;19;20;21;25;26;28;29;35;44;50;57;58;59;60;61;62;63;64;65;66;67;68;69;70;71;72;73;74;75;76;77;78;79;80;81;82;83;84;85;86;87;88};

for i =1:51 
    a=l{[i,1]};
   
text=sprintf('/home/andre/clone/search-workers/image-processing/algo/set_of_images/testsethamed/Images/%d.jpg',a);
    essai1=babu(text);
    disp(essai1)
end
loaded=1;

-------------------------------
function Quality=babu(img)
im=imread(img);

if length(size(im))>2
y=rgb2gray(im);
else
y=im;
end


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?46455>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]