- Let you choose a kap file, edit the calibration marks and boundaries ....
- ... or open an image file of a raster map (bmp, png, etc), insert some calibration marks (at least two)...
- ... define the boundaries for the chart ....
- ... and save the image as a kap file to use with OpenCPN or other compatible software.
Once a raster image is saved as a kap file, can be edited as often as desired.
Windows:
Linux:
For kap files, is _very_ important you keep a copy of the original file. This is because is
converted to PNG and then to kap again. A new file header is generated so you can loose info.
For pictures, the program will not modify the original file images(bmp,png,etc,other than kap).
[+][-] - [PgUp,PgDown] | Zoom in /out |
[Insert] or [i] | Insert a new calibration point at mouse position |
[Delete] or [d] | Delete calibration point under mouse position |
[b] | Insert a boundary point at mouse position |
[v] | Delete a boundary point under mouse position |
[home] or [c] | Move image to cursor |
[0] | Restore zoom |
[Ctrl +s] | Open save dialog |
[Esc] | Exit program |
You can zoom in and then drag the map with the mouse
Right click on calibration mark to enter coordinates. Use a minus (-) sign for S/W locations, only with the degrees field.
Right click elsewhere to edit map information
The blue circles are the vertices of a polygon (a rectangle in the most basic form), and everything
outside that polygon will be ignored by OpenCPN. For example, you could calibrate
a print screen without edit borders or other undesirables parts of the image. Just define a proper
boundary and the non interesting zones will be hidden.
You can invoke "imgcalkap imagefile" to open "imagefile" and start calibrating.
Unpack the tgz file in a directory of your choice, for example :
#cp imgcalkap-0.2.tgz /tmp
#cd /tmp
#gunzip -cv imgcalkap-0.2.tgz | tar -xv
#cd imgcalkap-0.2
Then type "make".
Hopefully, you will get an executable file named imgcalkap. Try: #./imgcalkap
If you are satisfied with the result, you can copy the program somewhere into the path, for example
#cp imgcalkap /usr/local/bin
You will need to compile OpenCv, wxWidgets and FreeImage under MinGw, in order to use the same Makefile
You also can create a Visual Studio project, see the defines in the Makefile to exclude Linux libs
If you use MinGw, look a the Makefile and point the OPENCV_DIR variable to your OpenCV path. Then type "make".
-MdJ, author of the imgkap tool
-OpenCPN Team
imgkap - image to BSB Charts - by MdJ
http://www.dacust.com/inlandwaters/imgkap/
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details: http://www.gnu.org/copyleft/gpl.html
You can find the software here:
http://github.com/dgiardini/imgcalkap
Copyright (C) 2014 - David Giardini - dgiardini @ gmail.com