OIII and narrow band filters work on nebulae as they are designed only pass wavelengths of light most strongly emitted by nebulae, whilst filtering out other wavelengths.
As Bassnut says, galaxies and stars are wide band light sources and narrowband filters are of no help.
|