Filter löschen
Filter löschen

Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

how to save cropped image in the database using mysql

3 Ansichten (letzte 30 Tage)
Maruthi Maruthi
Maruthi Maruthi am 20 Jan. 2017
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
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.

Antworten (0)

Diese Frage ist geschlossen.

Community Treasure Hunt

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

Start Hunting!

Translated by