Just leave them outside exposed to the elements and they will be fine for use after about 3 or 4 years.
Kidding aside...no fresh wood should be used in an aquarium. There is still a great deal of fresh organic matter in it which will decompose, often stink to high heaven, and usually encourage the growth of a disgusting white fungus-like schmutz which you will not like. Ideally, wood should be hardwood...not conifers (evergreens)...and weathered to the point where there is no bark left on it, or at least the bark can be quickly and easily peeled off. Cutting it should expose no fresh-looking interior wood; yours looks like it will sprout leaves if put in a bucket of water.
If you want to collect your own driftwood...an activity I heartily endorse and do myself all the time...you should be scouring a nearby beach, looking for stuff that has been underwater and/or bleaching in the sun for years.