Info
此问题已关闭。 请重新打开它进行编辑或回答。
how to save cropped image in the database using mysql
1 次查看(过去 30 天)
显示 更早的评论
Sir, I have 6 images out of which user has to select one image and then the user is going to crop that particular image . I need how to save cropped image in the database MySQL. If I used the image which is croped before. the database must displayed it. I dont how to write the code for that. Please help me sir. k = waitforbuttonpress; point1 = get(gca,'CurrentPoint'); % button down detected finalRect = rbbox; % return figure units point2 = get(gca,'CurrentPoint'); % button up detected point1 = point1(1,1:2); % extract x and y point2 = point2(1,1:2); p1 = min(point1,point2); % calculate locations offset = abs(point1-point2); % and dimensions % Find the coordinates of the box. xCoords = [p1(1) p1(1)+offset(1) p1(1)+offset(1) p1(1) p1(1)]; yCoords = [p1(2) p1(2) p1(2)+offset(2) p1(2)+offset(2) p1(2)]; x1 = round(xCoords(1)); x2 = round(xCoords(2)); y1 = round(yCoords(5)); y2 = round(yCoords(3)); hold on axis manual plot(xCoords, yCoords,'b-'); % redraw in dataspace units % Display the cropped image. croppedImage1 = A_gray(y1:y2,x1:x2); axes(handles.axes3); imshow(croppedImage1); impixelinfo; axis on;
I have this code for croping the image. but I need cropped image in the database and also if any image I cropped if the coordinated matched with the existing cropped image, it must be displayed that the image is already exists one. Please help me sir, for developing my project. Iam using matlab 2013 a version.
0 个评论
回答(0 个)
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!