Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 03-12-2009, 03:17   #301
Registered User
 
yachtvalhalla's Avatar

Join Date: Aug 2009
Location: Philippines
Boat: Fuji 32 Ketch
Posts: 441
Lack of textual data on cm93

On both 1.3.4 and beta build 1122 I cannot find a way to display textual data on the cm93 charts. I'm referring to island and town names, etc. I've tried different settings for vector charts without any help. Is it me?
__________________

__________________
VALHALLA's Mooring Page
yachtvalhalla is offline   Reply With Quote
Old 03-12-2009, 04:05   #302
Registered User

Join Date: Sep 2009
Location: Angers - France
Boat: Beneteau First 29 Ptizef
Posts: 730
Yachtvalhalla :
With "mariner standard" and "select al"l it should work
clear the box "show important text only" and don't forget the A+ button on the main window
JP
__________________

__________________
Ptizef is offline   Reply With Quote
Old 10-12-2009, 20:05   #303
Registered User

Join Date: Dec 2009
Location: Ocean Grove Aus
Boat: adams 40
Posts: 70
Ptizef:

Thanks for this tip.
I didn't realise this option existed (yeah not too familiar with program yet - I'm not mobile and running in armchair mode as my boat and laptop battery not working )

If the first time default option on starting OpenCPN is "show important text only" then perhaps it should be changed to show all unless user then elects to filter displayed info. I may have inadvertently altered this option so disregard this and apologies if not the case already.

I also have suggestion which I shall post in technical thread regarding separating the user entered waypoints info from the config file.

Phil
__________________
otya is offline   Reply With Quote
Old 11-12-2009, 14:54   #304
Registered User

Join Date: Sep 2009
Location: Angers - France
Boat: Beneteau First 29 Ptizef
Posts: 730
Otya
Very happy if I'd helped you

JP
__________________
Ptizef is offline   Reply With Quote
Old 31-12-2009, 21:36   #305
Registered User
 
manimaul's Avatar

Join Date: Feb 2008
Location: Seattle, WA
Posts: 416
color

I have a few color palettes to experiment with vector charts. Is anyone aware where in the source the vector color palette is defined?

Thanks,

Will
__________________
Marine Navigation for Android:
http://mxmariner.com
manimaul is offline   Reply With Quote
Old 31-12-2009, 22:14   #306
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,493
Vector Colors

Will....

Vector chart color palettes are in the file s57data\S52RAZDS.RLE

At the top of this file are lines like
Code:
CCIE   31LANDA0.36000.400049.00brown
Note the "escape" characters (0x1b)

The colors are encoded in a hard-to-interpret CCIE color map.
The names are somewhat descriptive (e.g. LANDA for land area, etc.)
There is code to convert from ccie to RGB near s52plib.cpp(387). No inverse transform (RGB to ccie), though. Google is your friend.....

If you browse this file you will see that the colors are referenced by rules which render the various features, e.g.

Code:
0001    500090
LUPT   40LU00090NILLNDAREA00001SPLAIN_BOUNDARIES
ATTC    1
INST   10AC(LANDA)
DISC   12DISPLAYBASE
LUCM    612010
****    0
Decode: LUPT......LNDARE.... (a LNDARE feature)
INST......AC(LANDA) (AreaColor LANDA)
etc.....

Anyway, you can fiddle with the values in this file, and no recompile is necessary. S52RAZDS.RLE is read as a data file. You can specify its location in the config file like this:

Code:
PresentationLibraryData=/home/dsr/Projects/opencpn_sf/opencpn/data/s57data/S52RAZDS.RLE

It has been on my mind to fool around with some alternate palettes that might be more pleasing to some folks used to traditional cm93 presentation in other ECS's.

Good Luck
Dave
__________________
bdbcat is online now   Reply With Quote
Old 01-01-2010, 08:46   #307
Registered User
 
manimaul's Avatar

Join Date: Feb 2008
Location: Seattle, WA
Posts: 416
Great, I'll see If I can play with this a bit. I really like the Brazil and Canadian raster chart palettes. So, I'd like to duplicate them for our vectors.

OpenEv has a side project called libs52. There is some great information there on the standard color palette. S-57 data - GRASS-Wiki

libs52 palette:

__________________
Marine Navigation for Android:
http://mxmariner.com
manimaul is offline   Reply With Quote
Old 02-01-2010, 03:45   #308
Registered User

Join Date: Oct 2009
Posts: 50
Colors..

Quote:
Originally Posted by bdbcat View Post
Will....

Vector chart color palettes are in the file s57data\S52RAZDS.RLE

Good Luck
Dave
If anyone is interested here is my first hack at Vector chart colors. Just some minor adjustments that seem better on my display...

The attached file after download needs to be renamed s52razds.zip and then unzipped. The resulting s52razds.doc file then needs to be renamed to s52razds.rle

