If your engine is inclined, as most sailboat engines are, you can't go by the factory amount without having the oil level too high at the aft point. Too little oil is much, much, better (counter intuitively) than too much. If moving parts hit the top of the oil, they will whip it into a froth that doesn't circulate through the oil system and the engine can be destroyed.
Carefully marking the dipstick according to measurements and incline is part of every commercial boat sea trials but this is almost never done for yachts.
My engine, filled to the top of the dip stick mark, takes about half of what it says in the manual. It's also installed well over the maximum recommended angle. It's been going strong and still running like new since 1980.
Measure what comes out, add about 80% of the filter volume, and that's what you should put back in. Most marine engine dipsticks are at the aft end of the crankcase because that's where the effects of overfilling first occur. When in doubt, go by the dipstick.