[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnuastro-commits] master 275a27e: Small correction to section crop in I
From: |
Mohammad Akhlaghi |
Subject: |
[gnuastro-commits] master 275a27e: Small correction to section crop in ImageCrop |
Date: |
Sat, 24 Dec 2016 23:20:43 +0000 (UTC) |
branch: master
commit 275a27ed7dfaf6e3fcb87839668445b8086216b1
Author: Mohammad Akhlaghi <address@hidden>
Commit: Mohammad Akhlaghi <address@hidden>
Small correction to section crop in ImageCrop
In the `Crop section syntax' of the manual, it was stated that "there are
no -sub-pixels in ImageCrop". This can cause confusion, because in defining
the pixel centers to crop from (not in section crop mode), we do allow
sub-pixel positioning. In general, it is only the cropping that is not done
in sub-pixels, not the positions). For the `--section' option, this is
unique (and it only accepts integers). The corrected paragraph should
(hopefully) not cause this confusion.
---
doc/gnuastro.texi | 26 +++++++++++++-------------
1 file changed, 13 insertions(+), 13 deletions(-)
diff --git a/doc/gnuastro.texi b/doc/gnuastro.texi
index dd2bcf4..6e506e1 100644
--- a/doc/gnuastro.texi
+++ b/doc/gnuastro.texi
@@ -6549,19 +6549,19 @@ to be empty, ImageCrop can fill them for you based on
the input image
sizes.
@cindex Define section to crop
-To define a box, you need the coordinates of two points: the first
-pixel in the box at (@code{X1}, @code{Y1}) and the pixel which is
-immediately outside of the box (@code{X2, @code{Y2}}), four
-coordinates in total. The four coordinates can be specified with one
-string in this format: @command{X1:X2,Y1:Y2}. It is given to the
address@hidden option. Therefore, the pixels along the first axis
-that are @address@hidden and <@command{X2} will be included in
-the cropped image. The same goes for the second axis. Note that each
-different term will be read as an integer, not a float (there are no
-sub-pixels in ImageCrop, you can use ImageWarp to shift the matrix
-with any sub-pixel distance, then crop the warped image, see
address@hidden). Also, following the FITS standard, pixel indexes
-along each axis start from unity(1) not zero(0).
+To define a box, you need the coordinates of two points: the first pixel in
+the box at (@code{X1}, @code{Y1}) and the pixel which is immediately
+outside of the box (@code{X2, @code{Y2}}), four coordinates in total. The
+four coordinates can be specified with one string in this format:
address@hidden:X2,Y1:Y2}. It is given to the @option{--section}
+option. Therefore, the pixels along the first axis that are
address@hidden@command{X1} and <@command{X2} will be included in the cropped
+image. The same goes for the second axis. Note that each different term
+will be read as an integer, not a float (ImageCrop does not crop below the
+pixel resolution, you can use ImageWarp to shift/warp the image by any
+sub-pixel amount, then crop the warped image, see @ref{ImageWarp}). Also,
+following the FITS standard, pixel indexes along each axis start from
+unity(1) not zero(0).
@cindex Crop section format
You can omit any of the values and they will be filled automatically.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnuastro-commits] master 275a27e: Small correction to section crop in ImageCrop,
Mohammad Akhlaghi <=