ParaView: display director - paraview

I'm trying to display liquid crystal directors using ParaView. The director is a spin-2 field that should look like a headless vector, centred in the middle, like the cylinders in this picture:
https://pbs.twimg.com/media/C8fj1bWXoAEFy5R.png
I know how to make an arrow filter, like this other picture, but it's not what I want:
https://summerofhpc.prace-ri.eu/wp-content/uploads/2013/07/arrows.png
I can't find the filter that will do what I need. Could you please tell me if I need to create a custom filter or if there's a quicker way to obtain this result within ParaView?
My data are expressed as 3D vectors within a VTU (unstructured grid) file.
Thanks in advance and sorry for the newbie question!

Related

How to remove multiple ROIs in the same general area on Fiji

I am wondering if anyone knows how to delete multiple ROIs in the same general area of an image. I'm using Fiji.
I am looking for an easy way to delete all ROIs in a given area. For example, the multi-point selection tool has the ability to delete all points within a given selection. I would like to find a function like this but for ROIs.
I have many images like the one below (>100) with ROIs labelling cells. I only want ROIs to label cells in a certain region of the image (the barrel cortex) and would like to get rid of all other ROIs.
Would someone have an idea of how to write a macro to perform this function?
Any help would be greatly appreciation.
Thanks!

Change Shape Fill based on Shape Data in Visio

Wondering if someone can help me with what I thought was a simple Shapesheet issue.
I'd like the fill colour of a shape to change based on one of the shape data values. I thought I could do this easily:
FillForeground: If(Prop.Colour="Blue",XXX,YYY)
But this doesn't work? (Visio 2021)
I've 5 list values for the data and would like a different fill colour for each? Weirdly, I can see that the value does change based on the data selection, but the actual colour seen in on the page doesn't.
Obviously, I'm not much of a coder, just an enthusiastic meddler.
I've stuck at:
=IF(Sheet.3780!Prop.StringSection="Firsts",THEMEGUARD(MSOTINT(THEME("LineColor"),40)),THEMEGUARD(MSOTINT(THEME("AccentColor"),40)))
(The shapes to colour are within a group)
Thanks
Steve
Steve !
FillForeground: If(Prop.Colour="Blue",XXX,YYY)
But this doesn't work? (Visio 2021)
For compare strings in ShapeSheet you must use STRSAME function
Use syntax like this:
IF(STRSAME(Prop.color,"blue"),4,3)

How to manually segment and label ROIs in an image in Matlab?

I'm a newbie to Matlab. I'm basically attempting to manually segment a set of images and then manually label those segments also. I looked into the imfreehand(), but I'm unable to do this using imfreehand().
Basically, I want to follow the following steps :
Manually segment various ROIs on the image (imfreehand only lets me draw one segment I think?)
Assign labels to all those segments
Save the segments and corresponding labels to be used further (not sure what format they would be stored in, I think imfreehand would give me the position and I could store that along with the labels?)
Hopefully use these labelled segments in the images to form a training dataset for a neural network.
If there is some other tool or software which would help me do this, then any pointers would be very much appreciated. (Also I am new to stackoverflow, so if there is any way I could improve on the question to make it clearer, please let me know!) Thanks!
Derek Hoiem, a computer vision research at the University of Illinois, wrote an object labelling tool which does pretty much exactly what you asked for. You can download it from his page:
http://www.cs.illinois.edu/homes/dhoiem/software/index.html

Using matlab to change the color of the polygons of a map from a shp file

My question is that how do I change the polygons of a map from shp file (shapefile) while using matlab. I was doing this project where i was given map in shpfile format that I need to use on, I am able to read the map in matlab but the map is divide in regions and each regions have its color, my problem I met was to change the polygons to its respective colors, anyone sees this please kindly help and reply me asap.
Are you using the Mapping Toolbox by The MathWorks, or third-party codes such as ones from the Shapefile C Library to import the shapefile? If you are using the Mapping Toolbox, I cannot be of much help here as I do not have that toolbox -- hopefully, someone else can help here.
In any case, if you could import the shapefile on to your MATLAB Workspace, you should be able to find the vector data (polygons and attributes data, etc.) somewhere...
If you do not see anything on the Workspace, possibly you can find those data in the Figure (or in the Axis).
data=get(the_handle);
I would look for the data there.
After you obtain the polygon and properties data, you can patch/fill them with any color you like (based on any other information you find there.)
Good Luck

Extracting Filiform Areas using MATLAB

how can I extract filiform areas on the center of an image using MATLAB ?
A picture and some more details on the structures you want to extract would make it easier to answer.
You could get started using this: http://www.mathworks.com/matlabcentral/fileexchange/25157-blobsdemo