/Pete
Attached Thumbnails
Click image for larger version

Name:	screenshot.5.jpg
Views:	176
Size:	442.1 KB
ID:	12330  
Attached Files
File Type: doc S52razds.doc (83.6 KB, 83 views)
__________________
PeteCross is offline   Reply With Quote
Old 02-01-2010, 04:39   #309
Senior Cruiser
 
idpnd's Avatar

Cruisers Forum Supporter

Join Date: Sep 2007
Location: Almerķa, ES
Boat: Chiquita 46 - Libertalia
Posts: 1,549
A few options for palettes could be published online.. I like the opencpn default, although I agree that a lot of the prevalent paper/raster charts have a more classic/naval look
__________________
sv Libertalia
idpnd is offline   Reply With Quote
Old 02-01-2010, 07:06   #310
Registered User

Join Date: Jan 2010
Posts: 75
OpenCPN : Colours and fonts

Hello,

My first message on that forum ... I apologize for my poor English writing

CM93 charts: There are some problems with the background colours of the chart and the font colours and size. Hardly readable in some cases, not enough contrast between text and background, and text overlapping.

Best regards, Robert.

Figure attached : comparison of 3 identical charts shown by OpenCPN, CMapWorld, and raster from the same area near Antibes in France. And some suggestions.

Windows XP SP3, screen 1400x900
OpenCPN :1.3.6
Depth shallow 2m, Safety 3m, Deep 15m
Display cat : mariner standard
4 colours
Zoom details : 0
Attached Thumbnails
Click image for larger version

Name:	comparer_1.gif
Views:	143
Size:	123.2 KB
ID:	12333  
__________________
Robert_1 is offline   Reply With Quote
Old 02-01-2010, 08:47   #311
Registered User
 
manimaul's Avatar

Join Date: Feb 2008
Location: Seattle, WA
Posts: 416
Nice work guys, I'm still confounded by what the heck "ccie" is. Is this CIE XYZ 1931 color space?

CIE XYZ looks promising, but the RGB conversion is just not working out. Example:

CCIE 31LANDA 0.3600 0.4000 49.00 brown
If .36 .40 49 in XYZ is supposed to be brown, how come it is blue?


HTTP = #002BBE
Web safe = #0033CC
RGB 0-255 = 0.00 43.19 190.40
RGB 0-FF = 00 2B BE
RGB 0-0.1 = 0.00000 0.16937 0.74665
CMY 0-0.1 = 1.00000 0.83063 0.25335
CMYK % = 100.000 77.316 0.000 25.335
XYZ = 0.360 0.400 49.000
Yxy = 0.400 0.00723 0.00804
CIE-L*ab = 3.613 -0.827 -119.449
CIE-L*CH = 3.613 119.452 269.603
CIE-L*uv = 3.613 -8.852 -20.896
HunterLab = 6.325 -0.908 -454.927


Any more useful pointers?
__________________
Marine Navigation for Android:
http://mxmariner.com
manimaul is offline   Reply With Quote
Old 02-01-2010, 09:06   #312
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,493
ccie

Will...

I went round and round on this some years ago....
I could never find a colorspace expert that I could communicate with.

Finally concluded that these coefficients are xyL space.

To convert xyL to XYZ
Code:
 
                        X = ( x * L ) / y;
                        Y = L;
                        Z = ( ( ( 1.0 - x ) - y ) * L ) / y;
I don't pretend to understand colorspace conversion, but this is (part of) what opencpn does to get RGB from the CCIE numbers, empirically developed.

Also, I would suggest that folks working on new PLIB data files use alternate names, instead of S52RAZDS.RLE. Might save some confusion later. You can specifiy the PLIB file location in the opencpn config file, and it can be named anything.

Good Luck
Dave
__________________
bdbcat is online now   Reply With Quote
Old 02-01-2010, 09:25   #313
Registered User

Join Date: Jan 2010
Posts: 75
Quote:
Originally Posted by bdbcat View Post
Will...

Finally concluded that these coefficients are xyL space.

To convert xyL to XYZ
Code:
 
                        X = ( x * L ) / y;
                        Y = L;
                        Z = ( ( ( 1.0 - x ) - y ) * L ) / y;
I don't pretend to understand colorspace conversion, but this is (part of) what opencpn does to get RGB from the CCIE numbers, empirically developed.
Could this reference help you ? May be you now this software already ...

http://white.stanford.edu/~brian/scielab/scielab1-1-1/lab2xyz.m

