Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I have some png files, and their ppi were 300.
Now I've change the ppi to 72, but the size of the pictures even became larger!
For example, a.png was 190k, 300ppi,
now it becomes 400+k, 72ppi, and it is always 320*460,
what's happening, how should I do?
I was meant to reduce the pictures's size..
ppi stands for 'pixels per inch'.
The equation for image size is NoOfPixels = NoOfInches * PixelsPerInch
Or NoOfInches = NoOfPixels/PixelsPerInch
So reducing the ppi will increase the 'physical' size of the image.
To reduce the size of the image you need to squash more pixels into each image of 'physical' space, so increase the ppi
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
i want to display some data into a label but it is not showing the full text. How can i fix this behaviour ? I set the lines to 0, but is still not working.
Set horizontal compression resistance to 1000 (Required).
You can do it in the storyboard or programmatically.
label.setContentCompressionResistancePriority(.required, for: .horizontal)
Don't set a guaranteed height like equal 50 set a minimum height like >= 50 that ways it will keep on expanding as required.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I want to determine area of circular object in image below using MATLAB. Can someone explain codes for doing that? I got thresholded image but I did not proceed more.
If the binary image is img, and it contains only values 0 (background) and 1 (object), or it is a logical array containing true and false, and all the object pixels are considered part of the object, then sum(img(:)) is the area of the object in pixels.
If the segmented image contains multiple objects, or noise, it will have to be filtered first to leave only the pixels that belong to the one object.
To convert the area in pixels to an area in physical units you need to know the size of a pixel. This is often obtained by adding a ruler to the image.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
I would like to change the downsampling method or the process by which Matlab changes picture when resolution is not native.
I am especially interested in the scaling methods which are suitable for scientific computing in grayscale.
Default Matlab 2016a's warning whatever the scaling is
Warning: Image is too big to fit on screen; displaying at 50%.
Either the scaling is 10^-6 or 1/2, my Matlab 2016a always says that it is 50%, which is irritating.
How can you change Matlab's downsampling method or corresponding scaling process?
When displaying an image you should use imshow.
In imshow you can set the zoom level.
Look at the ImshowInitialMagnification property of imshow.
For instant:
mInputImage = imread('cameraman.tif');
imshow(mInputImage, 'ImshowInitialMagnification', 100);
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I have an image which I have converted to a binary mask.
My regions of interest are those with 1 in the mask.
I want to find the coordinates of these regions,
and go to the original image (same dimensions) so I can crop the unprocessed part of the image.
You can use this answer to get a bounding box from your binary mask.
Once you have the bounding box (rect variable in the aforementioned answer) you can use imcrop to crop the original image around it
cIm = imcrop( origImg, rect );
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I am doing an image processing project. In my project there is an GUI file that reads an image and processing it for segmentation. while reading an image file, initially it is checking the size of that image... However, I don't understand what the function I=[m x n x 4] really means. Could someone explain this to me?
Your image I is of size m pixels high by n pixels wide and has 4 channels: Red, Green, Blue and an alpha channel.
Matlab stores I as a 3D array, you can access the x-y-th pixel by I(y,x,:) returning the four-vector representing the RGBA value of the x-y-th pixel.