04-04-2007 03:32 PM
04-05-2007 12:45 PM
04-09-2007 07:01 PM
Hi Don,
I ran your code and I noticed that if I select my ROI to be off centered (a region that is all black) the filtered image will also be black on the “Mask ROI” run. But if I select “Control” the filtered image is similar to the image you would receive if the ROI had been centered. It appears that the calculation of the truncation frequency assumes that the ROI is centered. The further off center the ROI is, the greater the difference between the two images will be. Let me know what you think.
Have a great day,
Gavin
04-09-2007 09:34 PM
04-12-2007 01:33 PM - edited 04-12-2007 01:33 PM
Message Edited by DonRoth on 04-12-2007 01:56 PM
04-12-2007 02:08 PM
04-13-2007 10:25 AM
04-16-2007 11:48 AM
04-17-2007 04:29 PM
You are right to get the correct truncation filter you will need to use a circle as your ROI. And that circle will have to be centered correctly. I haven’t written anything to programmatically get a centered ROI yet, but with every ROI I have tested the closer I am to the center the more similar the two methods are. So I believe the difference is still from our off centered images.
Gavin
04-18-2007 09:46 AM
You could be right. I just wish I knew for sure that the mask method was 100% right.
By the way, see my post above where I wrote an auto-centering routine and incorporated it into the 4506 - mod.vi.
I also ended up writing a passband routine so that in case the FFT energy is not all centered either high or low, one can create a donut-type mask and place it over the areas where the energy is centered. It is incorporated into my main program. Most likely, it would be used very infrequently given the characteristics of most images. Still, I wanted to provide the option.
Sincerely,
Don