[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #54370] imcrop gives incorrect results in 2.8.
From: |
anonymous |
Subject: |
[Octave-bug-tracker] [bug #54370] imcrop gives incorrect results in 2.8.0 |
Date: |
Tue, 24 Jul 2018 21:08:37 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:61.0) Gecko/20100101 Firefox/61.0 |
URL:
<http://savannah.gnu.org/bugs/?54370>
Summary: imcrop gives incorrect results in 2.8.0
Project: GNU Octave
Submitted by: None
Submitted on: Wed 25 Jul 2018 01:08:36 AM UTC
Category: Octave Forge Package
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Incorrect Result
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 4.4.0
Operating System: Microsoft Windows
_______________________________________________________
Details:
As a new feature imcrop should now adjust to the image boundaries.
Unfortunately the cropping a) is incorrect even if 'rect' is fully within the
image size, b) gives bad results if near the boundary, c) ends in an error
where it should not. Examples 1-3, 4-5, 6 below, also comparison to v2.6.2 (as
originally provided with Octave 4.4.0). The crop region is chosen to make the
behaviour more visible. No picture comparison done, only size check of
result.
original RGB image 4608x3584 width x height (landscape)
I = imread('P6302571sph.jpg');
1) imcrop(I , [3500 1600 1100 1980])
2) imcrop(I , [500 100 1100 1980])
3) imcrop(I , [1 1 1100 1980])
4) imcrop(I , [4600 3580 7 3])
5) imcrop(I , [4600 3580 8 4])
6) imcrop(I , [4600 3580 9 5])
v2.8.0 - dimension of cropped image
1) 1981x85x3 <= size incorrect
2) 1981x1101x3
3) 1981x1101x3
4) 4x0x3 <= bad
5) 5x0x3 <= bad
6) error: cdata(3585,_,_,_): but cdata has size 3584x4608x3 <= should not
occur
v2.6.2 - all results as expected/defined
1) 1981x1101x3
2) 1981x1101x3
3) 1981x1101x3
4) 4x8x3
5) 5x9x3
6) error: cdata(3585,_,_,_): but cdata has size 3584x4608x3
System: fresh install of GNU Octave, version 4.4.0 on Windows 7 Home Premium.
Octave was configured for "x86_64-w64-mingw32". Comes with pkg image 2.6.2.
Upgrade to 2.8.0 with 'pkg install -forge image'.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?54370>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #54370] imcrop gives incorrect results in 2.8.0,
anonymous <=