You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Component
Matlab R2024a
DIPimage toolbox for quantitative image analysis
Version 3.4.3 10-May-2024
Describe the bug
The methods included in gaussf (derivative) lead to different boundary behaviour, depending on method used.
When smoothing a z-stack structures from the last/first layer are present in the first/last - depending on the method used.
ft z0 (ddft = single(gaussf(double(squeeze(dd)),[.8 .8 .8],'ft'));)
Question
Can 'boundary_condition' , 'truncation' be used with 'ft' to achieve similar behaviour as with 'iir' and 'fir'?
Typically I use a weak smoothing of 0.5 which implicates 'ft' method as default.
To Reproduce
Sample data can be found here dd_uint8.zip.
I agree, this should be consistent. I’ll have to take a look how to do this properly, we also don’t want to change behavior that people might depend on.
Component
Matlab R2024a
DIPimage toolbox for quantitative image analysis
Version 3.4.3 10-May-2024
Describe the bug
The methods included in gaussf (derivative) lead to different boundary behaviour, depending on method used.
When smoothing a z-stack structures from the last/first layer are present in the first/last - depending on the method used.
RAW z0
![dd_RAW](https://private-user-images.githubusercontent.com/20279594/330098481-6670f1cb-639a-4b3a-b424-c98dee21edc2.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk3MTcxNTYsIm5iZiI6MTcxOTcxNjg1NiwicGF0aCI6Ii8yMDI3OTU5NC8zMzAwOTg0ODEtNjY3MGYxY2ItNjM5YS00YjNhLWI0MjQtYzk4ZGVlMjFlZGMyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MzAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjMwVDAzMDczNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWE3Y2MzMmQxMTBkYWI2MmJmM2FkYTM0ZTUzN2Q4ZDczMzQxZjgyZWRiM2JmOGFhZjMwYTY0NDNkMDkyNGRiMmEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.TVvaUJP4p5rvCNE-KLt0YNWD5rW2Sr6t6ly3KLt0_RA)
iir z0 (ddiir = single(gaussf(double(squeeze(dd)),[.8 .8 .8],'iir'));)
![dd_iir](https://private-user-images.githubusercontent.com/20279594/330098748-7f9e48fa-ad17-4fe7-8788-8cd95117bb28.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk3MTcxNTYsIm5iZiI6MTcxOTcxNjg1NiwicGF0aCI6Ii8yMDI3OTU5NC8zMzAwOTg3NDgtN2Y5ZTQ4ZmEtYWQxNy00ZmU3LTg3ODgtOGNkOTUxMTdiYjI4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MzAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjMwVDAzMDczNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTA0MzQ5NDk0YzU4ODE1NTU1ZGY1MWVhOTAzYzc3OTQxMTFhNmVkZTg5NjUyZDBlMjg1YjI3NGFiODBmMjcyYjImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.hd5MdI3FensxAjpBjPISjlN_FXJ7IGuHNkCFszztG_s)
ft z0 (ddft = single(gaussf(double(squeeze(dd)),[.8 .8 .8],'ft'));)
![dd_ft](https://private-user-images.githubusercontent.com/20279594/330099280-235fd7cc-1c7e-40e4-a333-dd5f71bff657.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk3MTcxNTYsIm5iZiI6MTcxOTcxNjg1NiwicGF0aCI6Ii8yMDI3OTU5NC8zMzAwOTkyODAtMjM1ZmQ3Y2MtMWM3ZS00MGU0LWEzMzMtZGQ1ZjcxYmZmNjU3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MzAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjMwVDAzMDczNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWU3YzdlNzllNzI0ODhkZmM0ZDRiYTUyNWQ2ZjJkZDFmMTdlMDdkYWQ0OGY5ZGQ5OTJkOTE0ZjE0ZDZlZGY5MDQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0._CgXEdykFkJ1eRo_6r7kL769qLtCCZ0KaP2gtT9gbiY)
Question
Can 'boundary_condition' , 'truncation' be used with 'ft' to achieve similar behaviour as with 'iir' and 'fir'?
Typically I use a weak smoothing of 0.5 which implicates 'ft' method as default.
To Reproduce
Sample data can be found here dd_uint8.zip.
ddiir = single(gaussf(double(squeeze(dd)),[.8 .8 .8],'iir'));
ddft = single(gaussf(double(squeeze(dd)),[.8 .8 .8],'ft'));
ddfir = single(gaussf(double(squeeze(dd)),[.8 .8 .8],'fir'));
System information:
Win10, Matlab2024a, DIPimage 3.4
The text was updated successfully, but these errors were encountered: