Project

General

Profile

Opaque square in Tomography

Added by Scott Stagg over 14 years ago

Hi all,

I have a small bug in MSI-Tomography. I'm using Leg. 1.6 on Ubuntu with gnome as my window manager. The bug is in the Tomography node. In the cross-correlation window, where the viewer is supposed to be picking the cross-correlation peak, there is a big red opaque square covering the peak. Mostly, this is just an annoyance, but it would be nice to be able to see the quality of the peak. Is there an easy way I could just go into the code and change the type of the marker for picking the peak?

Thanks,
Scott


Replies (1)

Re: Opaque square in Tomography - Added by Jim Pulokas over 14 years ago

The code that controls this is in the ImageViewer python package, rather than in leginon.
To experiment with different bitmap images for the correlation peak, you can either modify the code to use a different bitmap, or you can just change the bitmap image to a different image, using the same filename.
The name of the bitmap is specified in plugins.py on line 450:

bitmap = icons.icon('target')

Which means it will read "target.png" as the bitmap. The bitmaps it is using are in the icons subdirectory, so you can put your new png file in there. If changing to a different image does not solve the problem, then there is just a bug in how the bitmap is pasted on top of the display window. I am not too familiar with this code since it was done by Christian long ago. I would actually suspect a problem in those few lines that follow line 450. That is where it is deciding on the color of the overlay. This could also have something to do with a different interpretation of the transparency of the png file on your system. I opened target.png in gimp, and can see that it is an icon with a transparent background. Your particular version of wxPython may see it as a solid color with no transparency. Maybe try a black and white png instead of black and transparent.
Jim

    (1-1/1)