I think the numbering of images should be according to the chapters, but well, everything is possible in latex, to achieve what you want you just have to redefine the format of the figures counter \thefigure, the problem is that you must redefine it for each environment, here the code:
Standard format:
\renewcommand{\thefigure}{\arabic{chapter}.\arabic{figure}}
Format for sections:
\renewcommand{\thefigure}{\arabic{chapter}.\arabic{section}.\arabic{figure}}
For the following chapters you must redefine the standard if you do not want the following error to occur

Finally the complete code and the result:

code:
% arara: pdflatex: {synctex: yes, action: nonstopmode}
\documentclass{scrreprt}
\usepackage{booktabs,caption}
\usepackage{graphicx}
\usepackage{subfigure}
\newcommand{\fakeimage}{{\fboxsep=-\fboxrule\fbox{\rule{0pt}{2.5cm}\hspace{3cm}}}}
\begin{document}
\chapter{chapter one}
\begin{figure}[h!]
\centering
\subfigure[fig 1]{\fakeimage} \qquad
\subfigure[fig 2]{\fakeimage}
\caption{fig for chapter}
\end{figure}
\renewcommand{\thefigure}{\arabic{chapter}.\arabic{section}.\arabic{figure}}
\section{the section}
\begin{figure}[h!]
\centering
\subfigure[fig 1]{\fakeimage} \qquad
\subfigure[fig 2]{\fakeimage}
\caption{For section}
\end{figure}
%for chapter Two you have to redefine \thefigure to the original
\renewcommand{\thefigure}{\arabic{chapter}.\arabic{figure}}
\chapter{Chapter two}
\begin{figure}[h!]
\centering
\subfigure[fig 1]{\fakeimage} \qquad
\subfigure[fig 2]{\fakeimage}
\caption{fig for chapter}
\end{figure}
\renewcommand{\thefigure}{\arabic{chapter}.\arabic{section}.\arabic{figure}}
\section{the section}
\begin{figure}[h!]
\centering
\subfigure[fig 1]{\fakeimage} \qquad
\subfigure[fig 2]{\fakeimage}
\caption{For section}
\end{figure}
\section{the section}
\begin{figure}[h!]
\centering
\subfigure[fig 1]{\fakeimage} \qquad
\subfigure[fig 2]{\fakeimage}
\caption{For section}
\end{figure}
\end{document}
\numberwithin{figure}{subsection}? – Zarko Apr 02 '18 at 03:41