manavkataria / tangible-images

Images you can Touch and Feel
http://tangible-images.googlecode.com
0 stars 0 forks source link

Implementing: Localized Haptic Rendering #18

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What features do you plan to implement?
+ Start with: Image Cropping around the cursor. Display the image near the 
cursor in a new window.
+ Next: Zoom the cropped image. This completes localized-image rendering 
with zoom.
+ After sufficient testing move to Haptics Rendering: Apply Depth Detection 
and Haptics Rendering on the cropped region and scale/zoom.

What input do you need?
+ You might need help with Depth Detection and Haptics rendering. let me 
know when you want me. 

When do you plan to complete?
+ Cropping and Zooming of Image by Tuesday, 25th May. 
+ more later...

What will be the end-result? A Demo?
+ Yes. 

Original issue reported on code.google.com by manavkataria on 22 May 2010 at 4:23

GoogleCodeExporter commented 9 years ago
Palash, awaiting your updates.

Original comment by manavkataria on 27 May 2010 at 7:07

GoogleCodeExporter commented 9 years ago
Hi,

Attached is the code to crop the image around the mouse pointer and 
subsequently zoom the cropped part. I have also attached a Video demonstrating 
the function. Please have a look at the same and please run the code and kindly 
let me know if there is anything more which needs to be modified to make it 
more robust. 

Palash.

Original comment by palash.jhabak on 10 Jun 2010 at 7:44

Attachments:

GoogleCodeExporter commented 9 years ago
Palash this is good work. 

I like the video. 

Feedback: 
+ Saw the black region substituted when the pointer moves near the border. 
+ It is nice to see you have covered all borders. 
+ What is that error at 44seconds? 
+ It would be a good idea to have an exit button, instead of terminating with 
an error.
+ Is the pointer location relative to the image or the screen coordinates? 
+ Is the form resizable? 

Lets meet up and discuss this. 

Keep up the good work.

Original comment by manavkataria on 11 Jun 2010 at 9:36

GoogleCodeExporter commented 9 years ago
Thanks for your feedback.

The error at 44th second is due to forcefully terminating the program ( I 
pressed close button to switch to the new picture). 

The form is re-sizable but at present image will not change accordingly, as 
they are w.r.t to the screen coordinate. I would try and change the whole code 
to make everything w.r.t the figure window. 

Also after uploading, I realized that this code terminates as and when the 
pointer touches any of the corner. I have corrected the problem in attached 
version of the code.    

I have also added a button to stop the program. 

Original comment by palash.jhabak on 11 Jun 2010 at 8:41

Attachments:

GoogleCodeExporter commented 9 years ago
Lets meet up tomorrow afternoon between 2-5. 

Original comment by manavkataria on 11 Jun 2010 at 8:50

GoogleCodeExporter commented 9 years ago
Status: 
+ Implemented Close/Exit button functionality. 
+ Error / Spurious window at termination - Issue fixed.

Todo: 
+ Zoom and Crop slider to select zoom/crop level at runtime.
+ Clean the GUI. Organize status messages vs control buttons/sliders.
++ Inspired from Picasa / GoogleMaps
+ Option to select browse image at runtime.
+ Ability to Resize frontend. (Needs relative positioning of pointer with image)
+ Integrate Zoom/Crop functionality with TangibleImages code.

Original comment by manavkataria on 13 Jun 2010 at 6:07

GoogleCodeExporter commented 9 years ago
Final Code.

Original comment by palash.jhabak on 18 Jun 2010 at 10:37

Attachments:

GoogleCodeExporter commented 9 years ago
Please provide an update on this version of code: 
What has been fixed / changed / added / removed ? 

Original comment by manavkataria on 18 Jun 2010 at 11:49

GoogleCodeExporter commented 9 years ago
From the previous version of code, the button was modified to function even 
better. Now as and when button is pressed, the while loop terminates and then 
the figure gets closed and hence there is no error which used to occur due to 
forced termination of  program. 

Original comment by palash.jhabak on 18 Jun 2010 at 1:42

GoogleCodeExporter commented 9 years ago
Ok! Cool, so this is what we'd worked on a few days back (comment#6). Did you 
get a chance to work on the GUI? 

Also, please send me a link to your JavaScript project, if possible. 

Original comment by manavkataria on 18 Jun 2010 at 2:01

GoogleCodeExporter commented 9 years ago
Yeah I am trying to go with "guide" presently and trying to implement something 
similar  to the zoom and other facilities in Google Map. User could select the 
pictures from the  computer's directory ( and from net also at a later stage ). 
Once the picture is displayed on the axes, user could play with the image, as 
in he can click on the image itself to zoom the image with the clicked part as 
the center and he could also translate the image similar to that of Google 
Maps. Besides this there will be 2 more axes showing cropped image and a small 
but complete image which will help user to navigate easily in the image. ( 
similar to that of Picasa which you demonstrated the other day ) .

