GNU Astronomy Utilities - Tasks: task #14364, Add --size as an option to...
You are not allowed to post comments on this tracker with your current authentication level.
task #14364: Add --size as an option to ImageWarp as an alternative to --scale
Submitter: | Lee Kelvin <leeskelvin> | ||
Submitted: | Wed 08 Feb 2017 08:21:45 PM UTC | ||
Should Start On: | Wed 08 Feb 2017 12:00:00 AM UTC | Should be Finished on: | Wed 08 Feb 2017 12:00:00 AM UTC |
Category: | Warp | Priority: | 5 - Normal |
Item Group: | New feature | Status: | None |
Privacy: | Public | Assigned to: | None |
Percent Complete: | 0% | Open/Closed: | Open |
Effort: | 0.00 |
Jump to the original submission
Thu 19 Mar 2020 12:38:52 AM UTC, comment #6: |
Mohammad Akhlaghi <makhlaghi> |
Wed 18 Mar 2020 11:56:47 PM UTC, comment #5: I was thinking of a solution to this task and inspecting the warp code and I have few questions.
|
baha |
Thu 09 Feb 2017 02:22:23 PM UTC, comment #4: Hi Mohammad,
|
Lee Kelvin <leeskelvin> |
Thu 09 Feb 2017 12:47:51 PM UTC, comment #3: That sounds reasonable, then we will stick to `--size' and `--resolution' then. Thanks for the comment.
|
Mohammad Akhlaghi <makhlaghi> |
Thu 09 Feb 2017 12:33:11 PM UTC, comment #2: Hi Mohammad,
|
Lee Kelvin <leeskelvin> |
Thu 09 Feb 2017 02:27:18 AM UTC, comment #1: This is a great suggestion, it is very useful.
|
Mohammad Akhlaghi <makhlaghi> |
Wed 08 Feb 2017 08:21:45 PM UTC, original submission:
In order to scale an image using ImageWarp one must currently provide a scaling value using the --scale argument. If a user wishes to scale an image to a particular output size, this necessitates that they also know the input size such that they can calculate the scaling value.
|
Lee Kelvin <leeskelvin> |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
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.
Powered by Savane 3.13-3230.
Corresponding source code
In principle this task goes like this:
With these steps, the final output image box becomes exactly the size that is requested by this option.
About the question of image format: If you look in `bin/warp/ui.c', you'll notice that it uses the gal_array_read_one_ch_to_type function to load the input into memory. This high-level function can even load single color channels of JPEG images as well as FITS images! So the details of the file-format are abstracted into Gnuastro's data container (gal_data_t), so you don't have to worry about it :-).