bugGNU Astronomy Utilities - Bugs: bug #63490, Crop not working with certain...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #63490: Crop not working with certain concave polygons

Submitter:  Mohammad Akhlaghi <makhlaghi>
Submitted:  Thu 08 Dec 2022 06:02:25 PM UTC
   
 
Category:  Crop Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Output not reasonable
Status:  None Privacy:  Public
Assigned to:  sks_15 Open/Closed:  Open

Discussion

Thu 08 Dec 2022 11:38:04 PM UTC, comment #2: 

I just attached a 'polygon-2.reg' file that Juan sent. It contains a different polygon but with the same problem.

(file #54075)

Mohammad Akhlaghi <makhlaghi>
Group administrator
Thu 08 Dec 2022 06:04:50 PM UTC, comment #1: 

Here is a screenshot of the outputs of the commands in the previous post (in the attached 'polygon-1-screenshot.png' file):



The region is shown as the blue polygon, and the white pixels are the actually cropped pixels when given this region.

Mohammad Akhlaghi <makhlaghi>
Group administrator
Thu 08 Dec 2022 06:02:25 PM UTC, original submission:  

The '--polygon' feature of crop is not selecting all the pixels within some special concave polygons!

To reproduce the problem on the polygon that this bug was found on, download the attached 'polygon-1.reg' and run the commands below in the downloaded directory (the first will just make an empty image to run crop on):


$ astarithmetic 1000 1000 2 makenew -oempty.fits

$ astcrop empty.fits --mode=img --polygon polygon-1.reg \
          --polygonout -opolygon-1.fits


Sachin, since you first implemented this feature I assigned this bug to you. But if you don't have time, no problem, just let us know and I'll remove your name ;-).

This bug was reported by Juan Miro; thanks Juan!

Mohammad Akhlaghi <makhlaghi>
Group administrator

 

Attached Files

Attached Files
file #54075:  polygon-2.reg added by makhlaghi (344B - text/x-ms-regedit)
file #54073:  polygon-1.reg added by makhlaghi (343B - text/x-ms-regedit)

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

Carbon-Copy List
  • -email is unavailable- added by makhlaghi (Submitted the item)
  • -email is unavailable- added by makhlaghi
  •  

    Votes

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    History

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-12-08 makhlaghi Attached File- Added polygon-2.reg, #54075
    2022-12-08 makhlaghi Attached File- Added polygon-1.reg, #54073
        Attached File- Added polygon-1-screenshot.png, #54074
        Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.16-598c.
    Corresponding source code