Please comment. 

PS. I think I have lost my Java Script Codes, will write it again and upload 
the same. 

Original comment by palash.jhabak on 19 Jun 2010 at 2:19

GoogleCodeExporter commented 9 years ago
Hi Manav,

Work is in progress. Had few difficulties with the GUI thing and also in the 
cord part of it. But I think those have been resolved. Also, I am using a few 
activex controls, for which I did not find some properties. There is an option 
called "Activex property editor" when I right click an activex control in the 
GUI, but unfortunately the window doesent appear. I dont know if the problem is 
general or just in my Matlab. Please if you could just check in your laptop. 

Original comment by palash.jhabak on 24 Jun 2010 at 6:06

GoogleCodeExporter commented 9 years ago
Could not really understand what you want me to try. Please send the code or 
meet me tomorrow. 

Original comment by manavkataria on 24 Jun 2010 at 9:08

GoogleCodeExporter commented 9 years ago
Hello Manav,

Attached is the Video of the interface I have designed recently. Kindly have a 
look,  comment and suggest the necessary changes. Once again Sorry for the 
delay. I will upload the code later.

Palash

Original comment by palash.jhabak on 28 Jun 2010 at 3:20

Attachments:

GoogleCodeExporter commented 9 years ago
Technical:
+ Does the camera mode work?
+ I remember you talking about some trouble using Internet images, what was it? 
+ GUI seems good! Especially the various ways in which you've enabled the user 
to access the images. Ease of access - thinking like a good designer there! :)

What Next:
+ Its almost time to get into Haptics! :)
+ Lets quickly review your code and improvise where needed. Meet me tomorrow.

Homework: 
+ Think how you would incorporate Haptics here.

---
I apologize, I have been too busy recently. But that shouldn't stop you to 
penetrate and get your feedback from me as soon as you want it. Now the next 
challenge for you is to increase the pace of your work esp. if you want to take 
this project to any significant level!

Manav

Original comment by manavkataria on 28 Jun 2010 at 8:39

GoogleCodeExporter commented 9 years ago
*The idea of that camera thing is pretty new so could not make it work yet. 
*Yeah, I had some trouble with the internet method, but its working now.

Yeah will meet you tomorrow. 

Yeah I understand that I should be a little more fast and I definitely want to 
take this project to a significant level. I would also like to continue the 
work during the semester. 

Thank You 

Palash 

Original comment by palash.jhabak on 28 Jun 2010 at 8:47

GoogleCodeExporter commented 9 years ago
Hi Manav,

Attached is the code to calculate the force as mentioned in Vasudevan's paper. 
2 matrix  are created for two dimensions. At each point in the image, the 
corresponding values in the new matrix contains the value of force in x and y 
directions receptively. 

Original comment by palash.jhabak on 7 Jul 2010 at 12:01

Attachments:

GoogleCodeExporter commented 9 years ago
Hi Manav,

I am getting an error which says, haptik_matlab file not found. DO you remember 
of any such problem earlier?. While searching also I didnt find this .m 
file...help!!

Original comment by palash.jhabak on 1 Sep 2010 at 3:45

GoogleCodeExporter commented 9 years ago
Your phone seems to be switched off since evening. 

Haptik_matlab is implemented as a dll and stored here:
C:\Program Files\Siena Robotics and Systems Lab\Haptik Library\Matlab

Make sure you have this in your matlab path:
+ Goto File menu > set path > add folder > and click 'Save'

Original comment by manavkataria on 1 Sep 2010 at 4:35

GoogleCodeExporter commented 9 years ago
Hi Manav,

Attached is the modified code for calculating texture based force. I also have 
attached some screenshots in which I have used some images to generate forces 
in x and y direction for them. I dont know but I find it somewhat different 
from the one given in Manivanan's paper. We need to look at it. 

Also the website which I ha mentioned the other day is 
http://make3d.cs.cornell.edu/ The professor has developed a very beautiful way 
to create 3D images from just a single image. 

Original comment by palash.jhabak on 23 Sep 2010 at 6:15

Attachments:

GoogleCodeExporter commented 9 years ago
in each screenshots...figure 1 is original image. Image 2 is negative of that 
image. figure 3 is force in the X direction and figure 4 is the force in the y 
direction.

Original comment by palash.jhabak on 23 Sep 2010 at 6:28