Abstract
This paper corrects an error in the software provided with J. Opt. Soc. Am. B 38, 510 (2021) [CrossRef] .
© 2021 Optical Society of America
First, DENSITY_FILTER (lines 176–178 of top200EM) is updated to the following:
function [xS]=DENSITY_FILTER(FilterKernel,FilterScalingA,FilterScalingB,x,func)
xS = conv2((x .* func)./FilterScalingA,FilterKernel,’same’)./FilterScalingB;
end
Second, the first call to DENSITY_FILTER (line 70 of top200EM) is updated to the following:
dFPS = DENSITY_FILTER(filThr.filKer,ones(dis.nElY,dis.nElX),
filThr.filSca,dFP,ones(dis.nElY,dis.nElX));
Last, the second call to DENSITY_FILTER (line 104 of top200EM) is updated to the following:
sensFOM = DENSITY_FILTER(filThr.filKer,filThr.filSca,
ones(dis.nElY,dis.nElX),sens, DdFSTDFS);
The correction of the error has minor influence on the designs presented in the paper (see Fig. 1) and does not change any discussions or conclusions.
REFERENCE
1. R. E. Christiansen and O. Sigmund, “Compact 200 line MATLAB code for inverse design in photonics by topology optimization: tutorial,” J. Opt. Soc. Am. B 38, 510–520 (2021). [CrossRef]