[Top][All Lists]

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

[Octave-bug-tracker] [bug #49456] imcrop width height are off by one

From: anonymous
Subject: [Octave-bug-tracker] [bug #49456] imcrop width height are off by one
Date: Thu, 27 Oct 2016 13:30:12 +0000 (UTC)
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/602.1.50 (KHTML, like Gecko) Version/10.0 Safari/602.1.50


                 Summary: imcrop width height are off by one
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Thu 27 Oct 2016 01:30:09 PM UTC
                Category: Octave Forge Package
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Matlab Compatibility
                  Status: None
             Assigned to: None
         Originator Name: Kustaa Nyholm
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.0.0
        Operating System: Mac OS



function imcrop(image, [x_ini y_ini width height])

I've seen:
but I'm not convinced.

If I do in Octave:

S=imcrop(M,[1 1 10 10]);

I get:

error: imcrop: A(I,J,...): index to dimension 1 out of bounds; value 11 out of
bound 10

If I do in Octave: 

S=imcrop(M,[0 0 10 10]);

I get:

error: imcrop: subscript indices must be either positive integers less than
2^31 or logicals

In Matlab I get no error messages and I get back a matrix of elements from the
intersection of the specified rectangle and the image bouding rectangle. 


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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