i want to create a gaussian with size 100x100 and with a standard deviation of 50 pixel. how will i go about it please.

답변 (1개)

Image Analyst
Image Analyst 2022년 8월 29일

1 개 추천

g = fspecial("gaussian", 100, 50) % In Image Processing Toolbox.
g = 100×100
1.0e-03 * 0.0513 0.0523 0.0533 0.0543 0.0553 0.0563 0.0573 0.0583 0.0593 0.0603 0.0612 0.0622 0.0632 0.0641 0.0650 0.0659 0.0669 0.0677 0.0686 0.0695 0.0703 0.0711 0.0719 0.0727 0.0735 0.0742 0.0749 0.0756 0.0763 0.0769 0.0523 0.0533 0.0543 0.0554 0.0564 0.0574 0.0584 0.0595 0.0605 0.0615 0.0625 0.0634 0.0644 0.0654 0.0663 0.0673 0.0682 0.0691 0.0700 0.0708 0.0717 0.0725 0.0734 0.0742 0.0749 0.0757 0.0764 0.0771 0.0778 0.0785 0.0533 0.0543 0.0554 0.0564 0.0575 0.0585 0.0596 0.0606 0.0616 0.0627 0.0637 0.0647 0.0657 0.0666 0.0676 0.0686 0.0695 0.0704 0.0713 0.0722 0.0731 0.0739 0.0748 0.0756 0.0764 0.0771 0.0779 0.0786 0.0793 0.0800 0.0543 0.0554 0.0564 0.0575 0.0586 0.0596 0.0607 0.0618 0.0628 0.0638 0.0649 0.0659 0.0669 0.0679 0.0689 0.0699 0.0708 0.0718 0.0727 0.0736 0.0745 0.0753 0.0762 0.0770 0.0778 0.0786 0.0794 0.0801 0.0808 0.0815 0.0553 0.0564 0.0575 0.0586 0.0597 0.0608 0.0618 0.0629 0.0640 0.0650 0.0661 0.0671 0.0681 0.0692 0.0702 0.0712 0.0721 0.0731 0.0740 0.0750 0.0759 0.0767 0.0776 0.0785 0.0793 0.0801 0.0808 0.0816 0.0823 0.0830 0.0563 0.0574 0.0585 0.0596 0.0608 0.0619 0.0630 0.0641 0.0651 0.0662 0.0673 0.0683 0.0694 0.0704 0.0714 0.0724 0.0734 0.0744 0.0754 0.0763 0.0772 0.0781 0.0790 0.0799 0.0807 0.0815 0.0823 0.0831 0.0838 0.0845 0.0573 0.0584 0.0596 0.0607 0.0618 0.0630 0.0641 0.0652 0.0663 0.0674 0.0685 0.0696 0.0706 0.0717 0.0727 0.0737 0.0747 0.0757 0.0767 0.0777 0.0786 0.0795 0.0804 0.0813 0.0821 0.0830 0.0838 0.0845 0.0853 0.0860 0.0583 0.0595 0.0606 0.0618 0.0629 0.0641 0.0652 0.0663 0.0674 0.0686 0.0697 0.0708 0.0718 0.0729 0.0740 0.0750 0.0760 0.0771 0.0780 0.0790 0.0800 0.0809 0.0818 0.0827 0.0836 0.0844 0.0852 0.0860 0.0868 0.0875 0.0593 0.0605 0.0616 0.0628 0.0640 0.0651 0.0663 0.0674 0.0686 0.0697 0.0708 0.0720 0.0731 0.0742 0.0752 0.0763 0.0773 0.0784 0.0794 0.0804 0.0813 0.0823 0.0832 0.0841 0.0850 0.0858 0.0867 0.0875 0.0882 0.0890 0.0603 0.0615 0.0627 0.0638 0.0650 0.0662 0.0674 0.0686 0.0697 0.0709 0.0720 0.0731 0.0743 0.0754 0.0765 0.0775 0.0786 0.0797 0.0807 0.0817 0.0827 0.0836 0.0846 0.0855 0.0864 0.0873 0.0881 0.0889 0.0897 0.0905
imshow(g, []);
axis('on', 'image')

카테고리

도움말 센터File Exchange에서 Images에 대해 자세히 알아보기

태그

질문:

2022년 8월 29일

댓글:

2022년 8월 30일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by