Answered
coordinates of the farthest point from centroid
Air code: [maxRadius, maxRadiusIndex] = max(distances) maxPointCoord = thisBoundary(maxRadiusIndex,:) Loo...

11 years ago | 0

| accepted

Answered
filling a netcdf file
To read: * <http://www.mathworks.com/help/matlab/ref/dlmread.html |dlmread|> * <http://www.mathworks.com/help/matlab/ref/tex...

11 years ago | 0

Answered
Read multiple netcdf files with variable names
You could think of something along these lines: (air code, as in I havent tested it) modelNames = {'m1, m2}; varNames...

11 years ago | 0

Answered
How to put a String in a dataset attribute
Second example <http://www.mathworks.com/help/matlab/ref/h5d.write.html h5d.write> doc page shows how to write strings. (using c...

11 years ago | 0

Answered
can lossless jpeg2000 format picture size be LESS than lossy jpeg2000 format of same picture
You could read both back and compare against the one your wrote out to verify the lossy/lossless nature for yourself. The com...

11 years ago | 1

Answered
How do I use NCWRITE to write an entire variable?
Update your third input argument to have the same size as the variable in the file that you are writing to. For example, if y...

12 years ago | 0

| accepted

Answered
Creating netCDF files: How can I set the order of the dimensions in a field?
%Account for moving from Column major to Row major ordering colMajorDims = [dim_dim1 dim_dim2 dim_dim3]; rowMaj...

12 years ago | 0

| accepted

Answered
Save matrix as image format file
If you have a current version of MATLAB, the |Tiff| class provides a way to write multi sample image data. Note: This is a di...

12 years ago | 0

Answered
Trying to use a for loop to capture data from netCDF output, and then average the data
Tyler Herrington: I solved the issue by changing the SeaIceVol(A):SeaIceVol(B) into a series of commas: for i=1:50...

12 years ago | 1

Answered
Trying to write a variable varying with 3 dimensions to MatLab
vNID will have a dimension of nt by nlat by nlon. But you are trying to write the variable S which is sulph(1,:) (just a column ...

12 years ago | 0

Answered
reading and working with .im7 image files
This <http://www.mathworks.com/matlabcentral/fileexchange/10902-pivmat-2-12/content/pivmat/html/loadvec.html FEX> submission cla...

12 years ago | 0

Answered
Finding Circles in an Image. Hough Transform, Tao's CircularHough_Grd algorithm, Matlab's infindcircles
I was able to get the sphere and some false positives with: [c, r] = imfindcircles(I, [18 22], 'ObjectPolarity','dark','Sens...

12 years ago | 0

Answered
Need help with Ncwrite
The second example of <http://www.mathworks.com/help/matlab/ref/ncwrite.html ncwrite> could be of some help. Note that your ...

12 years ago | 0

| accepted

Answered
NN in matlab
" Do you have this: http://www.mathworks.com/products/neural-network/index.html "

12 years ago | 0

Answered
Format distance tool label to centimeter.
" The distance tool reports in pixels for a very good reason: An image doesn't have *physical* distance by itself. Real-worl...

12 years ago | 0

Answered
Image processing for crater detection
"This seems like an interesting problem. I suppose, for the thresholding, the way they calculate the limits Rm, Rmin and Rmax ne...

12 years ago | 0

Answered
error running at fist instant
"sir ,I changed those A letters to another letter B ,IT WORKS NOW"

12 years ago | 0

Answered
Subtracting the first frame of a movie from all the others....using imsubract maybe?
"HEY i DID IT USING " M = mmreader('cell.avi'); N = M.NumberOfFrames; for ii = 1:N A=imsubtract(M.read(1),M.r...

12 years ago | 0

Answered
combining number of images using matlab
You could look at <http://www.mathworks.com/help/toolbox/images/ref/imfuse.html |imfuse|> and see if it helps combine two images...

12 years ago | 1

Answered
Generating mex file from Matlab code containing regionprops
Try function outVar = myapp %#codegen coder.extrinsic('imread'); coder.extrinsic('regionprops'); idxList...

12 years ago | 0

| accepted

Answered
How to get Image information (imtool) - Image description using command prompt function
Look at <http://www.mathworks.com/help/techdoc/ref/imfinfo.html |imfinfo|>.

12 years ago | 0

| accepted

Answered
Extract multiple radius from an image
If you have the newer version with the Image Processing Toolbox, the imfindcircles might be useful (depending on the 'circularit...

12 years ago | 0

Answered
Readint in multiple .cdf files from a text file
# You want <http://www.mathworks.com/help/techdoc/ref/cdfread.html |cdfread|> not |netcdf.open| to read CDF files. # It looks l...

12 years ago | 0

Answered
Image Edges: Calculate complexity of a line segment?
(I'll try to flesh this soon) How about: * Obtain the |PixelList| property of each line using |regionprops| * Compute the...

12 years ago | 0

Answered
How to count black pixels in a region of an image that can only have 1 white neighbor pixel
You could try leveraging |conv2|. Here is the idea: in = [ 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 ...

12 years ago | 0

| accepted

Answered
Low level visual equalization of images
You could try using |histeq| to equalize the histogram of two images. I was about to say its hard to quantify 'contrast' obj...

12 years ago | 1

| accepted

Answered
Change placemarker size/zoom when using impoly()
About the second question: * Yes, while drawing the polygon, mouse over and click the (+) button on the toolbar. * Dont wor...

12 years ago | 0

| accepted

Answered
How do I perform spectral unmixing in MATLAB?
For other readers who are new to 'Spectral Unmixing', <http://en.wikipedia.org/wiki/Imaging_spectroscopy#Unmixing this> is a goo...

12 years ago | 1

Answered
imwrite function
Your previous comment specified that the file format you are using is JPEG. JPEG uses <http://en.wikipedia.org/wiki/Lossy_com...

12 years ago | 1

| accepted

Answered
CT and MRI images
This is not a full answer, but a rough guide to how you could perform anisotropic resampling of your CT image. (Posting as an an...

12 years ago | 0

Load more