function feat = feature_wrapper(image,image_disparity,sbin)
%Wrap the features from rgb and rgbd together


% image_total = cat(3,image,image_disparity(:,:,1));

% imshow(image_total(:,:,1))
% imshow(image_total(:,:,2))
% imshow(image_total(:,:,3))
% imshow(image_total(:,:,4))

% keyboard
% feat = hog_4d(image_total,sbin);

% disp('calculating features')

hog_rgb = features(image,sbin);
feat = hog_rgb;

% hog_rgbd = features(image_disparity,sbin);
% feat = cat(3,hog_rgb,hog_rgbd);

% conf.lbp.overlapping = 0;
% conf.lbp.mapping='riu2';
% conf.lbp.clbp='S+M';

% image_disparity=image_disparity(:,:,1);

% size(image_disparity)
% sbin

% keyboard
% lbp_rgbd = features_lbp(image_disparity,sbin,conf);
% disp('using clbp')
% lbp_rgbd = clbp(image_disparity,sbin);
% lbp_rgbd = clbp(image(:,:,1),sbin);

% disp('done')
% 
% try
%     feat = hog_rgb;
% %     feat = clbp_wh(image(:,:,1),sbin);
% %     feat = clbp_wh_u2(image(:,:,1),sbin);
%     feat = lbp_c(image(:,:,1),sbin);
% 
% %     disp('cat features')
% % feat = cat(3,hog_rgb,lbp_rgbd);
% %     feat = lbp_rgbd;
% catch
%     disp('error')
%     keyboard
% end
% disp('Features calculated using feature wrap')