The costs of the proceedings, and transportation and clothing of any person committed by the court under Kan. Stat. Ann. §§ 22-3303, 22-3428 and 22-3429, shall be paid out of the estate of such person, or by any person bound by law to maintain him or her, or by the county, as in the case of mentally ill persons sent to the hospitals.