Hi MIchael,
I apologize for my late answer.

> There are a little bit hidden (not documented), especially the one for
sextante as you have to use a plugin to create the Warping Vectors (unless
you know you just have to create a layer with this name) and another tool
to apply the transformation.

Yes. This tool (warping from vectors)  is become deprecated as last year I
reworked Warp toolbox in order to add "Affine transformation" (which is
exactly what warping from vector does - but only for vector Layer not
RasterImageLayer neither ReferenceImageLayer). Maybe I need to extend a bit
original Jump documentation.

> The only problem I found is with the resolution. If the transform
increases the image size, the resolution of the resulting image decreases
(see image attached). You added a checkbox to get a lower definition, but I
did not find an option to keep a resolution similar to the input one.

I used the javax.media.jai.Warp class fro transformation. This class can do
translate/rotation/share of an image on the same time but possibly ithas
some limits (even using different interpolation method). I should have to
study the case. Originally my need was only to use on scanned maps where
the topographic base map was already projected (and the scan more accurate
as possible), so the warp should have only correct minimal rotation, scale
(if any) and save the translation to original coordinates (creating a world
file). The lower definition was only to rescale the resolution to half if
the "reprojecting process" was requiring a huge ammount of memory.


I will give a look in the next month. As I wrote these were experimental
tools

Best regards

Peppe

Il giorno lun 11 feb 2019 alle ore 22:34 Michaël Michaud <
m.michael.mich...@orange.fr> ha scritto:
>
> Hi Peppe,
>
> Just a quick feedback. Firstly, the tools you added work fine. Thanks a
lot for that.

There are a little bit hidden (not documented), especially the one for
sextante as you have to use a plugin to create the Warping Vectors (unless
you know you just have to create a layer with this name) and another tool
to apply the transformation.

The only problem I found is with the resolution. If the transform increases
the image size, the resolution of the resulting image decreases (see image
attached). You added a checkbox to get a lower definition, but I did not
find an option to keep a resolution similar to the input one.

Michaël


Le 06/02/2019 à 12:45, Giuseppe Aruta a écrit :

Hi MIchael, Nicolas

During the last years I added two experimantal   tools for images on
OpenJUMP, available on the standard Affine transformation one:

1)
if the image is loaded via Sextante Raster Image (File>Open>Sextante..)
Tools>Warp>Affine transformation (from warping vectors).
Note that this requires at maximun 3 warping vectors on the view
(Tools<Warp>Warpimg to get the tool to draw warping vectors)

2)
if the image is loaded  via Referenced Image or similar (File>Open>File)
Tools>Warp>Affine Transformation (from parameters)
At the end of the dialog there is a check box "Force affine transformation
of image". If it is checked the affine transformation acts also on the
bufferedimage (and not only on the geometry). The option "Resize image to
half size" should help if the process takes too much time (and too much CPU)
I wrote a small tutorial here:
http://ojwiki.soldin.de/index.php?title=Warp#Applying_an_affine_transformation_to_an_image_layer

Both methods work made only affine trasformation.
And they create new GeoTIFF image files rather then "write/rewrite" a world
file.
Rewriting a world file rather then rewrite the all image should be
preferible and "less memory consuming". Unfortunatelly OpenJUMP still
cannot read and use the rotation/skewing lines on a worldfile.

Both methods should work if the image is not huge. There is no way to
control possible errors

Peppe


Il giorno mer 6 feb 2019 alle ore 09:23 Nicolas Ribot <
nicolas.ri...@gmail.com> ha scritto:

> Hello,
>
> QGIS can do that with Raster georeferencing. It works well
>
> Nicolas
>
> On Wed, 6 Feb 2019 at 09:12, Michaël Michaud <m.michael.mich...@orange.fr>
> wrote:
>
>> Hi Peppe,
>>
>> Maybe you know if we have, in OpenJUMP some tools to help referencing an
>> image which has no world file. And if not, do you know a good free tool
>> to do that.
>>
>> Thanks,
>>
>> PS : I tried to package the last svn revision with maven yesturday and
>> get a double entry for the klem extension. Any idea ?
>>
>> Michaël
>>
>>
>>
>> _______________________________________________
>> Jump-pilot-devel mailing list
>> Jump-pilot-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>>
> _______________________________________________
> Jump-pilot-devel mailing list
> Jump-pilot-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>


_______________________________________________
Jump-pilot-devel mailing
listJump-pilot-devel@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

_______________________________________________
> Jump-pilot-devel mailing list
> Jump-pilot-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to