Code:
function xyz = lab2xyz(lab,whitepoint,exp)
%lab2xyz(lab,whitepoint,exp)
%
% Converts colors in CIEL*a*b* coordinates into XYZ coordinates.
%
% lab should be in the form [L-plane a-plane b-plane]
% whitepoint is a 3-vector of the xyz values of the white point.
%   If not given, use [95.05 100 108.88] as default (not recommended).
% exp is the exponent used in the CIELAB formula. Default is cube
%   root as used in standard CIELAB. If specified, use the number
%   as exponent. (note this exponent here should be the same
%   as the exponent used in xyz2lab.m)
%
% xyz is returned as [x-plane y-plane z-plane].
%
% Created by Brian Wandell
% Last modified 4/15/98 by Xuemei Zhang

if (nargin<3)
  exp = 1/3;
end
exp = 1/exp;

if (nargin<2)
  disp('Using XYZ values of normalized D65 (95.05, 100, 108.88) as white point.');
  disp('You should really provide your own white point data to ensure reasonable results.');
  whitepoint = [95.05 100 108.88];
end

if length(whitepoint) ~= 3,
  error('White point is not a three-vector');
end

m = size(lab);
lab = reshape(lab, prod(m)/3, 3);

Xn = whitepoint(1);
Yn = whitepoint(2);
Zn = whitepoint(3);

% Usual formula for Lstar.   (y = Y/Yn)
fy = (lab(:,1) + 16)/116;
y = fy .^ exp;

% Find out cases where (Y/Yn) is too small and use other formula
% Y/Yn = 0.008856 correspond to L=7.9996
yy = find(lab(:,1)<=7.9996);
y(yy) = lab(yy,1)/903.3;
fy(yy) = 7.787 * y(yy) + 16/116;

% find out fx, fz
fx = lab(:,2)/500 + fy;
fz = fy - lab(:,3)/200;

% find out x=X/Xn, z=Z/Zn
% when (X/Xn)<0.008856, fx<0.206893
% when (Z/Zn)<0.008856, fz<0.206893
xx = find(fx<.206893);
zz = find(fz<.206893);
x = fx.^exp;
z = fz.^exp;
x(xx) = (fx(xx)-16/116)/7.787;
z(zz) = (fz(zz)-16/116)/7.787;

xyz = [x*Xn y*Yn z*Zn];

% return xyz in appropriate shape
xyz = reshape(xyz, m);
__________________
Robert_1 is offline   Reply With Quote
Old 02-01-2010, 10:03   #314
Registered User

Join Date: Oct 2009
Posts: 50
Quote:
Originally Posted by Robert_1 View Post
Could this reference help you ? May be you now this software already ...

http://white.stanford.edu/~brian/scielab/scielab1-1-1/lab2xyz.m

[/CODE]
Hi,

Personally speaking, what I am searching for is a rgb2cie.c function to produce a little utility to help make a good color palette. There are endless utilities to produce RGB values. This rgb2cie.c could then give the input for the Presentation Library.

Is there such a function out there?
Or am I barking up the wrong tree?

/Pete
__________________
PeteCross is offline   Reply With Quote
Old 02-01-2010, 10:23   #315
Registered User

Join Date: Oct 2009
Posts: 50
Quote:
Originally Posted by PeteCross View Post
Hi,

Personally speaking, what I am searching for is a rgb2cie.c function to produce a little utility to help make a good color palette. There are endless utilities to produce RGB values. This rgb2cie.c could then give the input for the Presentation Library.

Is there such a function out there?
Or am I barking up the wrong tree?

/Pete
Googled this:....

void RGB2CIE(float R,float G,float B,float &x,float &y,float &z) {
float x1,z1,sum;
x1 = 0.478*R + 0.299*G + 0.175*B;
z = 0.263*R + 0.655*G + 0.081*B;
z1 = 0.020*R + 0.160*G + 0.908*B;
sum = x1 + z + z1;
x = x1/sum;
y = z/sum;
}

So I'll see if I can do something with it....
Any observations anyone??

/Pete
__________________

__________________
PeteCross is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Beta Marine Diesel michaelmrc Engines and Propulsion Systems 48 23-03-2016 14:44
Need some technical advice....antennas. Just a Tinch Marine Electronics 15 01-12-2007 16:57
Blue Sea Systems Technical Brief GordMay Electrical: Batteries, Generators & Solar 0 16-03-2007 05:16
technical difficulties witchcraft The Sailor's Confessional 1 30-05-2005 15:09
Dow Corning Technical Manual GordMay The Library 0 12-04-2005 17:25


Our Communities

Our communities encompass many different hobbies and interests, but each one is built on friendly, intelligent membership.

» More about our Communities

Automotive Communities

Our Automotive communities encompass many different makes and models. From U.S. domestics to European Saloons.

» More about our Automotive Communities

Marine Communities

Our Marine websites focus on Cruising and Sailing Vessels, including forums and the largest cruising Wiki project on the web today.

» More about our Marine Communities


Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 07:19.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2016, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2016, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.