Question


Is there any means of searching for content within MATLAB Onramp?
I see lots of threads full of incomplete random copypasted chunks of text from Onramp. I'm content to assume this is just anoth...

2 years ago | 0 answers | 0

0

answers

Answered
How to match the colors in the colorbars across two plots such that the datapoints can be inferred consistently?
This depends whether you can rely on the range of the second dataset being smaller than (and within) the range of the second dat...

2 years ago | 0

Answered
drying to scale down image by factor of 2 using loops
I'm going to generalize a little bit. Scaling factor can be set as an internal parameter. The code supports any number of imag...

2 years ago | 0

Answered
How to add color to a grayscale image based on a colormap from a color photo?
Well, it's Sunday night. The forum is sleeping and I'm bored. I might as well pretend that this thread needs another answer. ...

2 years ago | 0

Answered
colour variation (transparency) on the overlapping bars of 2 bar charts
The transparency has no effect because there's nothing behind it. You're stacking the bars end-to-end, not on top of each other...

2 years ago | 0

| accepted

Answered
Getting inexistent files using dir function
Those are hidden files. It's unknown why they're hidden. Perhaps they are temporary or autosave files that exist because the f...

2 years ago | 0

| accepted

Answered
How can I divide a whole circle into two sectors at an angle?
If you're dealing with an image that's not necessarily binarized (as in the given example), there are some considerations. If w...

2 years ago | 1

| accepted

Answered
Getting the Wrong Output While Using Image Batch Processor
If the array called image is a matrix, the output from this operation will be a vector. black_pixels = sum(image == 0); While ...

2 years ago | 0

Answered
how to apply sauvola threshold in subtracting
No thresholding has been applied to that image. It's had a slight gamma adjustment and then it's been inverted. A = imread('...

2 years ago | 0

Answered
Edge Detection in a 2D Matrix
Consider the example: % a logical image mask = imread('tinyblobs.png'); imshow(mask) % generate the perimeter image paddedm...

2 years ago | 0

| accepted

Answered
Calculate power of each area
I'm just going to throw this out there. % this image has points marked manually inpict = imread('bbbbbb.png'); % data ran...

2 years ago | 0

Answered
Elliptical crop of an image to get average pixel value within the region
If you're manually placing things, you can use the ROI tools such as drawellipse() and drawcircle() to create a mask. % an exam...

2 years ago | 0

| accepted

Answered
How to I convert a binary (logical) image back into double, uint8, etc, without changing what the image looks like in binary?
If you want to change the numeric class of an image while retaining the image scale with respect to black/white, you normally us...

2 years ago | 1

| accepted

Answered
How to save rescale image ?
The only normal image format that's supported by MATLAB for writing float data is TIFF. https://www.mathworks.com/matlabcentr...

2 years ago | 2

| accepted

Answered
How do I replace the axes in an image?
You can specify the x and y extents of the image object. xdata = 10:20; ydata = 0:0.1:0.5; inpict = imread('cameraman.tif'); ...

2 years ago | 0

| accepted

Answered
Error when using cd- saying file is nonexistent
You're trying to cd relative to the current directory, instead of relative to ~/

2 years ago | 0

Answered
How can I remove top and right axes and remain only bottom and left axes?
Try box off

2 years ago | 0

| accepted

Answered
how to open .nhdr file
It's just text, but there's already tools to read these files specifically, either with or without the associated data file. ht...

2 years ago | 0

| accepted

Answered
How can I obtain all possible combinations of 3 decimals whose sum equals 1, without running into memory and space issues?
Are the particular vectors even important here? Or are you trying to find the combinations of four decimal numbers between 0.00...

2 years ago | 0

Answered
what does count pixel =0 indicates?
I don't know what app this is, and I don't know what the image is or how it has been processed, so I'm going to have to assume s...

2 years ago | 0

Answered
¿Is it posible to save a .bmp image with resolution (dpi)?
See the following set of references: https://www.mathworks.com/matlabcentral/answers/446658-how-to-write-metadata-information-t...

2 years ago | 0

Answered
how to set the dpi while using 'imwrite' to save a matrix into an image of 'jpg' format?
You use external tools. If you have exiftool, use that. % take a clean image inpict = imread('peppers.png'); % write it to...

2 years ago | 1

Answered
How to plot together a surface plot and a DICOM image without loosing the colors of the surface plot?
Convert the image to standard data ranges using mat2gray(), then expand it so that it's RGB. The objective here is to create a ...

2 years ago | 0

| accepted

Submitted


A slightly more robust version of when()
A slightly more robust version of when()

2 years ago | 2 downloads |

5.0 / 5
Thumbnail

Answered
FEX submission not updating to new release on GitHub
After three days, I ended up just editing the FEX page and selecting "Change Repository" and setting it to the same repository a...

2 years ago | 0

| accepted

Answered
View a YUYV encoded image in MATLAB
Here's my guess, assuming that everything is as simple as it appears. There's a good chance this isn't exactly right. If the...

2 years ago | 0

| accepted

Answered
How to validate contrast adjusting using imadjust comparing to other contrast adjusting techniques and original image?
The question and comments are vague, but this is my answer to one interpretation -- i.e. to use a graph to illustrate the transf...

2 years ago | 0

Answered
Contrast equalization with imadjust
The first four illustrated transformations are very simple -- they're simple addition and multiplication. % a unit-scale test...

2 years ago | 0

Question


FEX submission not updating to new release on GitHub
https://www.mathworks.com/matlabcentral/fileexchange/97272-a-slightly-more-robust-version-of-when https://github.com/291ce4321a...

2 years ago | 1 answer | 0

1

answer

Answered
generation of 2D array of circular ring
In this case, I'm going to do an antialiased image instead of a binary image. sz = [300 400]; % image size [y x] c = [150 20...

2 years ago | 0

| accepted

Load more