masks #1397
Replies: 5 comments 4 replies
-
Amy, thank you for your feedback. This is very helpful. We certainly want to improve the process so it is as intuitive as it can be. I will look into these in more detail soon. |
Beta Was this translation helpful? Give feedback.
-
@amylazicki, we found out that matplotlib very recently removed a method we were using. That is why the rectangle/ellipse masking wasn't working, and this should be fixed in #1413. This would also cause an issue with removing TARDIS boundaries in the LLNL import tool (I'm not sure if this is documented anywhere). That should hopefully be fixed by #1413 too... |
Beta Was this translation helpful? Give feedback.
-
Here are some other responses:
The hand-drawn mask tool was built off of another tool that we had called a "line builder"... actually Joel designed the "line builder". The way it works is you start by left-clicking to add points (you are creating the region to be masked). When you are finished with one mask region, right-click one time to start a new region, and then left-click again to add points for this new region. You will see that the points are a different color, and a different color means you are creating a mask for a different region. So the example image below has four regions that will be masked (each one has different colored points). I agree that we need to clarify this. I think in that dialog, we should be clearer and say things like "Add points around a region to mask with left-click. Start a new masked region with a single right-click." I think @bnmajor will do that, and she will be adding more documentation on the masking soon - that will hopefully help a lot. However, feel free to give us ideas for making it more intuitive, if you think there are better ways to do this...
I agree! This would make keeping track of masks a lot easier! I'll put up an issue.
So, maybe the explanation above for hand-drawn masks helps with this? You can add multiple masks
I'll put up an issue for this too!
This should be an easy fix - we can make it remember the last setting. I'll put up an issue as well and |
Beta Was this translation helpful? Give feedback.
-
@amylazicki I put up a pull request to make the pinhole mask more interactive here: #1418. It also saves the pinhole mask settings that are used. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I am running hexrd on a PC and installed the most recent stable version. I played around with masking out features and found it very nonintuitive. In hand-drawn masks: what does right-clicking do?... what do you mean by a new line? Nothing seems to happen for me with a right click. I can outline a region with left clicks and it's successfully masked (most of the time... sometimes for some reason I can't find, both plates just disappear and then I just have to open the mask management menu and delete that mask). Sometimes the left clicks appear as blue dots, sometimes as orange or green or red... what does this mean? I would sort of like to be able to see the outline of the masked region with the data behind it, rather than have the masked region disappear from the image, as frequently I am not sure whether to mask features or not and need to see what I have done and possibly reconsider. In Mask Management there's an option to make the regions visible, but then I don't see the outline of mask, and the region also becomes unmasked in the data lineout. I suggest to show by default just the outline of the masked region and also subtract that region from the lineout, but then in mask management allow the option to remove the masked regions from the image. I did not like that the menu for creating a new masked region disappeared every time after I pushed 'OK'... I had to go back to the menu and find it again every time.... very tedious as TARDIS data frequently has dozens of artifacts. I could not get the 'Mask ellipse/rectangle ' to work. I can draw a black shape on the data but nothing seems to be getting masked, and the 'undo last selection' button doesn't remove the black shape. It would be nice to have the option to rotate the rectangle or ellipse. I was trying to use the pinhole mask to get rid of noise at the edge of the plates and so was making repeated adjustments to the pinhole radius, but every time I push ok the menu disappears and I have to re-open it and then same default values for radius and thickness show up, rather than the last ones I selected, so I have to try to remember my previous choice.
Beta Was this translation helpful? Give feedback.
All reactions