Conversation
…er to have same logic as in Zernike fit
|
🚀 New build available for commit |
|
🚀 New build available for commit |
|
Headed to Stellafane in an hour but... A) I thought edge mask just masked out the edge and set those "pixels" to be null or whatever you want to call it. But still used the same zernike calculations as if the edge was not masked. To me that is probably the easier way to deal with it. You can even process the edge the same way and the same functions where you process regions. B) But it sounds like it actually shrinks the outer diameter with processing and uses smaller matrixes? I had assumed the bug was that it does A but incorrectly changes the zernike calculations. But now I'm thinking it might do B? Or it is supposed to do B but it's doing it wrong? |
|
The edge mask is a convivence. It allows one to enter the full diameter of the mirror but then see what the quality would be if one masks the edge. When you mask the edge that also changes the null because the clear aperture of the mirror changes. Sometimes we (me included) get confused with what masking the edge really does and why it changes the null other than just ignoring those masked pixels. I too don't have the time at the moment. But if we were to search back through the groupsio archive I'm sure I talked about it. I remember for sure writing an explanation. I remember there were posts that were specific to it's addition to DFTFringe. Please go do a search for it. So it is/was important and should not be removed. I think the error is just as the original poster said. That is the null for the anulus should use the masked value as the diameter and not the full mirror diameter. Yes I'm surprised that you did not understand that the mirror dialog is key to all the calculations. Those values are public because everyone needs to know them and that was the most code efficient writing way to do that. The reason it is key is that those values are used to compute the null and scale the plots. |
|
One way to help find more info about the edge mask would be to look at the version history and find the date of when it was added. Then search groups io around that time. I bet it was discussed then. |
|
History: Most interesting Groups message is probably this one https://groups.io/g/Interferometry/message/30940
This also confirms waht you said George. Edge mask is using method B. Method A is the "ignore regions" feature. I agree the feature shouldn't be removed. But looking at the code I would not be confident reloading a saved wft with that feature. It will need fixes. I will think about bast architecture to do it. Dale wrote
Yes I understand it was a very convenient way of doing it. But I know you also want to be able to load wft from different mirrors. This architecture is bugprone so I absolutelly do not want to add mirrordlg to 3D view and countourview. They do not rely on it today and it's a good thing. Easiest change could be to consider only the new diameter after analysis. I believe this would be a very good compromise. |




fix #368