Driver assistance systems and autonomous vehicle navigation have become important topics in vehicular technology. Among all of the functions, lane detection is one of the most important. A variety of approaches have been proposed in this field. While learning-based methods achieve impressive accuracy in detecting complex lane markings under clear daylight conditions, adapting these models to diverse weather conditions remains a challenge. On the other hand, geometric-based approaches require parameter tuning for different scenarios but require fewer computational resources. A self-tuned algorithm with high generalizability across diverse weather conditions is proposed in this paper. The algorithm integrates fuzzy logicbased adaptive functions with edge identification and line detection modules, enabling image adjustments in response to challenging weather conditions. The proposed tracking function utilizes previous detection results to fine-tune the selected Range of Interest (ROI), optimizing both accuracy and processing time. By incorporating these adaptive features into common geometric-based frameworks, the algorithm achieves higher detection rates compared to previous studies during challenging weather conditions. Furthermore, the proposed work exhibits better generalizability and significantly shorter processing time when compared to state-of-the-art learning-based models, as demonstrated through extensive testing on multiple datasets.