How to switch of lines in crontrol point editor

85 views
Skip to first unread message

Torsten Bronger

unread,
Apr 28, 2014, 2:21:16 PM4/28/14
to hugi...@googlegroups.com
Hallöchen!

Recent versions of Hugin draw thin black lines between the control
point and its counterpart in the control point editor. How can I
switch that off?

Tschö,
Torsten.

--
Torsten Bronger Jabber ID: torsten...@jabber.rwth-aachen.de
or http://bronger-jmp.appspot.com

Terry Duell

unread,
Apr 28, 2014, 7:37:12 PM4/28/14
to hugi...@googlegroups.com
Hello Torsten,

On Tue, 29 Apr 2014 04:21:16 +1000, Torsten Bronger
<bro...@physik.rwth-aachen.de> wrote:

> Hallöchen!
>
> Recent versions of Hugin draw thin black lines between the control
> point and its counterpart in the control point editor. How can I
> switch that off?

I suspect that's a bug. Which versions/OS?
I have seen that, but only fleetingly. No sign of it in the latest source
(2014.1.0).

Cheers,
--
Regards,
Terry Duell

Torsten Bronger

unread,
May 5, 2014, 3:52:15 PM5/5/14
to hugi...@googlegroups.com
Hallöchen!

Terry Duell writes:

> On Tue, 29 Apr 2014 04:21:16 +1000, Torsten Bronger
>
>> Recent versions of Hugin draw thin black lines between the
>> control point and its counterpart in the control point editor.
>> How can I switch that off?
>
> I suspect that's a bug. Which versions/OS?
>
> I have seen that, but only fleetingly. No sign of it in the latest
> source (2014.1.0).

I see it in current hg Hugin on Ubuntu 14.04.  You load one image,
go to the control points tab, and set a control point at the very
left of the left-hand instance of the image.  Then, on the
right-hand instance of the same image, you set a control point at
the very right of the image.  This connects in both panels both
control points with a black line, and this is bad for doing lens
calibration with Hugin.

Tschö,
Torsten.

Torsten Bronger

unread,
May 5, 2014, 12:47:10 PM5/5/14
to hugi...@googlegroups.com
Hallöchen!

Terry Duell writes:

> On Tue, 29 Apr 2014 04:21:16 +1000, Torsten Bronger
> <bro...@physik.rwth-aachen.de> wrote:
>
>> Recent versions of Hugin draw thin black lines between the
>> control point and its counterpart in the control point editor.
>> How can I switch that off?
>
> I suspect that's a bug. Which versions/OS?
>
> I have seen that, but only fleetingly. No sign of it in the latest
> source (2014.1.0).

I see it in current hg Hugin on Ubuntu 14.04. You load one image,
go to the control points tab, and set a control point at the very
left of the left-hand instance of the image. Then, on the
right-hand instance of the same image, you set a control point at
the very right of the image. This connects in both panels both
control points with a black line, and this is bad for doing lens
calibration with Hugin.

Terry Duell

unread,
May 7, 2014, 6:17:49 AM5/7/14
to hugi...@googlegroups.com
On Tue, 06 May 2014 05:52:15 +1000, Torsten Bronger
<torsten...@gmail.com> wrote:

[snip]

>
> I see it in current hg Hugin on Ubuntu 14.04. You load one image,
> go to the control points tab, and set a control point at the very
> left of the left-hand instance of the image. Then, on the
> right-hand instance of the same image, you set a control point at
> the very right of the image. This connects in both panels both
> control points with a black line, and this is bad for doing lens
> calibration with Hugin.
>

OK, now I understand. I have just tried that with a build of the current
tip (2014.1.0) and can reproduce it, except here the points are connected
with a white line, but the alignment mode is "horizontal line" so I think
a line connecting the points is to be expected, and desirable.
If the alignment mode is "normal" no line is drawn; if "vertical line" or
a new line ("line 3") a white line is also drawn.
So, here it isn't a problem, i.e. I think it is expected behaviour and I
don't know of any way of switching off these lines.

Torsten Bronger

unread,
May 7, 2014, 6:54:12 AM5/7/14
to hugi...@googlegroups.com
Hallöchen!

Terry Duell writes:

> [...]
>
> If the alignment mode is "normal" no line is drawn; if "vertical
> line" or a new line ("line 3") a white line is also drawn.
>
> So, here it isn't a problem, i.e. I think it is expected behaviour
> and I don't know of any way of switching off these lines.

Well, the problem is that if you mark an edge in the image with
control points, you quickly don't see the edge anymore because it is
buried under these lines.

Torsten Bronger

unread,
May 8, 2014, 3:29:26 AM5/8/14
to hugi...@googlegroups.com
Hallöchen!

Terry Duell writes:

> [...]
>
> OK, now I understand. I have just tried that with a build of the
> current tip (2014.1.0) and can reproduce it, except here the
> points are connected with a white line, but the alignment mode is
> "horizontal line" so I think a line connecting the points is to be
> expected, and desirable.

I found out to switch it off by changing the source code. To anyone
who finds this through Google, it is in
hugin/src/hugin1/hugin/CPImageCtrl.cpp, at
DisplayedControlPoint::Draw. You have to comment out the following
line:

if(m_line)
{
// DrawLine(dc); <----
DrawCross(dc, p, l);
DrawCross(dc, p2, l);
}

I'm working according to
http://hugin.sourceforge.net/tutorials/calibration/en.shtml (hey, it
was written by you), and for this, the lines are very cumbersome.
But I understand that my use case is exotic. Still, Hugin's
settings dialog is not crowded, so maybe there's room for another
checkbox ... ;-)
Reply all
Reply to author
Forward
0 new messages