.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man 5.01 (Pod::Simple 3.43) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "IMAGE2GRIDMAP 1" .TH IMAGE2GRIDMAP 1 2024-03-20 "perl v5.38.2" "Mobile\ Robot\ Programming\ Toolkit\ -\ MRPT" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH NAME image2gridmap \- Convert any image into an MRPT .gridmap file .SH SYNOPSIS .IX Header "SYNOPSIS" image2gridmap [\-w] [\-\-py <0.0>] [\-\-px <0.0>] [\-\-cy <0.0>] [\-\-cx <0.0>] \-r <0.1> [\-o ] \-i [\-\-] [\-\-version] [\-h] .SH "USAGE EXAMPLES" .IX Header "USAGE EXAMPLES" \&\fBMinimal call to convert an image into a gridmap, (0,0) being at image center:\fR .PP image2gridmap \-i \fImap.png\fR \-\-res 0.10 .PP \&\fBUse custom (0,0) location with pixel coords. of (0,0):\fR .PP image2gridmap \-i \fImap.png\fR \-\-res 0.10 \-\-px 120 \-\-py 100 .PP \&\fBUse custom (0,0) location coordinates of image center:\fR .PP image2gridmap \-i \fImap.png\fR \-\-res 0.10 \-\-cx \-25.10 \-\-cy 14.50 .SH DESCRIPTION .IX Header "DESCRIPTION" \&\fBimage2gridmap\fR is a command-line application to convert arbitrary grayscale images into MRPT `.gridmap.gz` files. A `.gridmap.gz` file is just a gz-compressed file containing the serialization of an object of type `mrpt::maps::COccupancyGridMap2D`. .PP USAGE: .PP .Vb 3 \& image2gridmap [\-w] [\-\-py <0.0>] [\-\-px <0.0>] [\-\-cy <0.0>] [\-\-cx <0.0>] \& \-r <0.1> [\-o ] \-i [\-\-] \& [\-\-version] [\-h] .Ve .PP Where: .PP .Vb 2 \& \-w, \-\-overwrite \& Force overwrite target file without prompting. \& \& \-\-py <0.0> \& (Use either \-\-cx or \-\-px) Pixel verticl coordinate of the origin of \& coordinates in the image \& \& \-\-px <0.0> \& (Use either \-\-cx or \-\-px) Pixel horizontal coordinate of the origin of \& coordinates in the image \& \& \-\-cy <0.0> \& (Use either \-\-cy or \-\-py) Y coordinate of the image central pixel \& (Default:0) \& \& \-\-cx <0.0> \& (Use either \-\-cx or \-\-px) X coordinate of the image central pixel \& (Default:0) \& \& \-r <0.1>, \-\-res <0.1> \& (required) Resolution: size (in meters) of one pixel in the image \& (required) \& \& \-o , \-\-output \& Name of the output file (*.gridmap, *.gridmap.gz) \& \& \-i , \-\-input \& (required) Input image file (required) (*.png,*.jpg,...) \& \& \-\-, \-\-ignore_rest \& Ignores the rest of the labeled arguments following this flag. \& \& \-\-version \& Displays version information and exits. \& \& \-h, \-\-help \& Displays usage information and exits. .Ve .SH BUGS .IX Header "BUGS" Please report bugs at https://github.com/MRPT/mrpt/issues .SH "SEE ALSO" .IX Header "SEE ALSO" The application list and their documentation: https://docs.mrpt.org/reference/latest/applications.html .SH AUTHORS .IX Header "AUTHORS" \&\fBimage2gridmap\fR is part of the Mobile Robot Programming Toolkit (MRPT), and was originally written by Jose Luis Blanco. .PP This manual page was written by Jose Luis Blanco . .SH COPYRIGHT .IX Header "COPYRIGHT" This program is free software; you can redistribute it and/or modify it under the terms of the BSD License. .PP On Debian GNU/Linux systems, the complete text of the BSD License can be found in `/usr/share/common\-licenses/BSD'.