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

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

[Octave-bug-tracker] [bug #48942] Process image take long time


From: Sasitha Iresh
Subject: [Octave-bug-tracker] [bug #48942] Process image take long time
Date: Mon, 29 Aug 2016 17:49:57 +0000 (UTC)
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36

URL:
  <http://savannah.gnu.org/bugs/?48942>

                 Summary: Process image take long time
                 Project: GNU Octave
            Submitted by: sasithairesh
            Submitted on: Mon 29 Aug 2016 05:49:55 PM GMT
                Category: Performance
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Performance
                  Status: None
             Assigned to: None
         Originator Name: Sasitha Iresh
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.0.3
        Operating System: Microsoft Windows

    _______________________________________________________

Details:

Processing image function .m files take minutes and full process in OS
while matlab do it in few seconds and lower processing power .

image processing function:

function img1= add_my(img1,img2)
    [m1,n1] = size(img1);
    [m2,n2] = size(img2);


    if m1==m2
        if n1==n2
            for i = 1:m1
               for j = 1:n1
                    img1(i,j) = img1(i,j)+img2(i,j);
                    if img1(i,j)>255
                        img1(i,j) = 255;
                    end
               end
            end
        end
    end




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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