How can i design a edge detection filter with FDAtool?such as sobel.
i can design a voice filter with FDAtool but i don't know image filter.
excuse my poor english
Regards
Best Answer
I don't know FDAtool. Typically image filters are performed using conv2(), imfilter(), edge(), stdfilt(), entropyfilt(), imtophat(), etc., or they are made with a custom function that you write.
When you select the 'Set quantization parameters' tool in FDATOOL, in the 'Coefficients' tab, I would recommend checking the 'Best precision fractional length' checkbox. In the 'Input/Output' tab, you can set the 'Input range' to 1.5 V. I think that letting FDATOOL compute the best fractional length is the right way to go.
After a little bit of digging, I managed to find a solution as follows:
Load the Filter Design and Analysis tool by typingfdatool into the command window
Design your filter
Click'Full View Analysis' (White Square Icon)
Click'Edit Plot' (Mouse Pointer Icon)
Click on the dataset you would like to capture
Return to the command window and enter:
x=get(gco,'xdata').';
y=get(gco,'ydata').';
The values used to plot the magnitude response in the FDATool are now stored in two vectors, x and y, these were transposed into columns to make them more manageable. Then simply open the vectors from the workspace, hit'Ctrl + A' to select all and paste into Excel, or export the data as required:https://uk.mathworks.com/help/stats/export-dataset-arrays.html
Best Answer