how to import an image into openjscad - openscad

I am trying to draw on an image that I have. 2D
the image is of a laptop and I want to draw lines around it to get measurements. I am very new to openjscad and am stuck on this very first step. Any help would be appreciated

You might want to convert your Design to svg using a tool like inkscape.
Then you can import your design by drag & drop.
See
https://en.wikibooks.org/wiki/OpenJSCAD_User_Guide#Supported_Language_/_File_Formats

Related

Pasting an image on top of another image

I have this poster image:
I have to blend it with another image. I have to put this image on a picture of a building like this:
The rotated poster image has white pixels that I don't know how to get rid of.
Can someone please help me with code to paste this image on the building image? The front of the building.
Firstly find the four corner points of building where you want to blend image. Also find four corner points of your poster. Then use perspective transform and warpaffine to paste poster on image.
This http://www.learnopencv.com/homography-examples-using-opencv-python-c/ link may help you to get the idea but it is using OpenCV.
I have tried this using OpenCV C++ and I am getting following image after applying perspective transform. Let me know if you want this kind of results:

3D transform image (in Bohemian Sketch)

For my website, I want to use the vector image as shown here: http://www.sketchappsources.com/free-source/226-iphone-5.html
It's an iPhone 5 that is tilted.
Now I need to add my image to the screen which means I need to 3D-tilt it. I've tried and searched a lot but couldn't figure out how to transform my image so that it fits the iPhone 5 screen.
Any help in guiding me how to 3D transform my image would be greatly appreciated!
Cheers,
Frank
I recently released a plugin solving the exact issue, it allows you to draw a shape with the Vector tool and then apply the content of an artboard into the area. It's called Magic Mirror, please take a look at http://magicmirror.design

How do make an automatic cropping for the interest area in MATLAB?

I'm the beginner of image processing by using MATLAB and i have to do some tasks, i want to crop or cut for the specific area like using imcrop but want to make it automatic (i cannot upload picture because i'm the new user, the picture that i use is the cross-section of a plant) i really don't know how to detect and cut out only that area. I'll really appreciate if there's someone can help me to figure out this problem.
You need to give us more information. If you want to automate the detection of a part of an image to crop it, you need to do some image processing. What kind will depend on the characteristics of your images and the part you want to crop.
You can post an image using, for example, http://www.postimage.org/

Drawing a 3D box inside a 3D container box in iphone

I want to show the arrangement of number of boxes(ex:10 boxes) inside a 3D container box. The arrangement of boxes also should be in a 3D view. I am a application developer i have no knowledge in OpenGles. Please guide me with the right approach to achieve it.
Is there any OpenGles engines or frameworks (paid or free) available for creating a container of my requirement?
Edit: The expected output is like shown in the image
You can use CATransformLayer. It will give you the 2.5D effect. Which would be sufficient to show what you need. You can use https://github.com/joericioppo/3D-Layers as a sample.

Spliting an image into multiplae images

Thanks in advance.
I got how to split an image into multiple square images . But I want to know how to split into multiple images with different shapes like jigsaw puzzle images. If any one know please tell to me.
Just use a copy of part of image with large enough size to fit the whole shape. Then use a mask to cut the shape and the rest of it set as transperant.