Re: difficulty with bUnwapj transfomations in macros

Posted by Ignacio Arganda-Carreras-2 on
URL: http://imagej.273.s1.nabble.com/difficulty-with-bUnwapj-transfomations-in-macros-tp5017916p5017973.html

OK, I believe I have fixed the related bug. At least now the registration
is properly done using images of different sizes and with different levels
of subsampling.

I have just made a new release. Please, let me know if it fixes your
problem as well.

Cheers!

ignacio

On Mon, Jan 30, 2017 at 1:59 PM, Ignacio Arganda-Carreras <
[hidden email]> wrote:

> Indeed, it seems to be related to the different sizes and the scaling. I'm
> working on it.
>
> Thanks for reporting!
>
> On Mon, Jan 30, 2017 at 12:42 PM, Jiří Borovec <[hidden email]>
> wrote:
>
>> I tried to swap the X, Y coordinates and also use both direct and inverse
>> transform, but nothing helps, never the less if the actual approach is
>> used
>> on a rectangular images with elastic transformation, it fits perfectly
>> (see
>> attachment). From my point of view the problems comes with different image
>> sizes that probably instead dividing 1.15 (scale) it is multiplied...
>>
>> [image: Inline images 1]
>>
>> --
>> Best regards, Jiri Borovec
>> ------------------------------------------------------------------------
>> Ing. Jiri Borovec, MSc  <[hidden email]>
>> PhD student at CMP CTU, http://cmp.felk.cvut.cz/~borovji3
>>
>> On 30 January 2017 at 11:52, Ignacio Arganda-Carreras <
>> [hidden email]> wrote:
>>
>> > Could it be that you are reading the transformation the wrong way?
>> >
>> > The raw transformation stores for each position in the target image, the
>> > indexes of the source image that are needed to fill the warped result in
>> > target space.
>> >
>> > On Sun, Jan 29, 2017 at 8:21 PM, Ignacio Arganda-Carreras <
>> > [hidden email]> wrote:
>> >
>> > > Hello Jiri,
>> > >
>> > > Sorry for the late answer. I pay more attention to the ImageJ forum
>> > > <http://forum.imagej.net/> these days.
>> > >
>> > > This can be a bug, I will look into it and be back to you.
>> > >
>> > > Cheers!
>> > >
>> > > ignacio
>> > >
>> > > On Wed, Jan 18, 2017 at 1:52 PM, Jiří Borovec <
>> [hidden email]>
>> > > wrote:
>> > >
>> > >> Hello all,
>> > >> may I have question about the bUnwarpJ plugin. I already searched
>> over
>> > >> Internet, but not succeed much. I have a case - register two images
>> > >> together, then warp the source image to target image and in the end
>> > >> generate the raw transformation to be able show some important
>> points in
>> > >> the warped image according their positions in source image. (In this
>> > >> moment
>> > >> I don't race much about quality of the registration.) This perfectly
>> > works
>> > >> when both image are the same size but in following case the source
>> image
>> > >> is
>> > >> smaller then the target one. Would you have an advice where am I
>> making
>> > >> mistake?
>> > >>
>> > >> In attachment are two images to be registered together with two list
>> of
>> > >> related points. there is the macro I used for registration, warping
>> > image
>> > >> and converting raw transformation and also there is a script that
>> parse
>> > >> the
>> > >> raw transform (as I understood it displacement field for X and Y
>> > >> coordinate) and show the points in image for input source image and
>> > warped
>> > >> image.
>> > >>
>> > >> Thanks
>> > >> --
>> > >> Best regards, Jiri Borovec
>> > >> ------------------------------------------------------------
>> > ------------
>> > >> Ing. Jiri Borovec, MSc  <[hidden email]>
>> > >> PhD student at CMP CTU, http://cmp.felk.cvut.cz/~borovji3
>> > >>
>> > >> --
>> > >> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>> > >>
>> > >
>> > >
>> > >
>> > > --
>> > > Ignacio Arganda-Carreras, Ph.D.
>> > > Ikerbasque Research Fellow
>> > > Departamento de Ciencia de la Computacion e Inteligencia Artificial
>> > > Facultad de Informatica, Universidad del Pais Vasco
>> > > Paseo de Manuel Lardizabal, 1
>> > > 20018 Donostia-San Sebastian
>> > > Guipuzcoa, Spain
>> > >
>> > > Phone : +34 943 01 73 25 <943%2001%2073%2025>
>> > > Website: http://sites.google.com/site/iargandacarreras/
>> > > <http://biocomp.cnb.csic.es/~iarganda/index_EN.html>
>> > >
>> >
>> >
>> >
>> > --
>> > Ignacio Arganda-Carreras, Ph.D.
>> > Ikerbasque Research Fellow
>> > Departamento de Ciencia de la Computacion e Inteligencia Artificial
>> > Facultad de Informatica, Universidad del Pais Vasco
>> > Paseo de Manuel Lardizabal, 1
>> > 20018 Donostia-San Sebastian
>> > Guipuzcoa, Spain
>> >
>> > Phone : +34 943 01 73 25
>> > Website: http://sites.google.com/site/iargandacarreras/
>> > <http://biocomp.cnb.csic.es/~iarganda/index_EN.html>
>> >
>> > --
>> > ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>> >
>>
>> --
>> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>>
>
>
>
> --
> Ignacio Arganda-Carreras, Ph.D.
> Ikerbasque Research Fellow
> Departamento de Ciencia de la Computacion e Inteligencia Artificial
> Facultad de Informatica, Universidad del Pais Vasco
> Paseo de Manuel Lardizabal, 1
> 20018 Donostia-San Sebastian
> Guipuzcoa, Spain
>
> Phone : +34 943 01 73 25 <943%2001%2073%2025>
> Website: http://sites.google.com/site/iargandacarreras/
> <http://biocomp.cnb.csic.es/~iarganda/index_EN.html>
>



--
Ignacio Arganda-Carreras, Ph.D.
Ikerbasque Research Fellow
Departamento de Ciencia de la Computacion e Inteligencia Artificial
Facultad de Informatica, Universidad del Pais Vasco
Paseo de Manuel Lardizabal, 1
20018 Donostia-San Sebastian
Guipuzcoa, Spain

Phone : +34 943 01 73 25
Website: http://sites.google.com/site/iargandacarreras/
<http://biocomp.cnb.csic.es/~iarganda/index_EN.html>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html