フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

how to save cropped image in the database using mysql

3 ビュー (過去 30 日間)
Maruthi Maruthi
Maruthi Maruthi 2017 年 1 月 20 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
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 件)

この質問は閉じられています。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by