Custom Edge visualization in Networkx - networkx

I'm trying to display an electrical circuit.
Is there any way to replace the line(that appears as an edge) with a resistor.

Related

I can not understand the filter get from MOSSE (Visual Object Tracking using Adaptive Correlation Filters )

I run the mosse code and get the tracking filter then IDFT and display as image :
filter image whose center have an black point is on the top of car.
but paper display the filter is:
this is image display by paper author.
It is not unusual to encounter spectrum values that range from 0 to max valuue or higher. While processing numbers such as these presents no problems for a computer, image display systems generally will not be able to reproduce faithfully such a wide range of intensity values. The net effect is that a significant degree of intensity detail can be lost in the display of a typical Fourier spectrum.

Do ILNumerics .NET Visualization Engine support the following features regarding 3D surface chart?

I would like to know whether the following features are supported in .NET Visualization Engine of ILNumerics
Draw a 3D Surface Plot
Layout a wireframe over the Surface Plot
Draw a scatter plot over the Surface Plot
Color the surface using custom values and show the color bar as a legend.
Custom meshgrid with support for floating point values.
Able to Zoom, Pan and Rotate the plot
Tooltip support together with the ability to select a point from the Surface plot (maybe using mouseclick/crosshair etc). I need a callback function from the point selected.
Modify axis properties such ticks, labels, titles etc.
Lighting and Shading options in the chart.
Please do reply
Yes, all is supported. Start with the visualization documentation: http://ilnumerics.net/Visualization-API.html
The examples section contains many runnable examples, including this one dealing with mouse picking on 3D surface plots.

Drawing a window for a hog object detector in matlab using libsvm

I am creating a multiclass classifer using HOG features and libsvm. I have a video feed and I've segmented the feed into frames and analysed each frame indvidually for an object. I can detect the object but I would like to draw a window around the detected object with either a colour code for the window or an annotation for that object, is there a function in libsvm matlab that can help to do this?
If you have the Computer Vision Toolbox, check out the insertShape Method.
It allows you to easily draw shapes onto an image.

How to visualize a single color (rgb) in simulink?

I'm trying to model a system which creates some color transition effects. I can't find a way to visualize the colors. The closest I've got is to use the "Matrix Viewer" but it just maps the values into a heat map (by default).
How can I visualize a color, by having one huge pixel of that color in simulink?
If you have the Computer Vision System Toolbox, you can try the Video Viewer block or maybe the To Video Display block.

Heat map generator of a floor plan image

I want to generate a heat map image of a floor. I have the following things:
A black & white .png image of the floor
A three column array stored in Matlab.
-- The first two columns indicate the X & Y coordinates of the floorpan image
-- The third coordinate denotes the "temperature" of that particular coordinate
I want to generate a heat map of the floor that will show the "temperature" strength in those coordinates. However, I want to display the heat map on top of the floor plan so that the viewers can see which rooms lead to which "temperatures".
Is there any software that does this job? Can I use Matlab or Python to do this?
Thanks,
Nazmul
One way to do this would be:
1) Load in the floor plan image with Matlab or NumPy/matplotlib.
2) Use some built-in edge detection to locate the edge pixels in the floor plan.
3) Form a big list of (x,y) locations where an edge is found in the floor plan.
4) Plot your heat map
5) Scatterplot the points of the floor plan as an overlay.
It sounds like you know how to do each of these steps individually, so all you'll need to do is look up some stuff on how to overlay plots onto the same axis, which is pretty easy in both Matlab and matplotlib.
If you're unfamiliar, the right commands look at are things like meshgrid and surf, possibly contour and their Python equivalents. I think Matlab has a built-in for Canny edge detection. I believe this was more difficult in Python, but if you use the PIL library, the Mahotas library, the scikits.image library, and a few others tailored for image manipulation, it's not too bad. SciPy may actually have an edge filter by now though, so check there first.
The only sticking point will be if your (x,y) data for the temperature are not going to line up with the (x,y) pixel locations in the image. In that case, you'll have to play around with some x-scale factor and y-scale factor to transform your heat map's coordinates into pixel coordinates first, and then plot the heat map, and then the overlay should work.
This is a fairly low-tech way to do it; I assume you just need a quick and dirty plot to illustrate how something's working. This method does have the advantage that you can change the style of the floorplan points easily, making them larger, thicker, thinner, different colors, or transparent, depending on how you want it to interact with the heat map. However, to do this for real, use GIMP, Inkscape, or Photoshop and overlay the heatmap onto the image after the fact.
I would take a look at using Python with a module called Polygon
Polygon will allow you to draw up the room using geometric shapes and I believe you can just do the borders of a room as an overlay on your black and white image. While I haven't used to a whole lot at this point, I do know that you only need a single (x,y) coordinate pair to be able to "hit test" against the given shape and then use that "hit test" to know the shape who's color you'd want to change.
Ultimately I think polygon would make your like a heck of a lot easier when it comes to creating the room shapes, especially when they aren't nice rectangles =)
A final little note though. Make sure to read through all of the documentation that Jorg has with his project. I haven't used it in the Python 3.x environment yet, but it was a little painstaking to get it up an running in 2.7.
Just my two cents, enjoy!