Steve, cool artwork you’ve created there. I got a question but its nothing to do with 3-D stuff. How can I convert RGB values to L*a*b values in MATLAB? I have uploaded a digital image to MATLAB workspace and wanting to get Lab values for each pixel. Please give me an idea…I tried the MATLAB help also. cheers
I have a question that needs your kind help. I have two images/grids with different projections (UTM and Alberts) for the same area. Do you have any ideas on how to convert any image from one projection to another (say, Alberts -> UTM).
I checked the Mapping Toolbox and Image processing toolbox and haven’t found a solution to this problem. Any of your hints will be highly appreciated!
Qi Chen – We don’t have a function that performs raster reprojection end-to-end. A knowledgeable person could combine functions such as tformarray or interp2 with Mapping Toolbox functions mfwdtran and minvtran to write a reprojection function. There’s a Mapping Toolbox demo about unprojecting a DEM that shows some of the steps for reprojecting a grid. The demo is called “Un-Projecting a Digital Elevation Model (DEM).”
Steve, thank you very much. I have been reading this demo and thinking in the same direction as you suggested. Another question I have is: if two projections (UTM and Alberts) have different ellipsoids, the geographic coordinates would be different even when they are converted from UTM and Alberts coordinates with minvtran. Is there a function that can convert the geographic coordinates between different ellipsoids?
Qi Chen – You are correct, you can’t use reprojection alone to move data from one reference ellipsoid to another. What you need is a datum conversion. In fact, just knowing two numbers, a latitude and a longitude, doesn’t tell you where something is. You also need to know which datum (reference system) the numbers refer to. We don’t have a Mapping Toolbox function for datum conversion, but there are some free resources that you can find by searching the Internet.
thank you about your information and demo location. nice post
About
Steve Eddins is a software development manager in the MATLAB and image processing areas at MathWorks. Steve coauthored Digital Image Processing Using MATLAB. He writes here about image processing concepts, algorithm implementations, and MATLAB.
Steve, cool artwork you’ve created there. I got a question but its nothing to do with 3-D stuff. How can I convert RGB values to L*a*b values in MATLAB? I have uploaded a digital image to MATLAB workspace and wanting to get Lab values for each pixel. Please give me an idea…I tried the MATLAB help also. cheers
Shanika – use makecform and applycform in the Image Processing Toolbox. There’s an example in one of my blog postings from June.
hi, Steve
I have a question that needs your kind help. I have two images/grids with different projections (UTM and Alberts) for the same area. Do you have any ideas on how to convert any image from one projection to another (say, Alberts -> UTM).
I checked the Mapping Toolbox and Image processing toolbox and haven’t found a solution to this problem. Any of your hints will be highly appreciated!
Sincerely,
Qi
Qi Chen – We don’t have a function that performs raster reprojection end-to-end. A knowledgeable person could combine functions such as tformarray or interp2 with Mapping Toolbox functions mfwdtran and minvtran to write a reprojection function. There’s a Mapping Toolbox demo about unprojecting a DEM that shows some of the steps for reprojecting a grid. The demo is called “Un-Projecting a Digital Elevation Model (DEM).”
Steve, thank you very much. I have been reading this demo and thinking in the same direction as you suggested. Another question I have is: if two projections (UTM and Alberts) have different ellipsoids, the geographic coordinates would be different even when they are converted from UTM and Alberts coordinates with minvtran. Is there a function that can convert the geographic coordinates between different ellipsoids?
Qi Chen – You are correct, you can’t use reprojection alone to move data from one reference ellipsoid to another. What you need is a datum conversion. In fact, just knowing two numbers, a latitude and a longitude, doesn’t tell you where something is. You also need to know which datum (reference system) the numbers refer to. We don’t have a Mapping Toolbox function for datum conversion, but there are some free resources that you can find by searching the Internet.
Thanks a lot. Rob.
thank you about your information and demo location. nice post