gnuastro-devel
[Top][All Lists]
Advanced

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

[gnuastro-devel] [bug #50099] Cropping of small regions fails


From: Mohammad Akhlaghi
Subject: [gnuastro-devel] [bug #50099] Cropping of small regions fails
Date: Thu, 19 Jan 2017 22:05:47 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0

Update of bug #50099 (project gnuastro):

                Category:                    None => ImageCrop              
              Item Group:                    None => Crash                  
                  Status:                    None => Fixed                  
             Assigned to:                    None => makhlaghi              
             Open/Closed:                    Open => Closed                 

    _______________________________________________________

Follow-up Comment #2:

Great bug report. Thanks ;-). I was able to reproduce the problem and fix it
thanks to the tests you had already done.

The problem was in the region that is used to check the center of the image
(see the explanation under the `--checkcenter' option in the book
<https://www.gnu.org/software/gnuastro/manual/html_node/astimgcrop-options.html>).
When the total number of pixels in the image was smaller than the area of this
central region to check we got this problem.

So I added a check to use the image's width (along the dimension(s) that is
smaller) when it is smaller than the `--checkcenter' area the user asked for.
It has been pushed
<http://git.savannah.gnu.org/cgit/gnuastro.git/commit/?id=ab1452a8> to the
main repo.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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