Or try selecting the hat with the quick selection tool. Once you have only the hat selected, invert the selection (CTRL+SHIFT+I) and fill the background with solid white. (ALT+BKSPC)
Or try selecting the hat with the quick selection tool. Once you have only the hat selected, invert the selection (CTRL+SHIFT+I) and fill the background with solid white. (ALT+BKSPC)