Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

how to save cropped image in the database using mysql

조회 수: 1 (최근 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